Are you stating that when you submit an order and disconnect, you are not receiving OrderUpdates after the connection is re-established?
Account positions (PositionAccount, Account.Positions) are updated on PositionUpdate events (updated as early as OnPositionUpdate.) The aim of the UnmanagedOnOrderUpdate strategy is to break away from order/execution/position ordering and to provide a way to generate a strategy position (not an account position) based on OrderUpdates instead of ExecutionUpdates. The strategy position can only account for trades made from that strategy alone. If you need full account level access, you would be back to relying on Order/Execution/Position ordering in your strategy, because you would need Position updates to drive your strategy logic and account position.
PositionAccount - https://ninjatrader.com/support/help...ionaccount.htm
Account.Positions - https://ninjatrader.com/support/help...ns_account.htm
With Interactive Brokers, I had previously recommended to build a strategy that follows 1. OnOrderUpdate 2. OnPositionUpdate to handle things that would most often be done following a SampleOnOrderUpdate style 1. OrderUpdate 2. ExecutionUpdate approach. Since account positions update as early as OnPositionUpdate, this approach may be worth a check if you can use it for your purposes. My old suggestion is attached in this post.
When this was suggested, Interactive Brokers was reliably giving out PositionUpdates after OrderUpdates (ExecutionUpdates were coming out of our normally expected order.) We are staying away from advising this incase Order/Execution/Position ordering changes again. This has been the case with Rithmic (we no longer expect an order with Rithmic,) and we also had to update the way the NinjaTrader Control Center handles PositionUpdates from IB when it updates positions on the Strategies tab of the Control Center.
You may see if following 1. Order 2. Position updates works for your purposes with Interactive Brokers. I would not try that ordering with Rithmic, however.
We look forward to assisting.
Comment