I would like to add break-even, partial close and trailing stop function based on ATR to my existing EA.
Stop-loss should be moved to breakeven using custom input ATR period and ATR multiplier(eg, 10 Period, 1xATR multiplier)
Partial Close Rules:
It will be triggered as soon as break-even is triggered. Requires a custom input for % of the position to be closed.(eg, 50% means close half of the position).
Trailing stop Rules;
Should start trailing from the breakeven point as soon as the price has travelled in profit based the ATR period and multiplier set. This should have its own custom input for the ATR distinct from the Breakeven function.
The above function should be added to the EA without affecting the iCustom calls, buy, sell, and close conditions that are already in the code. Since I'm not a coder, and I'm only able to alter those parts to switch different indicators or trading conditions for backtesting purposes, hence I would like those parts to be intact, or if changes are necessary to those parts, I would need easy and understandable instructions or comments for me to do so using the meta editor.
HI, creating these parts does not need any change in previous parts or in iCustom parts, I can add all of these options and keep calculation and bid placing parts intact.