I have spent quite a few hours trying to resolve the problem that I have, and I've searched for the answers for a long while too... I think I am missing something obvious, so please help anyone...
I have strategy that I would like to "scale out" of position, using ExitLong.../ExitShort... type orders. I've tried "OnPositionUpdate, OnExecution, OnOrderUpdate", all with the same result. Orders are placed as expected, but at the end of the bar they are canceled by NT for some reason, leaving my position "stop-less" and floating on the market. I am attaching a simple example that duplicates the problem, as well as the output from the order trace. Any help will be much appreciated...
I suppose the question is: Am I doing something wrong, or do I need to resubmit the stop/limit orders at the close of each bar in order to keep them going?
Roman
MyOrders.zip
OrderTrace.txt


). Obviously at 2:44 am I am no functioning as expected...
Comment