I tried to make EA for Dolly 1st & 2nd from EA Moving Average in MT4 default which contain "MaximumRisk" for Open Position (OP). You can change the value of "MaximumRisk" for maximum your profit, but your loss will be huge too

.
For OP confirmation I'm use Stochastic H4, MACD H4 & RSI H4, I'm still find the best period of this three indicator. Maybe, in next, i will try only MACD & RSI or other indicator for OP confirmation.
I try stretegy tester GBPUSD M30, and the result, you can look at the attachment, picture 1 is for Dolly 1st, picture 2 is for Dolly 2nd. Oh, I think the result is bad. I also tried with other pairs, but the result is very very bad

.
For use Dolly 2nd, change "DailyOpenCalculate = true".
Maybe in this EA there are many wrong code, bcoz I'm not programmer, i wish anyone will check & optimization it.