Работа завершена
![](https://c.mql5.com/i/avatar/avatar_na2.png)
![](https://c.mql5.com/i/avatar/avatar_na2.png)
Техническое задание
Hi there,
I would like to get my Donchian Channel strategy coded into an EA for MT5 please.
Details are as follows:
This strategy uses 3 indicators, Donchian Channels, Moving averages and ATR.
I need to be able to select between various moving averages, Simple, Smoothed and Exponential.
Long entry:
Price must be above Moving average
Price must close below previous candle Donchian channel value.
Previous donchian channel line MUST be flat OR sloping upwards.
Stop Loss is placed at signal candle ATR value. (Eg, 2 x ATR)
Take profit is when a candle closes above Donchian channel.
Short entry:
Price must be below Moving average
Price must close above previous candle Donchian channel value.
Previous donchian channel line MUST be flat OR sloping downwards.
Stop Loss is placed at signal candle ATR value.
Take profit is when a candle closes below Donchian channel.
Additional required settings:
Trailing Stop Loss – Instead of closing the trade at TP, close a percentage of the trade, move stop to Break even and trail SL at an ATR value. A step setting would be great.
Requires a trade time filter
Requires the option to select between Buy Only or Buy and Sell.
Requires a spread filter
Risk needs to be selectable between percentage of equity, and Dollar value.
This needs to be traded on all available timeframes
All trades in profit needs to be close on Friday at Market close.
Multiple entries can be taken ONLY when initial trade hit TP and SL is being trailed. If not, then no other trades might be taken.