How to export trade history from MetaTrader 5

Short answer: open the Toolbox (Ctrl+T) and go to the History tab. Right-click, switch the view to Positions and pick the period. Then right-click again and choose Report. Save it as an Excel file if you want to work with the numbers. HTML is fine if you only want to read it.

I put off exporting my history for months. It felt like admin. Then I tried to answer a simple question about my own trading: do I lose more on Mondays? The terminal couldn't tell me. The report could, once it was out of MT5 and somewhere I could sort it.

Where your history lives in MT5

Everything sits in the Toolbox at the bottom of the terminal. If you can't see it, press Ctrl+T or open it from the View menu. The History tab holds what has already happened on this account. Open trades are in the Trade tab, not here.

History can show the same account three ways:

Step by step: save the report

  1. Open the History tab in the Toolbox.
  2. Right-click anywhere in the list and choose Positions.
  3. Right-click again and pick the period: All History, Last 3 Months, Last Month or Custom Period, where you set the dates yourself.
  4. Right-click once more and choose Report, then Open XML (MS Office Excel 2007). The other choice is HTML (Internet Explorer).
  5. Pick a folder and a file name. Put the account and the dates in the name. You'll thank yourself in three months.

The same Report menu has Overview (Alt+E), a fuller report that's also under View > Reports. It shows summaries, results by month and long versus short. You can save that one as HTML or PDF. It's good for a look back. For a journal you want the history report from step 4, because it lists every trade as a row.

Example: one week on one account

Which format to pick

Excel is the one to keep. Each trade is a row with its open and close time, symbol, type, volume, prices, commission, swap and profit. You can sort it, filter it and import it into a journal.

HTML opens in a browser and reads nicely. It's harder to do anything with. If you saved HTML by mistake, just run the report again and choose Excel.

What the report doesn't tell you

The report is a record of what the market did with your orders. That's all. It doesn't know:

That's the part a journal adds. Without it you can measure results. You can't learn much from them. A trade that lost 1R because the setup failed and a trade that lost 1R because you chased it look the same in a spreadsheet.

How often to export

Once a week works for most people. Pick a fixed time, say Friday after the close. Export the week, add your notes while you still remember the trades and move on. If you leave it a month, half the notes turn into guesses.

Exporting the same days twice isn't a problem if your journal skips trades it already has. Plain spreadsheets don't do that. You end up hunting for duplicates by hand.

Common questions

How far back does MT5 history go?

As far as your account has history. Choose the custom period and set the start date to when you opened the account. If the list looks short, check the period first. That's usually the reason.

Why does my report show more rows than trades?

You're probably in the Deals view. Partial closes and scaling in turn one trade into several deals. Switch to Positions and run the report again.

Can I export from MT5 on my phone?

The app shows your history in the same three views. For a report file, use the desktop terminal.

Does the report include deposits and withdrawals?

Yes, balance operations appear in the history too. Keep that in mind if you add up the profit column by hand.

Excel or HTML for a trading journal?

Excel. Every trade is a row you can import or sort. HTML is for reading.

Tomky, Dojiwave · Updated