I set a stop loss through my strategy in OnBarUpdate() and also through a button click that I have on the chart trader. Both are set using SetStopLoss function. But when I try to manually move the stop loss, it gets put back to the last set position using SetStopLoss when a new bar prints.
SetStopLoss is not called on every bar update in my code for this to happen. How do I prevent this?
Comment