Hello,
Can someone please help me with the following:
Rules for LONG Trades;
1. Initial Stop at 65 pips.
2. Close half of the position at +50 pips; move stop loss on rest to initial entry price (breakeven).
3. Close remainder of position at +195 pips.
Same rules apply for SHORT trades.
I am trying to do a backtest on EURUSD. Can anyone please provide the code for the above rules.
Thank you.
Regards,
Maisam
Everything you need for this is included in this code example: https://www.prorealcode.com/topic/bollinger-band-coding-help-please/#post-80959
Levels are expressed in percentage of the takeprofit and not in pips for breakeven/partial closure.