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](/blog/revenge-trading-cost), and [rule compliance tracking](/blog/trading-playbook-guide). ## Exporting from MetaTrader 4 ### Method 1: HTML Account Statement (Recommended) MT4's Account History tab gives you the most complete export: 1. Open MetaTrader 4 2. Click the **Account History** tab at the bottom of the terminal 3. Right-click anywhere in the history list 4. Select **All History** (or set a custom period) 5. Right-click again → **Save as Report** or **Save as Detailed Report** 6. Save the `.html` file 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: 1. Go to **Account History** tab 2. Right-click → **Export** 3. Save as CSV The CSV format varies by broker, but TraderDynamiq's [auto-detection engine](/blog/broker-import-auto-detection) recognizes the most common MT4 CSV layouts. ## Exporting from MetaTrader 5 MT5 has a more modern export system: ### Method 1: Account History Export 1. Open MetaTrader 5 2. Go to the **History** tab at the bottom 3. Right-click → **All History** (or set dates) 4. Right-click → **Report** → **Save to File (HTML)** 5. Or: Right-click → **Export to CSV/Excel** ### Method 2: Position History MT5 separates deals (individual fills) from positions (gro