How to Export Trade History from MT4 and MT5

Step-by-step guide to exporting your MetaTrader 4 and 5 account history as a report, and the numbers worth checking once you have the file.

· 阅读约 7 分钟

本文仅提供英文版本。

If you trade on MetaTrader, your platform already keeps a full record of everything you have done. The hard part is getting that record out in a form you can study. This guide explains how to export your trade history from MetaTrader 4 (MT4) and MetaTrader 5 (MT5), what the different report types contain, and which numbers are worth checking once you have the file. It fits naturally with the habits in our guide on how to keep a trading journal, because an exported history gives you the objective half of a journal without retyping anything.

Why export your MetaTrader trade history?

A platform history is a list of what happened, not a review. Exporting it lets you look at results away from the chart, add notes, calculate averages and compare your real results with your plan. It also protects you from data loss: brokers do not always keep history visible forever, and a saved file is a record you control.

Two cautions apply from the start. First, the history shows only what happened on that account, so a demo and a live account must be exported separately. Second, menu names and layout differ a little between MetaTrader versions, desktop and mobile apps and broker builds, so treat the steps below as a guide and look for the closest matching option on your own screen.

How to export history from MetaTrader 4

In MT4 the trade record lives in the Terminal window, which you can open from the View menu or with Ctrl+T.

  1. Open the Account History tab at the bottom of the Terminal window.
  2. Right-click inside the list and choose the period you want. Common options are all history, the last three months, the last month or a custom period. If the list looks empty, the selected period is usually the reason.
  3. Right-click again and choose one of the save options. Save as Report creates an HTML summary, and Save as Detailed Report adds more statistics and usually a chart of the balance.
  4. Pick a folder and open the saved file in your browser to check that it contains your trades.

MT4 also lets you save the visible list to a file in some builds, but HTML reports are the most widely supported format. Many third party journals and spreadsheets read this format, so keep the original file untouched and work on a copy.

How to export history from MetaTrader 5

MT5 uses a similar layout with more detail.

  1. Open the History tab in the Toolbox window (View menu, or Ctrl+T).
  2. Right-click and select the period, such as all history, the last month, the last three months or a custom range.
  3. Choose between the views offered by the platform. Positions group everything that happened in one trade into a single line, deals list every individual execution, and orders list the instructions sent to the server.
  4. Right-click and use the Report option to save the history as an HTML file. Some versions also offer an Excel compatible format.

For journalling, one line per trade is easiest to work with, so the positions view is a sensible start. The deals view is better when you want to see partial closes, commissions and the exact time of each execution.

What is inside the exported file?

Whatever the platform, the columns are broadly the same. The table below explains the ones that matter most.

ColumnWhat it tells you
Open time and close timeHow long you held the trade and which session you traded in
TypeBuy or sell
SizeVolume in lots, which you can compare with your position size plan
SymbolThe instrument traded
Open and close priceYour actual fill prices, which include slippage
Stop loss and take profitThe levels that were set when the trade closed
Commission, swap and taxesThe costs that reduce the gross result
ProfitThe result in account currency

Remember that timestamps usually follow the broker server time, not your local time. If you want to study which session you trade best, convert the times to your own timezone first, using the session clock as a reference.

A worked example: reading ten trades

Imagine you export a month of history and select ten closed trades on a 5,000 account. Your plan was to risk 1%, or 50, per trade. After summing the profit column and the costs you find these numbers.

Net result = sum of profit + commission + swap

The gross result is 4 × 90 − 6 × 48 = 72. After costs of 22, the net result is 50. The win rate is 40%, yet the account is slightly positive because the average win is larger than the average loss. Ten trades is a very small sample, so this proves nothing about the method, but it shows why you should look at both the win rate and the size of wins and losses together, as explained in risk to reward ratio explained. It also shows how much of a small edge the costs can absorb.

What should you look for in your history?

Once you have the file, avoid staring at the total profit only. A few focused checks give a more honest picture.

You can paste or import the key columns into the trading journal tool and add the notes that a platform cannot record, such as your reason for the trade and how you felt.

Common mistakes when exporting and reading history

Summary

Export your MetaTrader history from the Account History tab in MT4 or the History tab in MT5, choose the period first, and save it as an HTML report. Keep the original file, convert the timestamps, include costs and look at average win, average loss, drawdown and streaks rather than only the final profit. Then add your own notes so the numbers have context.

This article is for education only and is not trading advice.

试用免费工具 交易日志

常见问题

How do I export my trade history from MT4?

Open the Account History tab in the Terminal window, right-click and choose the period, then right-click again and select Save as Report or Save as Detailed Report. The file is saved as HTML.

How do I download my account history in MT5?

Open the History tab in the Toolbox, choose the period, then right-click and use the Report option to save the history as an HTML file. Menu names can vary slightly by version and broker.

Why is my MetaTrader history empty?

The most common reason is that the selected period is too narrow, so check the period filter and choose all history or a custom range. It also appears empty if you are looking at a different account from the one you traded.

Are MetaTrader trade times in my local time?

Usually not. Times normally follow the broker server time, which can differ from your local time by several hours, so convert them before studying sessions.

仅用于教育,不构成投资建议。交易存在较高的亏损风险。 免责声明

相关视频

更多文章

查看全部