As stated in the title, one of my strategies had one position open with TakeProfit/StopLoss orders working and when the takeProfit order got filled, the stop loss order got cancelled, but the strategy raised an error and disabled itself anyway saying that the stop loss order was in a un-cancellable state. How is this possible? What am I doing wrong?
I am using the managed orders mode, thus setting the take profit and stop loss with:
SetProfitTarget("RB", CalculationMode.Ticks, TakeProfit);
SetStopLoss("RB", CalculationMode.Ticks, StopLoss, false);
Thanks!

Comment