How to import and analyse your MetaTrader history (complete guide)
Updated
Before you can analyse your performance, you first need to get the data out of MetaTrader itself. Here's the full process, from the terminal to the analysis.
Export your statement from MT4
- Open the Terminal (Ctrl+T), then the Account History tab.
- Right-click in the list → All History (or the period you want).
- Right-click again → Save as Detailed Report.
MT4 creates a Statement.htm file. It's the most complete format: it keeps the details of every transaction (open, close, commission, swap).
Export your statement from MT5
- Open the Toolbox (Ctrl+T), then the History tab.
- Right-click → choose the period (for example All History) and the Positions view.
- Right-click → Report → HTML.
MT5 creates a ReportHistory-….html file. Watch the format you pick: "Open XML" produces an Excel file that most analysis tools, Tradeora included, can't read. You want the HTML report.
Either way, it's better to export your full history than a partial period: stitching partial exports together multiplies the risk of duplicates or gaps in the data.
What gets imported, and what doesn't
A MetaTrader statement holds more than trades. To keep the statistics accurate, an import has to sort them:
- Deposits and withdrawals aren't trades: counting them would distort your result and your drawdown.
- Cancelled orders or orders that never triggered have no effect on performance.
- On MT5, only closed positions have a final result. A position that's still open will be counted once it's closed.
Avoid duplicates when you re-import
A common trap: re-exporting and re-importing a history that partly overlaps an earlier import. Without automatic deduplication (based on the MetaTrader transaction ID, not just the date), your overall statistics end up skewed: inflated total volume, a win rate that no longer means anything. A reliable import tool must recognise that a trade already imported isn't counted twice, even if the re-imported file contains it again.
It's one of the sneakiest common trading mistakes, because you can't see it: the numbers look plausible, they're just wrong.
Stop exporting altogether: syncing
Manual exports have an obvious limit: you have to remember to do them. A journal updated once a month loses most of its value. Two ways to skip exporting:
- A read-only connection with the account's investor password. That password can read the history but can't place orders: Tradeora fetches your trades, it can't open any.
- The EA connector (on MT5): a small Expert Advisor installed in your terminal sends your trades as they happen.
Importing a statement is still useful to bring in older history, or a closed account.
What the analysis should bring out
Once your history is imported, the useful statistics aren't just "total profit" and "number of trades". What really changes a strategy:
- Performance by currency pair: some pairs are structurally more profitable for a given trading style.
- Performance by session (London / New York / Asia): the same trader can have a very different win rate depending on the hour.
- Drawdown over time: not just the maximum drawdown, but how often it happens and how fast you recover.
- Trades without a stop-loss or with a poor risk/reward ratio: often invisible trade by trade, obvious once you look at them together. The link between win rate and risk/reward ratio explains why one never goes without the other.
- Consistency of risk per trade: if your largest loss varies from one to three times the size, it's your position size that needs work before your strategy does.
Several accounts, one view
Many traders use several accounts (demo and live, or several brokers) and lose the big picture by keeping separate statements. Importing each account's history into the same tool lets you compare performance across accounts, without copying every statement by hand into a shared spreadsheet.
In short
The process comes down to three steps: export the full statement from MT4/MT5 as HTML (or sync the account so you never have to), import it into a tool that removes duplicates automatically, then read the overall statistics rather than trades one by one. That last step, the reading, is what actually makes you improve, not the export itself. To turn it into a habit, the guide to keeping an effective trading journal suggests a 15-minute weekly routine.