I have this code placed in OnExecutionUpdate, intended to reset stop loss orders to its default value once executed. This seems like a likely culprit. Would this cause this to happen?
if (execution.Order.Name == "Stop loss")
{
SetStopLoss("", CalculationMode.Ticks, stoplosss, true);
shiftstop = false;
trailingstop = false;
considerexit = false;
}
stoplosss = System.Convert.ToInt32(stoploss * atrbalance * SMAatr[0]);

Comment