Prerequisites
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.
Open Trade Performance
In NinjaTrader 8, go to New → Trade Performance from the Control Center. This opens the performance report window.
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.
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.
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.
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.
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).
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.
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.
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:
- NinjaTrader Brokerage (direct)
- Interactive Brokers (via NinjaTrader connection)
- TD Ameritrade / Thinkorswim
- GAIN Capital / Forex.com
- Any broker with a NinjaTrader 8 connection adapter
Troubleshooting
- Add-on not appearing after import — Ensure you fully restarted NinjaTrader after importing. If the add-on still does not appear, try re-importing the NinjaScript file.
- "Connection refused" or sync fails — Verify NinjaTrader is running and the API server is enabled. Check that no firewall is blocking the connection port. Try disabling and re-enabling the API server in NinjaTrader Options.
- Trades appear doubled — This can happen if you import via CSV and then also connect via API. Check for duplicates in the Trades list and delete the extras. Going forward, use one method only.
- Wrong P&L values — NinjaTrader may calculate P&L including or excluding commissions and fees depending on your settings. Use the Manual P&L field on individual trades to override, or adjust your NinjaTrader commission settings to match what you want reflected.
- CSV import shows wrong instrument names — NinjaTrader uses full contract names (e.g.,
NQ 03-25). RR Metrics strips the expiry suffix and maps to the base symbol automatically. If a symbol is not recognized, edit the trade after import to correct the ticker.