XM is one of the most widely used retail forex brokers globally, running on MetaTrader 4 and MetaTrader 5. If you have months or years of trade history sitting in your XM account, importing it into PipJournal takes under 10 minutes and unlocks analytics you cannot get from the broker’s own reporting tools. This guide is for beginner traders who are setting up their journal for the first time or migrating existing history.
Step 1: Export Your Trade History from XM
XM accounts run on MT4 or MT5. The fastest export path is directly from the terminal.
From MT4:
- Open MT4 and go to Account History tab at the bottom.
- Right-click anywhere in the history panel and select All History to load your full trade log.
- To limit the range, right-click and choose Custom Period, then set your start and end dates.
- Right-click again and select Save as Report. Save as an HTML file.
From MT5:
- Open MT5 and click the History tab in the Toolbox panel.
- Right-click the panel, select All History or set a custom range.
- Right-click and choose Save as Report — select the Full Report option to include all trade details.
- Save as HTML.
From XM Members Area (alternative): Log into your XM client portal at xm.com, navigate to My Accounts, and use the Account Statement tool. Select your date range and export. This produces an HTML statement compatible with MT4/MT5 format.
Step 2: Format the Export File
Before importing, verify the exported file contains the correct data. Open the HTML file in a browser and confirm these columns are present:
| Column | Required | Example Value |
|---|---|---|
| Ticket | Yes | 12345678 |
| Open Time | Yes | 2026-03-10 09:15 |
| Type | Yes | buy / sell |
| Size | Yes | 0.50 |
| Symbol | Yes | EURUSD |
| Open Price | Yes | 1.08342 |
| Close Price | Yes | 1.08520 |
| Profit | Yes | 89.00 |
If any of these columns are missing, re-export using the Detailed Statement or Full Report option. Partial reports that only show daily summaries will not import correctly.
Do not edit the HTML file manually. Modifying the table structure will cause import errors.
Step 3: Import the File into PipJournal
- Log into PipJournal and navigate to Import Trades in the sidebar.
- Select MetaTrader 4 or MetaTrader 5 as the broker — XM uses standard MT4/MT5 format.
- Upload the HTML file exported in Step 1.
- PipJournal will parse the file and display a preview of the trades to be imported. Review the count — if you exported 3 months of history, the preview should reflect that volume.
- Confirm the import. Trades are typically processed in under 30 seconds for histories up to 500 trades.
For accounts with over 1,000 trades, split the export into 6-month chunks to keep file sizes manageable.
Step 4: Review and Tag Imported Trades
After import, spend 10-15 minutes reviewing the imported trades before treating the data as reliable.
Check for accuracy:
- Verify that open/close prices match your recollection of key trades.
- Confirm lot sizes are correct — MT4 reports size in lots (0.10 = 1 mini lot).
- Check that swap charges are included in the profit figure where applicable.
Add tags and context: Imported trades arrive without notes or tags. Use PipJournal’s bulk tag tool to apply labels to groups of trades — for example, tag all trades from a specific session (London, New York) or by setup type. This makes filtering meaningful when you run analytics later.
For your most significant trades — large winners, large losses, or trades that felt emotionally difficult — add a written note while the context is still fresh. Even a single sentence (“hesitated on entry, moved SL too early”) becomes valuable data over time.
Reference the weekly trade review process to build a routine around your imported history.
Pro Tips
- If you manage multiple XM accounts (e.g., a live account and a prop challenge simulation), import each separately and use PipJournal’s account labels to keep them distinct.
- MT4 exports include swap charges in the profit column. If your analysis requires gross P&L, note this when interpreting the numbers.
- Export at the end of each month rather than waiting until you have a year of history — smaller files import faster and errors are easier to spot.
- The MT5 “Full Report” option includes commission as a separate line item. PipJournal reads this correctly, so always choose Full Report over the standard report.
- After your first import, set a recurring calendar reminder to export and import monthly so your journal stays current.
Common Mistakes to Avoid
-
Exporting a summary report instead of a detailed statement. Summary reports aggregate trades by day and strip out the data PipJournal needs for per-trade analysis. Always use “Save as Report” from the Account History tab, not the account summary screen.
-
Importing only winning trades. Some traders filter their history before exporting to avoid confronting losses. This corrupts your win rate, average R, and every other metric. Import your full history for accurate analytics.
-
Skipping the review step after import. Incorrect lot sizes or missing swap data will silently skew your P&L figures. A 5-minute review catches 90% of import issues before they become embedded in your analytics.
-
Using the Members Area statement instead of the terminal report for older history. The Members Area statement covers approximately the past 6 months on most account types. For full history, always export from the MT4/MT5 terminal directly.
-
Editing the HTML export in Excel before uploading. Excel reformats dates and numbers when it opens HTML files, which breaks the import parser. If you need to inspect the file, open it in a browser, not a spreadsheet.
How PipJournal Helps
PipJournal natively supports MT4 and MT5 statement formats, which means XM trades import without any manual column mapping. Once your history is in, the analytics dashboard automatically calculates win rate, average R:R, profit factor, and drawdown across your imported trades. You can filter by symbol, session, or tag to isolate patterns — for example, comparing your EURUSD performance against GBPUSD over the same period. For traders managing live drawdown limits on prop firm challenges, PipJournal’s drawdown tracker updates in real time as new trades are logged, giving you a live view of your risk exposure against your challenge rules.
People Also Ask
Does XM support direct API integration with PipJournal?
XM does not currently offer a public trade API. The recommended method is to export your statement from the XM Members Area or MT4/MT5 terminal and import it manually into PipJournal.
What file formats does XM export support?
XM generates trade statements in HTML format from the Members Area and as HTML or CSV-compatible reports from the MT4/MT5 terminals. PipJournal accepts MT4/MT5 HTML statements directly.
How far back can I import XM trade history?
XM stores account history for the lifetime of the account. You can export any date range from the MT4/MT5 terminal by adjusting the custom date range before saving the report.
Will duplicate trades appear if I import the same period twice?
PipJournal deduplicates trades by ticket number on import. Re-importing an overlapping date range will not create duplicate entries.
Can I import trades from multiple XM accounts?
Yes. Import each account's statement separately. PipJournal supports multi-account tracking, so trades from different XM accounts can be tagged and filtered independently.