The Help section for the SetTrailStop explains that "Should you call this method to dynamically change the trail stop price in the strategy OnBarUpdate() method, you should always reset the trail stop price/offset value when your strategy is flat otherwise, the last price/offset value set will be used to generate your trail stop order on your next open position"
How can you do this? I am backtesting a strategy but the trailing stop does not work properly. I suspect that this is my issue.
Comment