Compound FXInteractive guide

MetaTrader 5 guide · Windows

How to export MT5 trade history to HTML

In MetaTrader 5 on Windows, open Toolbox → History. Right-click the history table, choose All History, switch to Positions, then open Report → HTML. Save the original report as a .htm or .html file.

Export your MT5 history on Windows

  1. Open the right trading account

    Open the installed MetaTrader app on your Windows computer. Check that you are signed in to the broker account whose history you want.

  2. Show the bottom panel

    Choose View, then Toolbox. If Toolbox is hidden, Ctrl+T toggles it.

  3. Open History

    Click History in the Toolbox panel.

  4. Show all your history

    Right-click inside the history table. Choose All History. Let the records finish loading.

  5. Switch to Positions

    Right-click inside the history table again. Select Positions.

  6. Open the HTML report

    Right-click inside the history table again. Open Report, then choose its HTML option. The wording can vary by build.

  7. Keep the HTML file

    If a Save window opens, choose Downloads and save the report. Keep its .htm or .html extension.

MetaTrader 5 Windows History menu with Positions, All History and Report visible
Windows example from MetaTrader 5 Help. Select Positions before exporting. Tap the image to see the menu at full size.

Check you have the right file

Only recent trades show up
Choose All History before exporting and check the date of the oldest closed trade in the report.
The report opened in a browser
If your browser offers an HTML-only save option, use it to save the report in Downloads. Keep the .htm or .html extension.
You see Overview, a PDF or a Strategy Tester report
Go back to the account’s History tab and choose the HTML option from its Report menu. Compound FX accepts the original English-language closed-Positions HTML report.
You only have your phone
Use MT5 on Windows to export the full HTML history, or follow the MT5 screenshot guide to start with recent closed trades.

Review those trades in Compound FX

In Compound FX, open Trades → Import trades, choose your trading account and upload that same .htm or .html file. Check the closed-trade count and net result, then confirm Import. No conversion or column mapping is needed.

Explore the MT5 trading journal