TradeReign
Back to HomeEducation HubCompatibilityAboutDisclosures
NinjaTrader Order Management

NinjaTrader Flatten Everything Check Which Accounts It Closes

Quick Answer

Desktop Flatten Everything targets all connected accounts and instruments. In NinjaTrader Web, Flatten everything in an individual account summary targets that account. In Mobile, open Manage and use the triangle at the top right for the selected account. Verify positions and working orders separately.

Compare Desktop, Web and MobileCheck which accounts the action coversCheck the Desktop hotkeyFind Close All in the Mobile appCheck the Desktop Auto Close timerCheck what the Web schedule leaves workingVerify what closed and what is still workingCheck a Close Position timeoutCheck an account after a connection drops
Comparison

What each close command covers

For Desktop Close Position, this table refers to a normal left-click. A middle-click on Close targets the selected active ATM strategy.

Action
Positions
Working orders
Desktop · Close Position
Selected account and dated contract.
Targets orders on that account and contract.
Desktop · Flatten Everything
All accounts connected to Desktop, across instruments.
Targets working orders across those connected accounts.
Web · Flatten everything
All positions in the selected individual account.
Targets working orders in that account. The control is disabled when the account has no open positions.
Web · Flatten group
All positions across the accounts in the selected group.
Targets orders in each account in that group.
Mobile · Manage warning triangle
All instruments in the selected account.
Targets working orders in that same account and opens a confirmation prompt.

Find Flatten Everything and check the account scope

In Desktop, open Control Center → Positions and right-click the grid. Flatten Everything targets all open positions and working orders across connected accounts. Filtering the grid changes what you see. The scope of the command still includes the other connected accounts. Flatten Everything runs without a prompt even when Confirm close and order cancellation is enabled.

In Web, select an individual account, open the account summary dropdown, then find Flatten everything under Flatten Positions. If Web order confirmations are enabled, review the confirmation before accepting. If the control is gray because the account is flat, check Orders for any working entry and manage it there. If you have a group selected, switch to an individual account to use this workflow.

When you select a group in Web, the account summary lists its member accounts and the button changes to Flatten group. Check the membership before using it. An account outside that group is outside the scope of that command.

Choose whether you need to exit or take a timed break. After Flatten Everything, verify you are flat and the working orders are gone. If you also want the platform to refuse new orders for a set time, check Manual Lockout on an eligible NinjaTrader Prop account. Read the account and expiry in the lockout dialog before confirming.

Check the Desktop Flatten Everything hotkey

NinjaTrader lists no default key for Flatten Everything. In Control Center, open Tools → Hot Keys and check the Flatten everything action. A blank field means no shortcut is assigned. If the action has a saved key, check the label before you press it. Close Position is the shortcut for the active order-entry window.

Flatten Everything can affect all connected accounts without a confirmation prompt. Rehearse it with only isolated simulation accounts connected, then check Positions and Orders for every account you expected it to cover.

Close all positions in NinjaTrader Mobile

Open Manage from the bottom-right corner of the app. Check the account shown in Overview, then review the open positions and working orders. The warning triangle at the top right of Manage opens the account-wide close and cancel action and shows a confirmation prompt. To act on one instrument instead, tap its position in Manage to open the chart and locate the chart’s Close control.

In the simulated accounts below, selecting Account A in Mobile targets the two MES contracts and their bracket orders in A. Account B’s working MNQ entry belongs to a different account and can remain working. If the MNQ entry were in A, the account-wide Mobile action would target it even if A had no open MNQ position.

After confirming a practice close, reopen Manage for Account A. Check Positions for remaining contracts and Orders for each working, filled, canceled or rejected order. Switch to B separately if you also intended to review that account.

Check which accounts Desktop Auto Close Position covers

Open Control Center → Tools → Settings → Trading to find Auto Close Position. Verify the platform time zone under Tools → Settings → General. Desktop must stay open and connected at the scheduled time. The timer requests cancellations and sends market orders to close the positions it covers.

The Instruments list limits which products the timer covers. It applies across connected accounts. In an isolated simulation, if Sim101 and Sim102 both hold MES and you include MES in the timer, both positions are in scope. After the timer runs, check Positions, Orders and Executions in each account.

What stays working after NinjaTrader Web Flatten Today?

In NinjaTrader Web, open the account summary and select Schedule under Flatten Positions. In the Flatten today window, check Enabled, choose a future time on the current calendar day, check the displayed time zone, and save. The schedule resets after it runs. Set it again on any later day you want to use it.

Suppose one simulated account is long MES with a working stop and target. It is flat in MNQ with a separate working MNQ buy limit. If that state still holds when the schedule runs on the account, the MES exit and bracket cancellations are targeted. The MNQ limit can stay working because the account is flat in MNQ. Check Orders for that entry even after Positions shows the account is flat.

If you use multiple accounts, verify the result account by account. NinjaTrader’s scheduling article describes connected-account coverage in its overview and uses selected-account wording in its final step. Check which accounts your setup covers in simulation before relying on the timer. Verify Positions, Orders and Executions afterward, and check the earlier of any applicable broker margin cutoff or prop firm closeout deadline separately.

Verify the exit in Positions, Orders and Executions

Use this fictional example to read the records. Account A is long two MES with a working stop and target. Account B has no open position and a working MNQ buy limit. Web Flatten everything in A targets A’s MES and bracket. The buy limit in B stays working. Desktop Flatten Everything targets the MES exit and all of those orders when both accounts are connected.

Suppose Desktop Executions shows an MES sell of one contract and Positions still shows one MES long in A. In Orders, check whether the rest of the exit is active or has a final status. Check the stop and target separately. In B, verify the MNQ limit reached a final status and check Executions for any fill that arrived before cancellation. A flat position and a working entry can coexist.

If a status is pending or a connection drops, verify the account’s current positions and orders through the provider’s supported access or orders desk before repeating a close. Have the account identifier, dated contract, order ID and time of the attempt ready. An active exit and a second closing request can both execute.

What to verify when NinjaTrader Close Position times out

For the regular Desktop Close action on a futures position, NinjaTrader documents two steps. It requests cancellation of working orders for the account and instrument, then sends an offsetting order after receiving cancellation confirmations. It waits up to five seconds for those confirmations. A timeout means you still need to verify the position and order states with the account provider.

Suppose you are long two MES with a working stop and target, and the close action times out. If your broker shows the stop canceled, the long position still open and no confirmed closing fill, the canceled stop provides no protection. If the broker shows a sell fill of one, the position is long one under these assumptions. Check for any remaining close order and its working quantity before requesting another exit.

Read the current position, working orders and executions for the exact account and dated contract. If you cannot verify them, contact the broker or firm’s trade desk and have the time, time zone and order IDs ready. Use the account provider’s current records even if the Desktop chart continues showing prices.

Check a disconnected account even if the chart keeps updating

In a Desktop setup that uses a dedicated data feed, the chart can keep receiving quotes while a separate brokerage or prop connection is unavailable. Check the account connection in Control Center separately from the quote feed. Desktop Flatten Everything targets connected accounts. If a connection dropped while the command was running, verify that provider’s state before deciding what happened.

Say you were reviewing two practice accounts. The provider for Account A confirms the two MES exit fills, the bracket cancellations, and a flat position. Account B’s connection dropped, and its last known state was flat with a working MNQ entry. Record B as unresolved. The entry may still be working, may have filled, or may have reached a final canceled status. A’s confirmations tell you only about A.

For B, check the provider’s supported account interface or contact its orders desk. Verify the exact account, contract, position, original order and any execution since the last confirmed state. Write down the last verified time. If an exit might already be active, verify it before sending another closing order. When practicing, use an isolated simulation and read both the final position and order status for each intended account.

Check NinjaTrader’s data and account connections separately.

Platform relationship

NinjaTrader® is a registered trademark of NinjaTrader Group, LLC. No NinjaTrader company has any affiliation with the owner, developer, or provider of the products or services described on this website, or any interest, ownership, or otherwise, in any such product or service, and no NinjaTrader company endorses, recommends, or approves any such product or service.

Sources

Official References

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

NinjaTrader Desktop close and flatten commandsFind the commands, account scope and confirmation behavior.NinjaTrader Desktop hotkey referenceCheck default assignments and distinguish the Flatten Everything and Close Position actions.NinjaTrader Desktop Auto Close PositionVerify the timer, platform time zone, instrument list and connected-account scope.NinjaTrader Web account summary controlsCheck the immediate flatten command, the account selected and the separate schedule.NinjaTrader Desktop Close cancellation and confirmation sequenceSee which cancellations the regular Close action requests before it sends a futures offset order.NinjaTrader Desktop Positions tabReview the position grid, account filter and vendor caveat about close requests.NinjaTrader Control Center connection statusIdentify the account and data connections and find the Orders, Executions and Positions tabs.NinjaTrader Mobile Account ManagementVerify the warning triangle, confirmation and selected-account scope.
Related Guides

Keep Building the Rule System

Check Desktop shortcut scope

Distinguish an order-entry shortcut from a global one before assigning a key.

Practice in an isolated NinjaTrader simulation

Verify the connection and account before testing order controls.

Find why a NinjaTrader order was rejected

Match the provider’s message to the account, contract and order.

Find the corresponding Tradovate control

Verify the selected account, exit fills and cancellations in Tradovate Web.

FAQ

Common Questions

Does the Desktop Positions filter limit Flatten Everything?

The filter controls which rows you see. Flatten Everything targets all accounts connected to NinjaTrader Desktop and their open positions and working orders.

Why is Flatten everything grayed out in NinjaTrader Web?

The control is disabled when the selected individual account has no open positions. Check the Orders module for a working entry and review its status there.

Does NinjaTrader Mobile close positions in other accounts?

The account-wide control in Manage covers all instruments and working orders for the selected account. Review a different account separately.

Does a moving chart confirm my NinjaTrader account was flattened?

A separate quote feed can keep the chart moving while an account connection is unavailable. Verify positions, orders and executions for the exact account with its provider.

Can I schedule NinjaTrader Desktop Auto Close Position for one account?

The Desktop timer applies across connected accounts. Its Instruments list controls which products are covered. Desktop must stay open and connected at the scheduled time.

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.