Something weird is happening. Regular stop losses work fine, but with absolutely zero changes in my code other than changing 'SetStopLoss' to 'SetTrailStop', the backtesting just stops working.
Attached are screenshots of me using a 20% stop loss and a 20% trailing stop.
As you can see, the regular stop loss works fine, triggering at 20%, but the trailing stop for some weird reason triggers on the same bar every single time.
No idea why this is happening.
Thanks for any help.
Comment