Stoploss doesn’t work on Backtest

Forums ProRealTime English forum ProBuilder support Stoploss doesn’t work on Backtest

Viewing 31 post (of 31 total)
  • #167635

    The stop loss works fine.

    The issue is that the STOP order at line 35 is placed the next candle, not immediately on entry, because the ONMARKET status is updated at the closing of the entry candle.

    Add this line between 19 and 20:

     

Viewing 31 post (of 31 total)

Create your free account now and post your request to benefit from the help of the community
Register or Login