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
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.
Show the bottom panel
Choose View, then Toolbox. If Toolbox is hidden, Ctrl+T toggles it.
Open History
Click History in the Toolbox panel.
Show all your history
Right-click inside the history table. Choose All History. Let the records finish loading.
Switch to Positions
Right-click inside the history table again. Select Positions.
Open the HTML report
Right-click inside the history table again. Open Report, then choose its HTML option. The wording can vary by build.
Keep the HTML file
If a Save window opens, choose Downloads and save the report. Keep its .htm or .html extension.

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
Interactive guide