TradeReign
Back to HomeEducation HubCompatibilityAboutDisclosures
NinjaTrader Desktop

NinjaTrader Strategy Start Behavior Wait Until Flat, Immediately Submit and Account Sync

Use this check when a feed reconnects but your NinjaScript strategy stays disabled, waits in orange, or shows a different quantity from the account. The same mismatch can lead to a buy or a sell depending on Start behavior. Rehearse the settings on Sim101 with a single strategy before using them on a live account.

Quick Answer

In Control Center → Strategies, compare Position with Acct. position for the same account and dated contract. Wait until flat waits for the strategy’s position to reach or cross flat. Immediately submit lets eligible orders go to the account as soon as the strategy starts. The synchronize account versions can submit market orders that change your account position.

Start 7-Day TrialFind both positions in Control CenterVerify the startup result

Strategy position

The position the NinjaScript strategy calculated, which can include virtual historical trades.

Account position

The quantity held on the selected account. It includes activity outside that strategy.

Working orders

Check the current order status and quantities independently of the two position values.

One account mismatch, four possible startup outcomes

Fictional Sim101 exercise. One strategy calculates a long position of two MES. The account already holds one MES long. Assume there are no working orders or new signals, and any reconciliation fills completely. Read the exact option before enabling a strategy.

Wait until flat

No reconciliation order.

The strategy waits for its own position to reach or cross flat. The account’s existing long remains until an actual account order changes it.

Wait until flat, synchronize account

A market sell of one MES to make the account flat.

Verify that the sell filled and the account is flat. The strategy waits for its virtual position to reach or cross flat before sending its normal orders.

Immediately submit

No reconciliation order. Eligible strategy orders can go to the account immediately.

The account can still hold one MES while the strategy starts from two. Inspect any generated order and its quantity.

Immediately submit, synchronize account

A market buy of one MES to match the two-contract strategy position.

Verify that the buy filled, the account holds two and the expected protective orders are working.

Check the strategy and account positions before enabling

In NinjaTrader Desktop, open Control Center → Strategies. Match Account Name and Instrument. Read Position and Acct. position if they are available for the strategy instance. If you cannot see the columns, right-click the grid, choose Properties and enable them. Confirm the actual exposure on the Positions tab and check Orders for the same account and expiry.

With a newly enabled strategy, a historical long can be virtual. An orange row under Wait until flat means the strategy is waiting to reach flat. NinjaTrader’s Sync column counts an orange strategy as flat during that wait. If you are checking several strategies on one account and instrument, compare their intended combined exposure separately. The Sync column for a row compares only that strategy to the account.

On a disabled strategy, use Edit Strategy to review Start behavior in its parameters before enabling. If an account position or working exit is unclear, verify it with the broker before changing the strategy. Use a separate Sim101 exercise to observe the effect of a setting.

Verify fills and protection after a simulated restart

Record the time you enabled the strategy, then check Strategies, Orders, Executions and Positions for the same account and dated contract. Compare any reconciliation order and actual fill with the quantity you expected. Check the stop and target independently. A matching position size only confirms the quantity comparison.

When starting immediately, NinjaTrader can match working orders the strategy previously submitted. The match uses side, order type, quantity, limit price and stop price. It can also cancel unmatched strategy orders and send remaining strategy orders. Orders the strategy did not generate can stay working. Check each order’s origin before assuming which orders were restored or removed.

If you see an alert instead of a start, use the Control Center Log to check for a failed cancellation or another reason. Compare the order’s final status with the execution records. The right-click Synchronize All Strategies command can submit market orders based on combined enabled strategies. Use the documented scope and your simulation results before relying on it.

Sources

Official References

Platform details on this page were checked against these official resources.

NinjaTrader Start behavior and account synchronizationThe startup options and the market orders each can send.NinjaTrader strategy position versus account positionHow historical strategy trades create a different position from real account exposure.NinjaTrader Control Center Strategies tabThe Position, Acct. position, Enabled and Sync columns.
Related Guides

Keep Building the Rule System

Check a strategy that stayed disabled after reconnecting

Review the connection loss setting, restart limit and Control Center Log.

Set up NinjaTrader Sim101 for practice

Verify the simulated account and order routing before rehearsing a restart.

Review a backtest in Strategy Analyzer

Compare modeled fills with what you can verify in the account.

FAQ

Common Questions

Does Wait until flat close my NinjaTrader account position?

The plain Wait until flat option assumes the account is flat and waits for the strategy position. Its synchronize account variant can submit a market order to flatten a nonflat account position.

Why is my NinjaTrader strategy orange after I enable it?

In the Strategies grid, orange indicates that a strategy is waiting for its own position to reach or cross flat. Check the Start behavior and verify the actual position separately.

What does Adopt account position do?

A compatible strategy starts from the real account position. The developer must enable this support. NinjaTrader documents restrictions on other working orders and on starting more than one adopting strategy for that account and instrument.

Risk Disclosure

Futures trading contains substantial risk and is not suitable for every investor. TradeReign is a trading-discipline and rule-enforcement application. It does not provide trading advice, trade signals, investment recommendations, or performance guarantees.

TradeReign is not a broker-dealer, futures commission merchant, or investment advisor.

Futures trading contains substantial risk and is not for every investor. An investor could potentially lose all or more than the initial investment. Only risk capital - money that can be lost without jeopardizing financial security or lifestyle - should be used for trading. Past performance is not necessarily indicative of future results.