本文仅提供英文版本。
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.
- Open the Account History tab at the bottom of the Terminal window.
- 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.
- 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.
- 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.
- Open the History tab in the Toolbox window (View menu, or Ctrl+T).
- Right-click and select the period, such as all history, the last month, the last three months or a custom range.
- 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.
- 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.
| Column | What it tells you |
|---|---|
| Open time and close time | How long you held the trade and which session you traded in |
| Type | Buy or sell |
| Size | Volume in lots, which you can compare with your position size plan |
| Symbol | The instrument traded |
| Open and close price | Your actual fill prices, which include slippage |
| Stop loss and take profit | The levels that were set when the trade closed |
| Commission, swap and taxes | The costs that reduce the gross result |
| Profit | The 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
- Four trades won, with an average gross profit of 90
- Six trades lost, with an average loss of 48
- Total commission and swap paid: 22
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.
- Average loss compared with planned risk. If you planned to lose about 50 but the average loss is 70, something is wrong with stop placement, sizing or discipline.
- Largest single loss and longest losing streak. These tell you whether your risk per trade is comfortable. The maths behind streaks is covered in risk of ruin explained.
- Costs as a share of gross profit. Frequent trading on small targets can let spread, commission and swap consume a large part of the result.
- Results by time and instrument. Group trades by session, weekday and symbol to see where results cluster, remembering that small groups are mostly noise.
- Trades held far longer or shorter than planned. These often mark moments when the plan was abandoned.
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
- Exporting the wrong period. An empty or short report usually means the period filter was left on a narrow range.
- Mixing accounts. Combining demo and live history, or accounts with different currencies, produces meaningless totals.
- Ignoring non-trade lines. Deposits, withdrawals and balance adjustments can appear in the history and should not be counted as trades.
- Editing the original file. Keep an untouched copy and analyse a duplicate.
- Forgetting timezones. Server time can differ from your local time by several hours.
- Judging a method from a tiny sample. A few trades say very little, whatever the profit figure shows.
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.
仅用于教育,不构成投资建议。交易存在较高的亏损风险。 免责声明

