# How to Connect XM MT4 to Trader Journal

> XM is one of the most popular MT4 brokers globally. Here is how to connect your XM account to Trader Journal and start tracking trades automatically.

**Tags:** xm, xm.com, mt4, broker-setup, automatic-tracking

**URL:** https://traderjournal.app/broker-setup/how-to-connect-xm-mt4-to-trader-journal

---


# How to Connect XM MT4 to Trader Journal

XM (XM.com) is one of the largest MT4 brokers by client count. Setting up the Trader Journal connection is straightforward. Here is the complete process.

## XM Server Names

XM runs accounts across multiple entities and servers. The most common MT4 server names are:

- **XM.COM-Real** (most common for newer accounts)
- **XM.COM-Real2**
- **XM.COM-Real3**
- **XMGlobal-Real** (for accounts under XM Global Limited)
- **XMGlobal-Real2**
- **Trading Point-Real** (older accounts under the original entity)

Verify yours in MT4 bottom-right corner. If you have an XM MT5 account, the servers follow the pattern **XMGlobal-MT5 Real**.

## Before You Start

You need:
- XM MT4 terminal installed and logged in
- Trader Journal app installed and API key ready
- AutoTrading enabled in MT4

## Complete Setup Steps

### Install the EA

Download `TraderJournal.ex4` from Trader Journal app (Settings → Expert Advisor → Download for MT4). Place it in MT4 Data Folder → MQL4 → Experts. Refresh your Navigator.

### Configure WebRequest

Tools → Options → Expert Advisors → Allow WebRequests. Add `https://api.traderjournal.app` to the permitted URL list. Click OK.

### Attach EA to Chart

Open a chart (any instrument, any timeframe). Drag the TraderJournal EA from Navigator onto the chart. In the inputs tab, enter your Trader Journal API key exactly as it appears in the app. Click OK.

Enable AutoTrading using the toolbar button.

### Confirm Connection

The EA shows a green smiley face when syncing correctly. Open Trader Journal app and check Accounts — your XM account name and balance should appear within 60 seconds.

## XM Account Types and How They Affect Your Journal

**Micro accounts:** XM micro accounts trade in micro lots (0.01 standard lot = 1 micro lot). Trader Journal displays lot sizes in the XM standard notation. A 100 micro lot trade shows as 1.00 lot, which matches what you see in MT4.

**Standard and Zero accounts:** These work identically in Trader Journal. Zero accounts show tight spreads with commission charges logged per trade.

**Ultra Low accounts:** Same as Standard for journal purposes. Very low spreads, no commission.

**Bonus account balance:** If you have XM credit/bonus, your equity will differ from balance. Trader Journal tracks equity separately so your performance metrics reflect real money, not bonus.

## XM Swap Rates

XM has specific triple-swap days for most instruments. Trader Journal captures the swap value from each trade record, so your weekly P&L will automatically include the Wednesday or Friday triple swap cost.

## Demo Account Setup

XM demo accounts use different servers:

- **XM.COM-Demo**
- **XMGlobal-Demo**

The setup process is identical. When attaching the EA, select Account Type: Demo. Trader Journal separates demo and live account statistics.

## Troubleshooting XM-Specific Issues

**EA shows "no connection" message:**
XM occasionally updates its server IPs. If the EA stops connecting after a platform update, reinstall the latest XM MT4 from the XM website. The new installer includes updated server configurations.

**Trades not appearing after symbol suffixes:**
XM appends suffixes to some instruments (e.g., EURUSD becomes EURUSDm on certain account types). Trader Journal reads the base symbol and strips known suffixes automatically. You may see trades labelled as EURUSD even if MT4 shows EURUSDm. This is expected behaviour.

**Account balance showing incorrectly:**
If your MT4 account has multiple currencies, Trader Journal reports in the base account currency. If you see USD values but your account is EUR-denominated, check the Account Settings in Trader Journal for currency conversion settings.

## After Setup: What XM Traders Track

With the connection running, focus on these areas in Trader Journal:

**Spread cost tracking:** XM Standard accounts have variable spreads. Over time your journal reveals your average entry spread and its impact on win rate.

**Session performance:** XM is popular for both London and New York session trading. The hourly analysis in Trader Journal shows which session is most profitable for you.

**Bonus impact:** If you receive XM loyalty bonuses, note that these affect your equity curve. Add a journal note when bonuses are applied so your equity chart accurately reflects trading performance vs bonus credits.

The XM MT4 connection is stable and requires no maintenance once set up. Every trade you execute logs automatically.
