Back to Import & Auto-Sync

NinjaTrader Auto-Sync Setup

Connect NinjaTrader for automatic trade synchronization via API

TradeLog supports automatic trade synchronization with NinjaTrader via the TradeLog Sync strategy (a NinjaScript Strategy). Trades executed in NinjaTrader are sent to TradeLog automatically, keeping your journal up to date without manual entry -- and the strategy includes the same opt-in Strict Risk auto-trim as the MetaTrader EA and cTrader cBot (AUTO follows your TradeLog strict-risk setting; off by default). Availability note: the NinjaTrader strategy download in Connections is currently marked "Coming Soon" -- the steps below apply once it is published.

How NinjaTrader Sync Works

NinjaTrader sync uses an API-key connection similar to MetaTrader. You generate an API key in TradeLog and add the TradeLog Sync strategy to a chart in NinjaTrader; it then pushes your trades -- including open positions, live -- to your journal.

Setup Steps

  1. 1In TradeLog, open Connections from the sidebar and pick NinjaTrader.
  2. 2Click "Create API Key", name it, and copy the key.
  3. 3Download the TradeLog Sync strategy from the same screen (the download button is currently marked "Coming Soon").
  4. 4In NinjaTrader, add the TradeLog Sync strategy to a chart and open its parameters.
  5. 5Paste your TradeLog API key into the strategy's parameters.
  6. 6Enable the strategy.
  7. 7Verify by closing a test trade and checking your TradeLog journal.
NinjaTrader sync configuration with API key input

What Gets Synced

  • All closed positions including entry/exit prices, times, and PnL.
  • Symbol, quantity, and direction.
  • Commission and fees.
  • Partial fills and position scaling are handled automatically.
  • Open positions appear in your journal as running trades and update live (stop-loss moves, scale-ins) until they close.

Supported Account Types

NinjaTrader sync works with both live and simulation accounts. It is particularly popular with futures traders using prop firm accounts through NinjaTrader-connected platforms like Tradovate, Rithmic, and others.

Closing From NinjaTrader's Own Buttons Turns the Strategy Off

This is NinjaTrader's behaviour, not TradeLog's, and it is the single most common reason sync appears to stop. Whenever you close a position using one of NinjaTrader's own controls — Chart Trader, the Positions tab, or Flatten Everything — NinjaTrader disables the running strategy, including the TradeLog Sync strategy. It stops reporting from that moment on, so any trade still open stays frozen in your journal at its last known state.
  1. 1Open the NinjaTrader Control Center and go to the Strategies tab.
  2. 2Find the TradeLog Sync strategy and re-enable it.
  3. 3That is all -- the journal catches up on its own once the strategy reports again.
  4. 4If the strategy is still enabled and trades are not arriving, the problem is the connection instead: check that NinjaTrader is online and the API key in the strategy parameters is still valid.
You do not have to notice this yourself. If a robot stops reporting while you still have open trades, TradeLog shows a warning banner at the top of the Journal naming the account and how long it has been silent, with the re-enable steps above built in.

One more NinjaTrader limit worth knowing before you start: a NinjaScript strategy cannot read executions from before it was running. The TradeLog Sync strategy captures from the moment you enable it and never backfills, so it will not import your past trades. For history, use the NinjaTrader CSV export and the file import -- or, if your data feed is Tradovate or NinjaTrader Brokerage, connect that account through Tradovate instead, which brings live trades and full history with no strategy at all.

NinjaTrader sync works well with prop firm accounts. When setting up, make sure to link the NinjaTrader account to the correct TradeLog account that has the matching prop firm profile for accurate rule tracking.
Keep your API key confidential. If you suspect it has been shared or compromised, delete it and create a new one from the Connections page.

Was this helpful?