Guides / How to import your MetaTrader 5 history into EdgeForge
How to import your MetaTrader 5 history into EdgeForge (and MetaTrader 4)
MetaTrader 5 can produce a clean report of your closed trades, and EdgeForge reads it directly. You do not need to convert anything: the report goes in as it is, and EdgeForge works out net P&L, sessions and durations for you.
What you need: the MetaTrader 5 desktop program (Windows or Mac). The phone app can only make a PDF report, which EdgeForge cannot read. MetaTrader 5 has no built-in CSV export; its two choices are HTML and Excel (XML), and EdgeForge reads both.
Step 1. Export the report from MetaTrader 5
- In MetaTrader 5, open the Toolbox with View, then Toolbox (or press Ctrl+T) and click the History tab.
- Right-click in the History list and choose Positions, so that your closed trades are listed one per row. (The wording of this menu varies slightly between versions and brokers.)
- Right-click again and choose the period: All history, Last 3 months, Last month or Custom period. Check that the list on screen shows the trades you want.
- Right-click once more, choose Report, then HTML or Open XML (MS Office Excel 2007).
- Choose a folder and a file name, and save.
The report mirrors what the History tab is showing, so make sure the period and the Positions view are set before you create it.
Step 2. Import it into EdgeForge
- Open the Trade Log and press Import CSV/XLSX.
- Choose MetaTrader 4 / MT5.
- Pick the file you saved.
- Look at the preview, then press Import.

What EdgeForge reads from the report
- The Positions table. For each closed position: open time, close time, symbol, buy or sell, volume, open and close price, stop loss, take profit, commission, swap and profit.
- Net P&L. EdgeForge records profit plus commission plus swap, so your totals match what actually reached your account. The costs are also stored as fees on each trade.
- What it ignores. The Orders and Deals tables, deposits and withdrawals, and any position that is still open. Only closed trades are imported.
- Dates. A trade takes its closing date. A trade that closes after midnight keeps its closing date and its original opening time.
Check the times
MetaTrader report times come from your broker's server clock. EdgeForge's default setting, UTC+2 winter / UTC+3 summer, suits FTMO and most MetaTrader 4 and 5 brokers, so most people change nothing. If your broker uses a different clock, open Accounts, find Broker Server Timezone, choose the right one, and press Recalculate sessions on my existing trades.

Good to know
- Importing the same report twice is safe. EdgeForge skips trades it already has and tells you how many.
- Excel files need an internet connection the first time, to load the spreadsheet reader. The HTML report works offline.
- Imports go into the account you have open. Check the right account is selected first. Archived accounts are read-only.
- Make a backup after a big import.
If it does not work
- "No valid trades found." The report probably has no Positions table. Switch the History tab to Positions, check the period, and export again. A PDF will not work.
- Fewer trades than you expected. The report only covers the period that was showing. Export All history, or a custom period that starts earlier.
- The sessions look wrong. Check Broker Server Timezone as above.
- Anything else: send us the platform and the first few rows of the report from the support page, with account numbers blurred.
MetaTrader 4
MetaTrader 4 works the same way, through its own report. In MetaTrader 4, open the Account History tab in the Terminal, right-click and choose the period (All History or Custom Period), then right-click again and choose Save as Detailed Report. That saves an HTML statement. Import it with MetaTrader 4 / MT5 exactly as above. EdgeForge reads the Closed Transactions table and skips the balance (deposit) rows and the Open Trades section. Its columns are understood by name, including Item for the symbol and Size for the volume.
See what the reports will tell you. Open the sample journal to see the session breakdown and patterns your imported trades will produce.
View sample journal