How to Connect an Expert Advisor to IG MetaTrader 4
If you want to connect an Expert Advisor to IG MetaTrader 4, the process is largely the same as any MT4 broker: install the platform, log in with your IG MT4 credentials, then enable algo trading at both the terminal and EA level. This guide walks through each step so you can get an EA running correctly — and testing safely — before you risk real capital.
Before You Start: Confirm IG's MT4 Access
Not every broker platform setup is identical, and access can change over time, so confirm the basics on IG's own site first:
- Platform availability — check that MT4 (not just IG's own platform) is currently offered on your account type.
- Live MT4 login details — IG issues separate MT4 server, login and password details from your main IG account login; these arrive after you request or activate MT4 access.
- Algo trading permissions — some brokers require you to explicitly enable automated trading on the account, separate from the terminal setting.
- Instrument and leverage rules — remember that FCA rules cap retail leverage at 30:1 on major FX pairs, which matters if your EA calculates position size using leverage.
If anything here is unclear, IG's support pages and PipTax's broker page at /brokers/index.html are good starting points for comparing what's currently on offer across MT4-friendly brokers.
Step 1: Download and Install MT4
1. Get the MT4 installer directly from IG's platform download page (not a generic third-party MT4 download). 2. Run the installer and complete setup — this creates a fresh MT4 terminal on your machine. 3. Open the terminal and go to File > Login to Trade Account. 4. Enter the login, password, and server IG issued for MT4 (this server name is broker-specific, e.g. an IG-branded server, not the generic "MetaQuotes-Demo"). 5. Confirm you're connected — the bottom-right corner of MT4 should show a signal/connection icon rather than a red cross.
If login fails, double-check you're using the MT4-specific credentials from IG, not your main IG platform login — these are commonly different.
Step 2: Enable Algo Trading in MT4
MT4 blocks all automated trading by default until you switch it on:
- Click the AutoTrading button in the toolbar so it turns green (it's red or grey when off).
- Go to Tools > Options > Expert Advisors and tick:
- - Allow automated trading
- - Allow DLL imports (only if your EA specifically requires this — most don't)
- - Allow WebRequest for listed URL (only if the EA calls external data)
- Restart MT4 if you've just changed these options, to make sure they apply cleanly.
Without this step, even a correctly attached EA will sit inactive on the chart.
Step 3: Attach the EA to a Chart
1. Copy your EA file (.ex4) into the MQL4/Experts folder, accessible via File > Open Data Folder in MT4. 2. Restart MT4 or right-click Expert Advisors in the Navigator panel and refresh. 3. Open the chart for the instrument and timeframe the EA is designed for. 4. Drag the EA from the Navigator onto the chart. 5. In the EA properties window, tick Allow Algo Trading (sometimes labelled "Allow live trading"). 6. Click OK — a small icon appears in the top-right of the chart.
Step 4: Confirm the EA Is Actually Running
This is the step traders most often skip, and it's the one that prevents silent failures:
- Smiley face icon on the chart should be green/smiling, not red/frowning.
- Check the Experts tab at the bottom of MT4 for confirmation messages or errors.
- Check the Journal tab for connection or permission errors.
- Watch the Trade tab to confirm the EA opens a position when its conditions are met (test this on demo first).
If the EA shows a red face, the most common causes are: AutoTrading is off, the EA's own algo trading box isn't ticked, or there's a coding error listed in the Experts tab.
Test on Demo Before Going Live
Always run a new EA on an IG demo account before committing real funds:
- Confirms the EA opens and closes trades as intended.
- Lets you observe behaviour around news releases, rollovers, and weekend gaps.
- Gives you a chance to check lot sizing matches your risk tolerance, particularly under the 30:1 FCA leverage cap on majors.
- Helps you spot conflicts with other EAs or manual trades on the same account.
Only move to a live IG MT4 account once you're satisfied the EA behaves as expected across a reasonable sample of demo trades.
Don't Ignore the Cost Side of Automated Trading
An EA doesn't change how spreads, commission, or swaps affect your account — it just executes trades faster and more consistently. This means cost accuracy matters even more:
- Check live spreads and commission structures directly on IG's site, since these can vary by account type and instrument.
- Use PipTax's cost tool at /audit.html to see the all-in cost per trade for your typical EA strategy (frequency, lot size, instruments traded).
- Compare this against your EA's backtested edge — a strategy that looks profitable in backtests can be marginal once real-world costs are applied.
- Revisit /brokers/index.html periodically, since broker offerings and platform support can change.
If you're new to automated trading concepts generally, PipTax's /school/index.html covers the basics of EAs, backtesting, and risk management before you commit to a live setup.
Conclusion
Learning how to connect an Expert Advisor to IG MetaTrader 4 comes down to four checkpoints: correct MT4 login details, AutoTrading enabled in the terminal, the EA's own algo trading permission ticked, and a green smiley face confirming it's live. Test thoroughly on demo, respect the FCA's 30:1 leverage cap on majors when sizing trades, and always check real spreads, commission and swap costs — via IG's own site and PipTax's /audit.html cost tool — before assuming an EA's backtested edge will hold up in live conditions.
Key takeaways
- To connect an Expert Advisor to IG MetaTrader 4 you need IG's live or demo MT4 login details, the platform installed, and 'Algo Trading' enabled both in MT4 and on your IG account settings.
- EAs only run when AutoTrading is switched on and the specific EA has 'Allow Algo Trading' ticked in its properties — the smiley face icon on the chart confirms it's active.
- Always test a new EA on an IG demo account first to check it executes correctly and matches your intended risk before going live.
- Spreads, commission and swap costs affect EA performance just as much as manual trading — check these on IG's own site and cross-check with PipTax's cost tool.
- FCA rules cap retail leverage at 30:1 on major FX pairs, which affects position sizing calculations inside your EA.
- Keep your MT4 terminal and internet connection stable, since a dropped connection can leave EA positions unmanaged.
Frequently asked questions
- Does IG support MetaTrader 4 for automated trading?
- IG has historically offered MetaTrader 4 alongside its own platform, and MT4 is built to support Expert Advisors. Platform availability can change, so confirm current MT4 access and any conditions on IG's own site before setting up an EA.
- Do I need a special account type to run an EA on IG MT4?
- You need an IG account with MT4 access rather than IG's proprietary platform only. Check IG's site for which account types include MT4, and confirm there are no restrictions on algorithmic trading for your account.
- Why won't my EA trade even though AutoTrading is on?
- Common causes are: the EA's own 'Allow Algo Trading' box isn't ticked in its properties, the smiley face icon is red not green, the EA has an error in the Experts tab, or your broker's server has algo trading disabled at account level. Check each in order.
- Can I run an EA on an IG demo account first?
- Yes, and you should. Running the EA on an IG demo account lets you confirm it opens trades as expected and check behaviour around news events and rollovers, without risking real money.
- Will spreads and commissions affect my EA's results?
- Yes. Every trade an EA places is still subject to IG's spread, commission and swap costs. These directly affect net profitability, especially for high-frequency strategies, so use PipTax's cost tool to see the all-in cost per trade before relying on backtest results alone.