Import TradingView Order History and Close Trades
TradingView exports broker orders rather than ready-made journal trades. TDLab uses Filled orders to rebuild closed round trips, with entries, exits, Stop Loss, Take Profit and commissions. The close-trades file, exported with Account summary, adds what Order history lacks: the profit calculated by the broker in account currency and the overnight financing of every closed trade. Positions still open are not imported. OANDA has a verified profile; any other broker connected to TradingView is supported only if its panel exports the Close Trades table, because quantity conventions differ between brokers and only the broker’s own profit is reliable.
Required file: TradingView Order history CSV + close-trades CSV (required for brokers other than OANDA)
Choose the matching source in Add trades → File / Report. Upload the original export without renaming columns or changing values.Export the correct file
- Open the connected broker
In the chart’s trading panel, confirm that you are viewing the broker and account you want to import.
- Click the download arrow
Click the download icon at the top right of the broker panel. This opens Download data. You will use it twice, once for each file.
- Download Order history
In Download data, select Order history and download the CSV. It contains the executions: entries, exits, Stop Loss, Take Profit and commissions. Keep the original columns and values.

1 · Download arrow / 2 · Order history. Open the image to enlarge it. - Download Account summary
Open Download data again and select Account summary. TradingView downloads two files: keep the one whose name ends in close-trades. It lists Symbol, Side, Quantity, Price, Profit, Deal ID, Time (GMT), Reason and Financing for every closed trade. The account-summary file only contains balance and equity and is not needed. Close-trades is recommended for OANDA and requiredfor every other broker: if your broker panel does not show a Close Trades table, that broker is not supported through TradingView; use the broker's own platform export or Custom CSV instead.

1 · Download arrow / 2 · Account summary / 3 · Financing in Close Trades. Open the image to enlarge it. - Select the timezone and upload both files
Upload Order history in the first field and close-trades in the second; TDLab recognises them even if swapped. Order history uses the clock of the computer you downloaded it from, not the chart timezone, so select that timezone and check the preview. Close-trades is in GMT: if the selected timezone is wrong, TDLab corrects the trade times and reports the offset.
Before you import
With both files, every trade gets the broker's P&L in account currency, overnight financing in its costs and the exit reason (Stop Loss, Take Profit or Market Close). Commissions come from Order history: the broker Profit is gross, so commissions are subtracted only once. With Order history alone, P&L is rebuilt from executions and financing is excluded. Only closed trades are imported.Format and data limitations
The two exports share no identifier (Deal ID differs from Order ID), so TDLab matches them by symbol, position direction, quantity, closing price and closing time. On OANDA, a trade without a complete match keeps the P&L rebuilt from executions, without financing; with any other broker it is not imported, because its P&L cannot be rebuilt reliably. Both cases are reported in Import History, as are close-trades rows without a matching trade (for example trades closed before the exported period). TradingView keeps a limited order history, so an export can begin with the close of a position opened earlier: TDLab detects it (with certainty when close-trades is uploaded, otherwise from the Stop Loss or Take Profit attached to the next entry), leaves that trade out and rebuilds the following trades of the symbol correctly. Export a wider period to include it. Close-trades alone cannot be imported: Order history is required for entries, Stop Loss and commissions. On OANDA without close-trades, Forex P&L in another currency is converted using daily ECB reference rates through Frankfurter; the result is an estimate and can differ materially from the broker. TDLab uses the latest rate available on or before the UTC closing date, up to seven days earlier; without a valid rate, the trade is skipped and reported. If you previously imported Order history alone, import it again together with close-trades: existing trades are updated with the broker data instead of being duplicated. With brokers other than OANDA, Order history commissions are taken in account currency: check one trade against your broker statement. Strategy Tester exports are not supported.
Import it into TDLab
- Open the trading account that should receive the trades.
- Open Add trades and select File / Report.
- Select this exact platform/source and the timezone used by the file timestamps.
- Upload the file and compare the time preview with a known execution.
- Confirm the import, then check imported and skipped rows in Import History.
Return to the file import overview to compare all supported sources.
Put the evidence to work.
Connect your real trades with behavior, rules and historical market context. Start free for 14 days.