How do I group accounts in Tradovate for batch flatten?

How do I group accounts in Tradovate for batch flatten?

How do I close all positions at once in an emergency?

There are situations where you need to flatten every open position quickly — a sudden event affecting the markets, a naked trade you need to close right away (see: Naked Trades), a strategy behaving unexpectedly, or any other reason you want exposure to zero immediately. You have two reliable paths for this.


Option 1: Through NinjaTrader (fastest if the platform is responsive)

If NinjaTrader on your VPS is running normally, the quickest way to flatten everything is from the platform itself:

  1. Open the Positions tab in the NinjaTrader Control Center.
  2. Right-click inside the Positions tab.
  3. Select Flatten Everything (some versions label this as "Flatten All" or similar).

This sends flatten orders for every open position across every connected account in one action — and as a safety feature, NinjaTrader automatically disables every running strategy as part of this command. You don't need to take a separate step to stop new trades from firing; the flatten and the strategy disable happen together.


Option 2: Through your broker's own tools

If NinjaTrader is unresponsive, disconnected, or you want a backup path that goes directly to the broker, every broker supported by Vector provides a way to flatten positions from their own tools:

  • Tradovate accounts: log into the Tradovate web dashboard in your browser. The Accounts module includes a flatten action per account, and Tradovate's emergency flatten features live in the same interface where you'd check balance and drawdown.
  • Rithmic accounts (Apex, Bulenox, and other Rithmic-routed prop firms): open R | Trader Pro. The Trader Dashboard includes options to cancel all orders and flatten positions for the selected account.
  • Other supported brokers (NinjaTrader Brokerage, IBKR): use the broker's native platform or web portal; each has a flatten-all or close-all-positions action.

Going through the broker directly guarantees the order reaches the exchange even if the NinjaTrader side is stuck, locked out by API rate limits, or disconnected.


Important distinctions

  • NinjaTrader's "Flatten Everything" disables your strategies automatically. Closing positions and stopping new trades happen together through this command — that's what makes it the fastest "emergency stop" when the platform is responsive.
  • Broker-side flatten only closes positions — it does not touch your NinjaTrader strategies. If you flatten from Tradovate's web dashboard, R | Trader Pro, or another broker tool, the strategy on NinjaTrader is unaffected and may place new trades when its conditions are met again. If you had to go through the broker side because NinjaTrader was unresponsive, follow up by disabling the strategy on the VPS once you regain access (or open a ticket so the team can do it for you). Otherwise new trades can fire as soon as the platform reconnects.
  • Confirm on the broker side. After flattening by any path, check your broker's portal to confirm the positions are actually closed. The broker is the authoritative source for position state, not NinjaTrader's display (see: checking actual drawdown article for the same principle).

If you can't flatten through any of the paths above

Open a ticket at http://support.vectoralgorithmics.io/ immediately and describe what you're seeing — stuck positions, unresponsive platform, connection issues. The team can help escalate or act on your behalf where possible. For related scenarios, see the Positions stuck open article.


Video walkthrough

How to close position or flatten