Guides / Broker Integrations / Connecting NinjaTrader
Broker Integrations 12 min read

Connecting NinjaTrader

Export your NinjaTrader execution history and sync it with RR Metrics for complete trade journaling and analytics — automatically or via CSV.

Prerequisites

Before you start: You need NinjaTrader 8 installed and an active brokerage connection (live or simulated). API-based auto-sync requires a Pro or Elite RR Metrics subscription. CSV export works on any plan.

Option A — CSV Export (Any Plan)

The easiest way to get NinjaTrader trades into RR Metrics is to export them as a CSV from the Trade Performance window and import the file.

1

Open Trade Performance

In NinjaTrader 8, go to New → Trade Performance from the Control Center. This opens the performance report window.

2

Select the Account and Date Range

Use the Account dropdown to pick the brokerage account you want to export. Set the Start and End dates to cover the full period you want to import.

3

Switch to the Executions Tab

Click the Executions tab (not Trades or Summary). This view shows individual fills — entry and exit executions — which RR Metrics needs to construct complete trade records.

4

Export to CSV

Right-click anywhere in the Executions table and select Export → CSV. Choose a save location. The file will contain columns for Time, Instrument, Action (Buy/Sell), Quantity, Price, and more.

5

Import into RR Metrics

In RR Metrics, go to Trades → Import and select NinjaTrader 8 Executions CSV as the format. Upload the file. RR Metrics pairs each Buy execution with the corresponding Sell to form complete trade records. Review the preview and click Confirm Import.

Option B — API Auto-Sync (Pro & Elite)

Pro and Elite subscribers can connect RR Metrics directly to NinjaTrader via the NinjaTrader API. Once connected, new trades are fetched automatically — no manual exports required.

Important: NinjaTrader API access requires NinjaTrader 8 running on your machine with the API server enabled. RR Metrics connects to your local NinjaTrader instance via a secure relay — your machine must be on for syncing to occur.
1

Enable the NinjaTrader API Server

In NinjaTrader 8, go to Tools → Options → Strategy Analyzer and enable Allow API connections (or similar — the exact option name may differ by NinjaTrader version). Note the port number shown (default is typically 36973).

2

Install the RR Metrics NinjaScript Add-On

Download the RR Metrics NinjaScript add-on from Settings → Broker Connections → NinjaTrader → Download Add-On. In NinjaTrader, go to Tools → Import → NinjaScript Add-On and import the downloaded file. Restart NinjaTrader when prompted.

3

Configure the Add-On

After restarting, open the RR Metrics add-on from Tools → RR Metrics Sync in NinjaTrader. Enter the API Token shown in RR Metrics under Settings → Broker Connections → NinjaTrader. Click Connect.

4

Sync Your Trades

In RR Metrics, go to Settings → Broker Connections → NinjaTrader and click Sync Now. Trades from your connected NinjaTrader account will appear in your journal. Enable Auto-Sync to have new trades pulled in automatically.

Supported Brokers

The NinjaTrader integration works with any broker connected through NinjaTrader 8, including:

Troubleshooting

Related Guides