Home › Guides › How to export your MT4 and MT5 trade history

How to export your MT4 and MT5 trade history

By the CandleGPT team · Updated November 10, 2026 · 2 min read

Your trade history is the most honest coach you have: it shows what you really do, not what you think you do. Here is how to export it from MetaTrader 4 and MetaTrader 5, in a few clicks, and what to check before you use it.

MetaTrader 5 (desktop)

  1. Open the Toolbox window (Ctrl+T, or View → Toolbox).
  2. Click the History tab.
  3. Right-click in the list and choose the period: All History if you want everything.
  4. Right-click again → Report → HTML (or Open XML for Excel).
  5. Save the file. It contains every closed position with open and close times, symbol, size, prices, commission, swap and profit.

In the History tab, you can show Positions, Orders or Deals (right-click). For an analysis of your trades, Positions is the clearest view: one line per trade.

MetaTrader 4 (desktop)

  1. Open the Terminal window (Ctrl+T).
  2. Click the Account History tab.
  3. Right-click → All History. By default MT4 often shows only the last month: without this step, your report is incomplete.
  4. Right-click again → Save as Detailed Report.
  5. Save the .htm file. Open it in a browser to check it.

On mobile

The MetaTrader apps for iPhone and Android show your history but do not export a full report. Two options:

What to check before you analyse it

What to look for in your history

Once exported, the useful questions are simple:

The guide on habits that cost traders money goes through these one by one.

CandleGPT does this for you, in MetaTrader

With CandleGPT, you export once or drop the CandleGPT Sync robot on a chart: your closed trades then arrive on their own, and the report shows the habits that cost you money, in dollars.

See plans

Trading involves a high risk of losing money. This guide is educational: it is not investment advice and does not tell you what to buy or sell. Past results do not predict future results.