Job finished
Specification
I need somebody to modify the EA so that instead of opening one hedge trade it will open a smaller hedge and if the market continues to go against the initial trades new hedge trades will be opened at a preset number of pips. The new hedge position will need a multiplier so that the new hedge order size can be set (ie 0.8 * previous hedge order or 1.3 * previous hedge order).
The EA already has a hedge stopploss function as each new hedge level is added the stopploss should be moved to be X pips from the newest hedge level opened. The EA calculates take profit already and new hedge trades should be included in the TP as long as they have the magic number for the hedge trades.
The end result should be that when a drawdown situation occurs of a preset percentage a hedge trade will open (probably 0.2 times the already open positions). If the market continues to go into drawdown at X Pips (say 10) a new hedge trade will opened and it's size will be X * the size of the previous hedge position (say 1.1) The stoploss set already should be moved to it's preset distance from the newest hedge level. Should there be no significant change of trend against the hedge trades the EA's take profit calculation should close all trades when the take profit level is reached. However if the hedge trades are stopped out any profit/loss should be added to the closed profit/loss of the basket of trades so that the take profit level can be adjust accordingly by the EA.
All modification should only be to the hedge function of the EA.
The set files attached are designed to work on 2 charts, the left set file opens only new buy positions and when hedging sell positions, the right set file is opposite, so new trades are only sell's and hedging is only buys. Although the 2 set files work on the same account on 2 charts one set file can be back tested on 1 chart without any issue.
After this modification is completed I have another similar modification in mind to take effect on the normal trades (non hedge) where the EA will add to the existing position in a strong trend rather than taking profit with only a small position open.