December 2, 2026·6 min read

How to Export Your MT5 and MT4 Trade History (Excel or HTML) and Import It into a Journal

GuideImportMetaTraderBrokers

MetaTrader keeps your whole trading history inside the terminal, and both versions can save it to a file with no script or add-on: MetaTrader 5 exports it as an Excel file and MetaTrader 4 as an HTML statement. SniperJournal reads either one and turns it into a journal in about two minutes. It’s a free trading journal, with no API key and no subscription.

This guide covers which file to save in each version, where the menus are, how to import the file and what to check before anything is saved. If you’d rather not export at all, the last section shows the free MetaTrader agent, which syncs your trades on its own.

Which file to export

SniperJournal recognizes both reports by itself. You pick the file; the format is detected for you.

  • MetaTrader 5: the Open XML report — the Excel version of the History tab, saved as ReportHistory plus your account number (.xlsx). One row per closed position, with the commission, swap and profit MetaTrader recorded.
  • MetaTrader 4: the Detailed Report — the HTML statement of the Account History tab (DetailedStatement.htm). The plain report (Statement.htm) works too: SniperJournal reads the closed trades from either.

MetaTrader 5 also offers an HTML report in the same menu. Use the Open XML file instead: it’s the one SniperJournal imports from MetaTrader 5. And skip Report → Overview: it opens a statistics page with your balance, ratios and charts, not your list of trades.

Step 1 · Export your history from MetaTrader 5

  1. Open the Toolbox with View → Toolbox (Ctrl+T) and click the History tab.
  2. Right-click the list and check that Positions is ticked, so each row is a closed position.
  3. Right-click again and choose All History. To export only some dates, choose Custom Period instead.
Right-click the History tab: Positions ticked, then All History.
  1. Right-click the list once more and choose Report → Open XML (MS Office Excel 2007).
Report → Open XML saves the Excel file. Overview is a statistics page, not your trades.
  1. Save the file in a folder you’ll find, such as Documents. MetaTrader names it ReportHistory plus your account number.
The file type is Open XML (.xlsx), and the name carries your account number.

After saving, MetaTrader tries to open the file. Without Excel, Windows asks which app to use: close that window. The file is already saved, and you don’t need to open it.

Using MetaTrader 4? Save the Detailed Report

  1. Open the Terminal window with View → Terminal (Ctrl+T) and click the Account History tab.
  2. Right-click the list and choose All History. The tab only lists the period you load, and the report saves exactly what it shows.
  3. Right-click again, choose Save as Detailed Report and save the HTML file. Save as Report gives a shorter statement that works too.

Step 2 · Import the file into SniperJournal

In SniperJournal, select the account (portfolio) the trades belong to, click the + button in the top bar and choose Import CSV File. Despite its name, it takes the Excel and HTML files from MetaTrader too.

Pick the account in the sidebar first, then + → Import CSV File.

Leave File’s timezone on Automatic and drop the file in, or click Select CSV File and pick it.

The same window takes the .xlsx from MetaTrader 5 and the .htm from MetaTrader 4.

Step 3 · Check the times and import

SniperJournal names the format it found and shows how many trades it will import, with the first ones and their times. For a MetaTrader 5 report it says MetaTrader Positions CSV, the name of its position list, even though the file is Excel. Nothing is saved yet.

7 closed positions from a MetaTrader 5 demo account, read in the broker’s server time and shown in London time.

MetaTrader writes every time in the clock of your broker’s server, not yours, and the file doesn’t say which clock that is. Most brokers run their servers on GMT+2 (GMT+3 in summer), so SniperJournal assumes that clock and tells you at the top. The preview shows the times converted to your own timezone: if they look a few hours off compared with when you actually traded, pick your broker’s server timezone in that box, and the preview updates before anything is saved.

Then click Import. The button shows how many trades go in.

7 trades imported. This demo account charges no commission, so the file brought no fees.

What you get

  • One trade per closed position: symbol, direction, lots, entry and exit prices with their times, and the profit MetaTrader recorded.
  • Commission and swap as fees. Both come from the file, so your net result matches MetaTrader’s. A swap you were paid lowers your costs instead of adding to them.
  • Only closed trades. Deposits, withdrawals and positions that are still open stay out.
  • Safe re-imports. Trades you already have are skipped, so you can export All History every week and import the whole file again.
  • The account currency, on MetaTrader 5. The report states it: an empty portfolio takes it on the first import, and a portfolio with trades in another currency stops the import instead of mixing them.

Common problems

  • Only part of your history came through. MetaTrader only exports the period loaded in the tab. Choose All History, or a custom period that covers everything, right before you save the report.
  • A prop firm account is missing. Each evaluation or funded account has its own login, and the history tab only shows the account you’re logged into. Log in to each one, export its history and import it into its own portfolio. If a challenge ends or the account is reset, export it while you can still log in.
  • The times are a few hours off. MetaTrader uses the broker’s server clock. Pick your broker’s server timezone in the preview before importing. If you already imported, delete those trades first: with new times they count as different trades.
  • The file was opened in Excel and saved again. Saving the report as CSV can change numbers and dates. Upload the original file MetaTrader saved.
  • MetaTrader 5 saved an HTML file. Export it again with Report → Open XML: that’s the format SniperJournal imports from MetaTrader 5.
  • The file has statistics, not trades. That’s Report → Overview. Go back to the History tab and use Open XML.

Prefer automatic sync? The free MetaTrader agent

Exporting takes a minute, but you can skip it altogether. SniperJournal’s MetaTrader agent is free and sends your closed trades to your journal on its own: on MetaTrader 5 it runs inside the terminal and syncs every trade as you close it; on MetaTrader 4 a script sends your history each time you run it. Right after an import, the same window offers it.

After importing a MetaTrader 5 report, Connect MetaTrader 5 sets up the agent.

The setup has its own step-by-step guides: How to Connect MetaTrader 5 and Sync Your Trades Automatically, How to Connect MetaTrader 4 and Import Your Trades and, if the agent doesn’t connect, MetaTrader 5 Not Connecting? How to Fix It Step by Step. Everything SniperJournal does with MetaTrader is on its MetaTrader integration page.

Save the report, drop it in, check the times. Once a week is enough to keep your journal complete without typing a single trade.

Follow SniperJournal on YouTube and X for new video walkthroughs and product updates.

FAQ

How do I export my trade history from MT5?

In the Toolbox (Ctrl+T), open the History tab, right-click and choose All History, then right-click again and choose Report → Open XML (MS Office Excel 2007). MetaTrader saves an Excel file named ReportHistory plus your account number, ready to import.

Can I export MT5 history to CSV?

Not from the History tab: its Report menu saves Open XML (Excel) and HTML. You don’t need a CSV either. Upload the .xlsx as it is; saving it again as CSV in Excel can change numbers and dates.

How do I export my trade history in MetaTrader 4?

Open the Terminal (Ctrl+T), go to Account History, right-click and choose All History, then right-click again and choose Save as Detailed Report. MetaTrader saves an HTML statement that SniperJournal imports as it is.

Why is my exported history incomplete?

MetaTrader only exports the period loaded in the tab. Choose All History right before saving the report. For prop firm accounts, export each account from its own login.

Can SniperJournal sync MetaTrader automatically?

Yes. The free MetaTrader agent sends every trade you close on MetaTrader 5 as it happens; on MetaTrader 4 a script sends your history each time you run it. Exporting a file is the option for when you’d rather not install anything.

SniperJournal

Free trading journal — dashboards, imports, and AI-assisted insights.

Ready to try it?

Free to use. No credit card required.