**NT** AtmStrategyChangeStopTarget() method error: OrderName 'STOP1' does not exist
it happens on the onbarupdate call but only when the bars are moving fast. Slow moving bars no problem tested 100s of examples.
I use unirenko bars so the the range bars can go very fast on fast moving prices, I have run for days without issues then today I get a fast moving bars and the error
Adding order
atmStrategyId = GetAtmStrategyUniqueId();
orderId = GetAtmStrategyUniqueId();
AtmStrategyCreate(Cbi.OrderAction.Buy, OrderType.Stop, 0, buystopp, TimeInForce.Day, orderId, "AtmStrategyTemplate", atmStrategyId);
then net time around on the onbarupdate call
if ((atmStrategyId.Length > 0)&&(orderId.Length > 0)){
status = GetAtmStrategyEntryOrderStatus(orderId);
if (status.Length > 0)&&(status[2]=="Filled")
AtmStrategyChangeStopTarget(0, tstop, "STOP1", atmStrategyId);
ignore coding errors I just cut n paste the pertanient code
the atmstrategy automatically creates a stop when order is filled
maybe on fast bars I can check for the stop being created? I think it was eventually created, but it stayed and did no get cancelled
when the order closed, this was a fast set of bars (fast price action) in and out fast.
Comment