工作已完成
指定
The EA creates a Donchian channel and opens buy/sell positions based on the upper/lower range of the Donchian band.
The EA uses an optional trailing stop to take profit.
It opens more buy/sell positions based on the Donchian band and creates a grid if the positions are not closed in profit.
The EA features a special recovery system: If a sustained trend occurs the biggest open loss making order is reduced step by step with the profits made buy the opposite orders similar to the recovery system from the EA “AW Recovery System”: https://www.mql5.com/en/market/product/28868
The EA always splits the biggest loss making order into many separate parts, and closes each of them separately. In this way there is no need for a big enough retracement in prize to recover the loss basket.
If a retracement in price happens large enough then close all loss making positions and start a new grid cycle.
The EA must also have a user interface that that shows Profit target, current floating profit/loss of the EA, etc.
Trailing stops, take profits should be internally calculated and “invisible” to the broker.
I expect the code to be clean, organized and commented without bloating of “template code”.
Delivery: source code and compiled file
Parameters:
- magic number
- maximum slippage (points)
- maximum spread (points)
- maximum orders buy
- maximum orders sell
- start Lot
- use trailing stop (yes/no)
- trailing stop distance (points)
- take profit (points)
The Grid settings have the following parameters:
- grid step (points)
- martingale/sum start lot/fixed start lot/fibo lot for the next orders
- increase of grid step after each order (points)
Recovery settings
- minimum drawdown to start recovery (percent of account balance)
- how much of the profits are used for recovery (percent of profits)
- how much profit used to reduce biggest loss order (dropdown) (the remaining percent are distributed equally among potential other open loss orders in case 90-10% is selected)
-- 100%
-- 90%
-- 80%
-- 70%
-- 60%
-- 50%
-- 40%
-- 30%
-- 20%
-- 10%