MetaTrader 4 and MetaTrader 5 are the most widely used trading platforms in the world, powering the majority of forex brokers and many CFD, futures, and crypto providers. If you trade on MT4 or MT5, your entire trade history is sitting inside the platform — you just need to get it out.
This guide walks you through exporting your trades from MetaTrader and importing them into TraderDynamiq for behavioral analysis, verdict detection, and rule compliance tracking.
Exporting from MetaTrader 4
Method 1: HTML Account Statement (Recommended)
MT4’s Account History tab gives you the most complete export:
- Open MetaTrader 4
- Click the Account History tab at the bottom of the terminal
- Right-click anywhere in the history list
- Select All History (or set a custom period)
- Right-click again → Save as Report or Save as Detailed Report
- Save the
.htmlfile to your computer
The detailed report includes:
- Open and close times
- Symbol, direction (buy/sell), lot size
- Entry and exit prices
- Profit, commission, and swap (funding) fees
- Order ticket numbers
TraderDynamiq auto-detects the MT4 HTML report format. Just upload the file and it handles the rest.
Method 2: CSV Export from History
Some MT4 versions or plugins support CSV export:
- Go to Account History tab
- Right-click → Export
- Save as CSV
The CSV format varies by broker, but TraderDynamiq’s auto-detection engine recognizes the most common MT4 CSV layouts.
Exporting from MetaTrader 5
MT5 has a more modern export system:
Method 1: Account History Export
- Open MetaTrader 5
- Go to the History tab at the bottom
- Right-click → All History (or set dates)
- Right-click → Report → Save to File (HTML)
- Or: Right-click → Export to CSV/Excel
Method 2: Position History
MT5 separates deals (individual fills) from positions (grouped trades). For the most useful analysis:
- Right-click in the History tab
- Select Positions view (not Orders or Deals)
- Export this view — it groups your fills into complete round-trip trades
What Gets Imported
When TraderDynamiq processes your MetaTrader export, it extracts:
| MT4/MT5 Field | TraderDynamiq Field |
|---|---|
| Open Time | ts_open (entry timestamp) |
| Close Time | ts_close (exit timestamp) |
| Type (Buy/Sell) | side (LONG/SHORT) |
| Size/Volume | qty (position size) |
| Item/Symbol | symbol |
| Open Price | entry_price |
| Close Price | exit_price |
| Profit | realized_pnl |
| Commission | fees |
| Swap | funding |
Your trades are deduplicated automatically using a deterministic hash, so you can re-import updated reports without creating duplicate entries.
Broker Compatibility
Because MT4 and MT5 are platforms (not brokers), hundreds of forex and CFD brokers use them. TraderDynamiq’s MetaTrader support covers all brokers running on these platforms, including:
See what your trading mistakes actually cost
Upload your trades and get a dollar-amount breakdown of every costly pattern.
Start Free Trial →