Is there a way to "disable" NT's auto strategy shut-off when the Strategy tries to ChangeOrder(...) on an Unmanaged order that was already "cancelled" at the broker?
For example, if I have an OCO profit/stop pair -- and the stop order is being cancelled while my strategy is trying to adjust it. These conditions happen -- rarely -- but do happen when there's a 'race' condition or a sequence of events that happen very quickly.
Or -- alternatively -- is there a way to "hook" into the auto-shut off and stop it from shutting down? I've developed my own order system using "unmanaged" -- and it handles its own state management, etc...
Here's a screen cap of the sequence of checks on the status of an order object:
in the "try/catch" exception handling part of the code, is there a way to "catch" the exception that NT throws so I can mitigate the Strategy from shutting off?
- BigSurf
(really, really dislike NT's auto shut off)
Comment