In my options I have strategies set to "Wait until flat before executing live" and for order handling I have checked "Cancel entry orders...." but not checked "Cancel exit orders" and in the strategy properties, "sync" is set to false.
When I started the strategy, it ran fine and submitted a market order to enter a position and a stop and a target to protect it. It seems it is these orders which the strategy was then unable to cancel out.
I investigated why it should try to cancel the orders.
I reproducing the scenario historically and on the bar when the error occurred, the strategy did nothing except leave the orders open. So it is a mystery why NT tried to cancel the orders, and why it failed to cancel them, and why the error message says "strategy not started". It was clearly running / started.
10 other strategies - same script, different instrument - that I started at the same time are running fine.
I have enclosed the traces and the logs in case they help.
Can you tell me if there is a way in script to show whether the strategy is trading in real-time or whether it is being held, i.e. state yellow / waituntilflat?
I have come across "historical" which obviously doesn't cover this phase, but it is close and looks like it should have this status level.
Thanks

Comment