1. It closes an order by the intersection of two MAs (5 and 7 on default);
2. It automatically moves the stop by the StopATR_auto indicator;
3. It moves the opened position to the breakeven when the price reaches the specified level.
Attention! The EA closes only opened orders!
Input Parameters:
MA_CloseOnOff - turning on (1) or off (0) the mode of closing the orders by the intersection of MA StATR_CloseOnOff - turning on (1) or off (0) the placing and modifying of the stop by the StopATR_auto indicator MA_Fast_Pe - the period of the fast ΠΠ MA_Fast_Ty - the type of the fast MA(0-SMA, 1-EMA, 2-SMMA(smoothed), 3-LWMA(weighted)) MA_Fast_Pr - the price of the fast ΠΠ (0-Close, 1-Open, 2-High, 3-Low, 4-HL/2, 5-HLC/3, 6-HLCC/4) MA_Slow_Pe - the period of the slow MA MA_Slow_Ty - the type of the slow ΠΠ (0-SMA, 1-EMA, 2-SMMA(smoothed), 3-LWMA(weighted)) MA_Slow_Pr - the pice of the slow ΠΠ (0-Close, 1-Open, 2-High, 3-Low, 4-HL/2, 5-HLC/3, 6-HLCC/4) TimeFrameΒ Β - the operational timeframe (1-Π1, 5-Π5, 15-Π15Π± 60-Π1, 240-Π4) BezUb - the level of profit in points when the order is moved to the breakeven CountBarsForShift - the parameter of the StopATR_auto indicator - the distance in bars for displaying the stop on the screen CountBarsForAverage - the parameter of the StopATR_auto indicator - the amount of averaging bars for stop calculation Target - the parameter of the StopATR_auto indicator - the coefficient of increasing the value of the average bar for stop calculation
The StopATR_auto indicator must obligingly be in the Indicators folder of your ΠΠ’4.
It is not necessary to attach the StopATR_auto indicator to the chart, the EA will do it itself.