1. ## MA martingale ea

i have been trying to make one simple ea but nobody is helping me . below is the logic kindly can you help me with it.

indicator. : Moving average
the entire candle should close above Moving averege to buy signal
the entire candle should close below Moving averege to sell signal.

lot size should multilpy if the total previous trades are in loss.
when on trade comes to profit and the net profit more than the net loss then it should go back to original volume.

2. Originally Posted by surtoday
i have been trying to make one simple ea but nobody is helping me . below is the logic kindly can you help me with it.

indicator. : Moving average
the entire candle should close above Moving averege to buy signal
the entire candle should close below Moving averege to sell signal.

lot size should multilpy if the total previous trades are in loss.
when on trade comes to profit and the net profit more than the net loss then it should go back to original volume.
Hi surtoday,

See here : MA Martingale EA

3. Excellent work.i never thought it would be that fast. There is one mistake in this. here it how goes.
set 1 1) 0.1 buy = +67
refresh order set 2 2) 0.1 sell = -4
4) 0.3 sell = -15.80
6) 0.5 sell = -30.60
refresh order set 1) 0.1 buy = -13.5
2) 0.2 sell = -10
calculate the profit (-13.5-10 = -23.5 > 4)
it is still in loss so increase the volume.
4) 0.4 sell = -12.20
6) 0.6 sell = 146.49
Calculate profit (-13.5-10-12.20-19.80 = -55.5 < (4+146.49= 150.50))
refresh the volume set 3

After1st trade in profit it should refresh list.
from trade 2 it starts counting total loss and increases the volume according multiplying factors.
once you get profit like in trade 7 total loss Minus total that profit . (in this example -4-16.20-15.70-22.5-30.6=-85.1 profit = 101.53 ) net is profit.
so come to original volume.

hope it explains the details.