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
- 1In TradeLog, open Connections from the sidebar and pick NinjaTrader.
- 2Click "Create API Key", name it, and copy the key.
- 3Download the TradeLog Sync strategy from the same screen (the download button is currently marked "Coming Soon").
- 4In NinjaTrader, add the TradeLog Sync strategy to a chart and open its parameters.
- 5Paste your TradeLog API key into the strategy's parameters.
- 6Enable the strategy.
- 7Verify by closing a test trade and checking your TradeLog journal.
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
- 1Open the NinjaTrader Control Center and go to the Strategies tab.
- 2Find the TradeLog Sync strategy and re-enable it.
- 3That is all -- the journal catches up on its own once the strategy reports again.
- 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.
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.
Was this helpful?