"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"
I'm using this in both OnBarUpdate as well as OnExecutionUpdate .
SetTrailStop("MY LONG ALERT",CalculationMode.Ticks, StopLoss, false);
What is the code to reset the trail stop price??
The parameter StopLoss is passed in as an input parameter.
Comment