Complete Suite: all 12 tools. 6 Premium desks inside.All 12 tools $606.98 one by one

$606.98 one by one $299 once Save $307.98Get the SuiteGet it
ProEA Lab · MT5, TradingView and trading research · Evidence standards
Journal

How to Export MT5 Trade History: HTML, Excel and PDF

Export MT5 trade history from Toolbox → History. Choose dates, save an HTML statement, and handle Excel, PDF, CSV, Mac, web terminal and MT4.

· 4 min readUpdated
An antique filing drawer of paper trading receipts under a desk lamp, one receipt lifted catching the light — poster titled Export the Record.

To export MT5 trade history on desktop, open Toolbox → History, right-click the trade list, choose a date range, then select Report and save an HTML statement. For spreadsheet analysis, use the Open XML/Excel option where offered. The newer visual report has a separate HTML/PDF export, explained below.

Your trade history is the most honest dataset you own. Export the history available on your account, then check the date range and trade count before importing it into a journal. These instructions use the desktop terminal; the web terminal and Mac get their own sections below. Can't find the History tab, or it looks empty? See where MT5 trade history is on desktop, web and phone.

Already have a statement? Open the free MT5 report analyzer to check supported HTML/CSV postings, separate cash movements and inspect realized balance drawdown in your browser. Start with the matching synthetic HTML and CSV check to reconcile entry commissions, fees and cash movements before using your own report. Check parsing diagnostics and enter the balance immediately before your imported window. Report contents stay on your device.

Hand-drawn sketch of the MT5 terminal layout: menu bar and toolbars up top, Market Watch and Navigator panels on the left, a candlestick chart in the center, and the Toolbox panel along the bottom edge with its History tab circled in orange.
The terrain. The Toolbox runs along the bottom of the terminal — History is one of its tabs.

How do I export trade history from MT5?

The two-minute version:

  1. Open the Toolbox panel — press Ctrl+T if it isn't visible (View → Toolbox).
  2. Click the History tab along the Toolbox's bottom edge.
  3. Right-click anywhere in the trade list and pick the period first — Last month, Last 3 months, or Custom period for exact dates.
  4. Right-click again and choose Report → HTML to save the account statement. If your build offers Open XML (.xlsx), choose that for Excel instead.

MetaQuotes documents the History → Report statement export. Its release history records the Open XML spreadsheet format; use the options actually shown in your terminal.

Hand-drawn sketch of the History tab's trade table with a mouse cursor right-clicking to open the context menu; the Report entry is highlighted in orange, its format submenu flared open beside it.
Steps 3–4. Right-click the trade list: period first, then Report — the formats live in its submenu.

For journal import, use the statement format your importer supports and check that its trade rows are present. MT5 statements contain order/deal details and financial results for the selected period; a visual summary is a different export. The XLSX version is useful for spreadsheet analysis.

Check the saved report before importing it

Open the exported file and check these three things against the terminal:

  1. Account and currency: the report header should identify the account you intended to export and its deposit currency.
  2. Dates: check the first and last relevant deal timestamps against the period you selected. A report cannot recover records that are unavailable on the account.
  3. What a row means: an order is a request, a deal is an execution, and a position can combine several related deals. Do not expect those row counts to match.

For example, one position opened with one deal and closed with two partial exits has three deals but one position. That difference alone does not mean trades are missing. MetaQuotes documents the separate orders, deals and position views and the blocks in an account statement.

MT5 can show in/out for a reversal deal. Keep its recorded profit and costs once; duplicating it into separate entry and exit rows would count the same posting twice. The local analyzer preserves one posting and uses inout in its normalized CSV. MetaQuotes: deal entry types.

There is also a date-range trap in the positions view: MetaQuotes says a position opened before the selected period and closed after its end is not included in that view. Check the underlying deals and widen the period when you need the full position history. This is why checking a saved file's actual rows is more reliable than comparing two unlabeled “trade counts.”

After checking the account, dates and row types, use the local analyzer's HTML/CSV reconciliation example to see how entry commissions, fees and cash movements affect the imported totals. Keep the original export so you can compare any conversion with it.

How do I save an MT5 report as PDF?

Open Report → Overview from the history context menu, or View → Reports. This opens MT5's newer visual report, whose save controls offer HTML or PDF. It is separate from the classic trade-history statement and is useful for reviewing or sharing a summary. A journal that expects the classic HTML statement may not accept this PDF or the newer HTML layout. MetaQuotes: visual trading report.

One habit worth forming: archive a statement covering your available history. If older trades are missing even after selecting All history or a custom period, ask your broker for the missing statement; an export can only contain the records available to the terminal.

Editorial panel on ivory paper reading: Your broker's record doesn't negotiate — with an orange marker underline.
The dataset already exists. This guide just gets it out.

Can I export history from the MT5 web terminal?

If your web terminal shows no export option, log in to the desktop terminal with the same account and export from there. MetaQuotes documents the statement export for the desktop terminal (History → Report), and its build 4150 release notes added HTML and PDF saving to the desktop report. We found no MetaQuotes documentation of a statement export inside the web terminal. If your broker's web version offers one, use it.

Your trade history is kept on your broker's server rather than in a browser tab, so a desktop terminal logged in to the same account shows the records available on that account. No computer with MT5 on it? Ask your broker for a statement, or use the read-only investor login described below.

How do I export MT5 history on a Mac?

The steps are the same as on Windows, because MetaQuotes' macOS installer runs the standard MT5 terminal inside Wine. The official macOS installation guide describes the installer setting up Wine and then installing MetaTrader inside it, with macOS Catalina (10.15.7) as the minimum and support for Apple processors from M1 on. Toolbox → History → right-click → Report works as in the steps above. If MT5 isn't on your Mac yet, MT5 for Mac covers the install, logging in and the data folder.

Two Mac-specific notes. The Save dialog is a Windows-style dialog, because the terminal runs inside Wine, so note which folder you picked. And once you have the file, the MT5 report analyzer runs in your browser, so it works on a Mac with nothing extra to install.

How do I export from MT4?

Same idea, older furniture:

  1. Ctrl+T opens the Terminal panel.
  2. Open the Account History tab.
  3. Right-click → set the period (All History or Custom Period).
  4. Right-click → Save as Detailed Report to save HTML with additional summary statistics. Save as Report also includes trade details; choose the version requested by your importer. MetaQuotes: MT4 account history and reports.

For what else changed between the two terminals, see MT4 vs MT5.

What about CSV?

For the report routes above, use HTML or the offered spreadsheet format first. If a tool requires CSV, open the XLSX or import the HTML table in a spreadsheet and save the trade table as CSV. Check the importer's required columns, date format, time zone and decimal separators; renaming an .html file to .csv does not convert it. Price bars and ticks, rather than trades, come from a different window: export MT5 chart data.

The no-export route: a read-only investor login

MT5 supports an investor password for read-only account access without trading. Some MT4/MT5 sync services use investor access to read account history without a manual export. Check which connection method your journal supports, and never supply the master password for this read-only route.

Two honest cautions. Set the investor password yourself (your broker's client portal or MT5's Options dialog) rather than reusing anything, and treat it like the read-only key it is — revocable any time by changing it. And know what sync covers at the tool you're using: TradeLens Cloud, for example, syncs closed trades only via this route, while the $47 download skips sync entirely and imports the reports from this guide.

What to do with the file

An export nobody reads is a receipt in a drawer. The point of the history is the questions it can answer: which setup actually pays you, which session bleeds, what your real R multiples look like after costs. That's a journal's job — import the report, and let the columns argue with your memory. No journal yet? The free trading journal template for Excel and Google Sheets works out R multiples, expectancy and profit factor from the trades you log. Every time in the file is on your broker's server clock: convert MT5 server time before you read any session statistic.

The deep version, as a PDF

The MetaTrader 5 Guide for EA Traders

Install an EA, fix the one that won't trade, get server time right, backtest on real ticks, keep it running on a VPS or a Mac, and export your trade history.

  • Ordered by the problem in front of you: the Journal line, what it means, and the menu path that fixes it
  • The six checks between an EA's signal and a fill, and the return code each one sends back
  • 24 MT5 error codes in MQL5's own words, each with its fix, and two of the fixes in MQL5 that compiled in MetaEditor
See what's inside →

One payment, instant download. Refund within 7 days if you haven't downloaded it.

Your broker's record doesn't negotiate. Export it before your memory edits the story.

Continue reading

XAUUSD Trading Journal: a Gold Template That Counts Dollars, Not Pips.

A free XAUUSD trading journal for Excel and Google Sheets: the free template's eighteen columns with Risk and Result worked out from your prices, lots and the ounces per lot, plus Swap and the stop's distance in dollars an ounce. Three worked gold trades: an overnight win that paid swap, a stop-out with slippage and an oversized trade.

Oct 29 · ProEA Lab

Explainer cover titled A gold journal that counts dollars, not pips: the workbook's three example XAUUSD rows at 100 ounces per lot. A long on 0.10 lots with a $5 stop risks $50 and wins +$118.10 after $1.20 of swap, +2.362R; a short on 0.20 lots with a $2.50 stop risks $50 and loses −$63.40 after $0.60 of slippage, −1.268R; a long on 0.50 lots with a $2 stop risks $100 on a $50 plan, the row marked Oversized, and loses −$43.50, −0.435R.

MT5 Trade History: Where to Find It on Desktop, Web and Phone

On the desktop terminal, MT5 trade history is the History tab of the Toolbox (Ctrl+T); right-click it to choose All History or a custom period. The web terminal and the phone apps have their own History views, and only some of them save a file. Where each one is, and why the list can look empty.

Oct 17 · ProEA Lab

Explainer cover titled Where is my MT5 trade history? A sketch of the MT5 desktop terminal: the chart above, the Toolbox open along the bottom with blank history rows, and its History tab on the bottom edge ringed in orange. Steps underneath: Ctrl+T opens the Toolbox, the History tab, right-click to pick the period.

How to Export Chart Data from MT5 to CSV (Bars and Ticks)

MT5 can save a symbol's price history as CSV in two ways: the chart's bars with File → Save, or any timeframe's bars and the raw ticks from the Symbols window. Where each one lives, what caps it, and how to read the tick flags.

Oct 8 · ProEA Lab

Explainer cover titled Export MT5 chart data: one hour, any timeframe. Sixty simulated 1-minute gold bars rebuilt into four 15-minute bars inside dashed boxes, above an export preview listing the four CSV rows with date, time, open, high, low and close.