Auftrag beendet
![](https://c.mql5.com/i/avatar/avatar_na2.png)
![](https://c.mql5.com/i/avatar/avatar_na2.png)
Spezifikation
The trading strategy is based on the classic indicator of a moving average.
There should be two MA's, one fast and a slow one. the buy and sell signs will be when the fast cross upwards the slow, it's a buy sign. When the fast cross downwards the slow, it's a sell sign.
The EA needs to have these parameters:
Lots = indicates how many lots should be traded.
FastMA = indicates the period of the fast moving average.
FastMAMethod = indicates the method of the fast moving average.
SlowMA = indicates the period of the slow moving average.
SlowMAMethod = indicates the method of the slow moving average.
TakeProfit = Indicates the value for take profit.
StopLoss = Indicates the value for stop loss.
Endhour= this parameters indicates the time when the EA will stop negotiating, if there is an oppen position by this time, the EA will close all positions, and stop making trades.
Endminute= this parameters indicates the time when the EA will stop negotiating, if there is an oppen position by this time, the EA will close all positions, and stop making trades. It complements the endhour parameter.
When sending an order, the EA shoul only try one time, if the function that makes the order will be a Loop, there should be a parameter to indicate how many attempts, but the default is one.