İş tamamlandı
![](https://c.mql5.com/i/avatar/avatar_na2.png)
İş Gereklilikleri
Hi Dear,
I need to develop a EA that Trades Based on Two Moving Averages, Ea must have a Trailing stop and Lot calculation type.
The idea is to open a buy position every time a moving average of 6 periods crosses up a moving average of 12 periods and the candle close price above both moving averages, Stop loss will be placed at the low of the previous candle and it will follow the low of the last two candles when the low of the last two candles is bigger than open price.
And to open a sell position every time a moving average of 6 periods crosses down a moving average of 12 periods and the candle close price below both moving averages, Stop loss will be placed at the high of the previous candle and it will follow the high of the last two candles when the high of the last two candles is lower than open price.
Ea must count accumulation losses to keep running the lot calculation till result is + than restart from first position.
The Perimeter is;
1. Moving Average1 (input period)
2.Moving Average2 (input Period)
3.Initial Lot (input lot size for first order)
4.Lot calculation type if first one has no profit ( start lot(1,1,1,1,1,1,1,1,1,1,1) Martingale lot(1,2,4,8,16,32,64,128) Fibo lot(1,1,2,3,5,8,13,21,34) Sum Start lot(1,2,3,4,5,6,7,8,9) - to be selected
I will need to test the EA to make sure it works.
Kind Regards