Работа завершена
![](https://c.mql5.com/i/avatar/avatar_na2.png)
![](https://c.mql5.com/i/avatar/avatar_na2.png)
Техническое задание
This EA is designed around the Smoothed Heiken Ashi strategy. The setup of the EA is simple, I have attached an indicator “Heiken_Ashi_Smoothed” which should be applied to any chart. Please use GBPUSD H1 in this example. The input parameters should be as follows. MaMetod 2, MaPeriod 20, MaMetod2 3, MaPeriod2 20. Once entered in, the indicator should display a Smoothed Heiken Ashi (SHA) on the chart. Please see the image attached for details. I would like this EA to do the following.
The EA should open a BUY/SELL when the SHA has opened a second consecutive full candle on the same colour. You can see in the image attached that at 0100hrs broker time on the 07/04/2017 the first RED candle appeared, at 0200hrs broker time the second RED candle appeared. This is when the EA should SELL the position at the already decided lot size (according to the settings below). The EA will then look for a BUY signal as the previous signal was a SELL. The EA should then open a BUY trade at 0300hrs on the 11/04/2017 as that is when the second green candle appears on the SHA. The EA must continue to do this without issue going from BUY,SELL,BUY,SELL etc. It is important to note that once the EA has triggered a trade, that it must not trigger another trade in the same direction. I should be able to close the trade manually or the trade would hit the pre decided SL/TP. If and when the trade closes, the EA must NOT trigger another trade in the same direction, it needs to look for an opposite signal.
Smoothed Heiken Ashi Inputs
MaMetod 2 (Defaults to the left, needs to work with any unit)
MaPeriod 20 (Defaults to the left, needs to work with any unit)
MaMetod2 3 (Defaults to the left, needs to work with any unit)
MaPeriod2 20 (Defaults to the left, needs to work with any unit)
Trade Settings
Trade Direction Long & Short, Long, Short
Trade Trend Changes True, False
Session Settings
Trade Asian Session True, False
Trade Europe Session True, False
Trade American Session True, False
Position Management
Stop Loss Any unit in points (I’m using a 5-digit broker, 300 points is 30 pips.)
Take Profit Any unit in points (I’m using a 5-digit broker, 300 points is 30 pips.)
Close on Opposite Trend Close the open position if the SHE triggers an opposite position. True,False
Trailing Stop Any unit in points (I’m using a 5-digit broker, 300 points is 30 pips.)
Break Even at £0 Any unit in points (I’m using a 5-digit broker, 300 points is 30 pips.)
Money Management
Lot Size 0.01 (Default should be 0.01 however any unit)