I'm running into this issue stated in the Help on SetStopLoss:
"Should you call this method to dynamically change the stop loss price in the strategy OnBarUpdate() method, you should always reset the stop loss price/offset value when your strategy is flat otherwise, the last price/offset value set will be used to generate your stop loss order on your next open position"
Can someone please give me and idea of how to reset the value. Also there may be times in my strategy when the value will need reset, but I won't be flat, such as having another open position.
Thanks
Comment