How to export your trade history to CSV

Step-by-step: export your trade history to a CSV file from NinjaTrader 8, Tradovate and Rithmic R | Trader Pro, which report to use, and the mistakes that leave trades out.

Updated . Platform menus change between versions. If a step does not match what you see, check the platform's own help pages.

Where each export starts

  1. NinjaTrader 8
    1. 1Control Center
    2. 2Orders tab
    3. 3Right-click the grid
    4. 4Export
  2. Tradovate
    1. 1Account reports
    2. 2Orders report
    3. 3Set the timeframe
    4. 4Download Report
  3. Rithmic (R | Trader Pro)
    1. 1Order History
    2. 2Filter rows, show columns
    3. 3Export option

Before you export

A few things apply whichever platform you use:

Export orders, not summaries

Example

Order export

TimeInstrumentActionFilledAvg. price
09:31:05ESBuy25,012.25
09:44:12ESSell25,018.75
10:05:40ESSell15,020.00
10:12:03ESBuy15,016.50
Rebuilds 2 trades
  • Long 2 ES, +6.5 points
  • Short 1 ES, +3.5 points

Performance summary

Trades
2
Net P&L
+$825
Totals only

The entries, exits and sizes are gone, so the trades cannot be rebuilt.

At $50 a point per ES contract: 6.5 x $50 x 2 + 3.5 x $50 x 1 = +$825.

Four filled ES orders: buy 2 at 5,012.25, sell 2 at 5,018.75, sell 1 at 5,020.00, buy 1 at 5,016.50. From these any tool can rebuild two trades: long 2 for +6.5 points and short 1 for +3.5 points. A performance summary of the same morning only shows 2 trades and +$825, which you cannot rebuild trades from.

  • Check the date range and account. Many "missing trades" turn out to be a filter set to the wrong day or account.
  • Keep the original file. Spreadsheet programs can change dates and numbers when you save. If you need to look inside, open a copy.
  • Check for fees. An order export may not show commission. If it does not, note your fees separately.

CSV stands for comma-separated values: a plain text file where each row is one order and each column is a field such as time, price or quantity. Almost every spreadsheet and journal can read it.

NinjaTrader 8

These steps apply to NinjaTrader 8 desktop and follow NinjaTrader's help guide for the Orders tab.

  1. Open the Orders tab. In the Control Center, select the Orders tab. If you cannot see tabs, right-click and turn on Show Tabs.
  2. Show filled orders. Right-click the grid and check Filter Orders. If Only Active Orders is on, turn it off so filled orders are listed.
  3. Check the columns. You need at least Instrument, Action, Filled, Avg. price and Time. State and Account display name help too. To change columns, right-click the grid and select Properties.
  4. Export. Right-click the grid, choose Export, and save the file as CSV. Excel format is also offered.

Things to know:

  • The Orders tab shows the current day's orders. Export at the end of each day you trade, or that day's list will be gone from this screen.
  • Use the Orders tab, not a performance report. A summary does not list the individual orders.
  • Commission is not among the Orders tab columns. Keep a note of your fees.

Tradovate

These steps follow Tradovate's help article on running a report.

  1. Open the reports. In the Tradovate platform, go to the account reports area.
  2. Choose the orders report. Pick the report that lists orders, not the performance report, which summarises results instead.
  3. Set the timeframe. Choose the period you want, and check the report shows the account and trades you expect.
  4. Download. Click Download Report. The results are exported as a CSV file.

Things to know:

  • Unlike NinjaTrader's Orders tab, you can set a timeframe, so one export can cover a longer period.
  • Check the columns you need are there, including fees, before relying on the file.

Rithmic (R | Trader Pro)

Rithmic provides market data and order routing to brokers and prop firms. R | Trader Pro is Rithmic's own desktop platform. If you trade through another platform connected to Rithmic, export from that platform instead.

Start from the Order History window in R | Trader Pro. Rithmic does not publish a step-by-step guide to exporting from it, and layouts can differ between versions and between the brokers and firms that provide it, so check these points in your own copy:

  • Filter to the right rows. Choose the account and the dates you want, and keep only filled or completed orders. Working or cancelled orders are not trades.
  • Make the key fields visible. You need at least side (buy or sell), symbol, quantity filled, average fill price and a time for each order. An export usually contains only what the grid shows, so add any hidden columns first.
  • Export from the prepared grid. Use the window's export option, then open a copy of the file to confirm every column you need is in it.

Checking the file

Before you use the file anywhere, open a copy and check:

Checks, applied to the example file

Example
  • The row count looks right for the period.

    Example file: 4 rows, one for each fill that morning
  • The first and last times match the range you chose.

    Example file: 09:31:05 to 10:12:03
  • Buy and sell quantities roughly balance if you ended flat.

    Example file: Bought 3, sold 3
  • Prices are numbers, not text, and dates are in the format you expect.

    Example file: Avg. price reads as 5,012.25, a number

Questions

In the Control Center, open the Orders tab, turn off Only Active Orders if it is on, right-click the grid and choose Export. The Orders tab shows the current day's orders, so export each trading day.

Run the orders report from the account reports area, set the timeframe, and click Download Report. The file is exported as CSV. Use the orders report rather than the performance report.

Start from the Order History window. Filter it to the account, dates and filled orders you want, make sure side, symbol, quantity, fill price and time are visible, then export and check the file.

Usually the date range, account filter or order-status filter left them out. In NinjaTrader, the Orders tab only lists the current day. If a column is missing, check it was visible in the grid before you exported.

It is safer not to. Spreadsheet programs can change date and number formats when they save. If something is missing, export again from the platform with the right settings.

Import the file, or skip the export