In “ConnectionLossHandling” it states that: https://ninjatrader.com/support/help...sshandling.htm
---------------
When using ConnectionLossHandling.Recalculate, recalculations will only occur if the strategy was stopped based on the conditions below. Should the connection be reestablished before the strategy was stopped, the strategy will continue running without recalculating as if no disconnect occurred.
- •If data feed disconnects for longer than the time specified in DisconnectDelaySeconds, the strategy is stopped.
- •If the order feed disconnects and the strategy places an order action while disconnected, the strategy is stopped.
- •If both the data and order feeds disconnect for longer than the time specified in DisconnectDelaySeconds, the strategy is stopped.
1) For the first and third cases, after the strategy is stopped, and when both the data and order feeds connections resume,
Q1) can I assume that any outstanding Account positions at the brokerage will be flattened automatically by Ninja Trader Platform?
Q2) If so, is it possible that Ninja Trader Platform may encounter order rejection when trying to flatten the positions upon reconnection? Or should we flatten those positions manually, either via Ninja Trader Platform or calling Brokerage directly?
2) For the second case, if the order rejection is for closing an open Account Position,
Q3) will the Ninja Trader Platform attempts to flatten the open Account Position when the order feed connection is back? Or do we need to flatten the positions manually?
Thanks,
Ben (lorien)
Comment