CFDs are complex instruments and come with a high risk of losing money rapidly due to leverage. Most retail investor accounts lose money when trading CFDs. PipTax is educational and compares costs; it is not investment advice.

Home › Learn › Tutorials

How to Install and Configure an EA on MT4

Updated 26 September 2026 · 7 min read · PipTax education

If you want to install and configure an EA on MT4, the whole process is really just file placement, a few settings toggles, and careful testing — no programming required. This guide walks through it step by step so you can go from a fresh download to a properly checked, running expert advisor.

What You Need Before You Start

Before touching MetaTrader, gather the basics:

If you're unsure which broker setup suits automated strategies, the [brokers page](/brokers/index.html) is a good starting point for comparing execution types before you commit real funds.

Step 1: Locate the MT4 Data Folder

Every EA install starts in the same place — MT4's data folder.

1. Open MT4. 2. Click File > Open Data Folder. 3. Inside, open the MQL4 folder. 4. You'll see subfolders: Experts, Indicators, Files, Presets.

This is where everything gets copied to. If the EA needs custom indicators or set files, those go in Indicators and Files respectively — check the EA's instructions, since missing a supporting file is one of the most common reasons an EA fails to load properly.

Step 2: Copy the EA Files In

Once copied, close MT4 completely and reopen it. MT4 only scans these folders on startup, so a simple refresh in the Navigator window isn't always enough — a full restart avoids the EA silently not appearing.

Step 3: Enable Algo Trading

This step trips up more traders than any other. MT4 has a global switch and a per-EA switch, and both need to be on.

Global switch: - Click the Algo Trading button in the toolbar so it turns green (older builds call this "AutoTrading").

Per-EA switch: - Drag the EA from the Navigator window onto your chart. - In the popup window, go to the Common tab and tick Allow live trading (and Allow DLL imports if the EA needs it).

If either switch is off, the EA sits on the chart doing nothing, and you'll usually see a grey or sad-face icon in the top-right corner of the chart rather than a smiley.

Step 4: Configure the EA's Inputs

Every EA has an Inputs tab full of parameters — this is where "install" turns into "configure," and it's the step people rush.

Common inputs to check carefully:

| Input | Why it matters | |---|---| | Lot size / risk % | Set relative to your actual account balance, not a default that assumes a larger account | | Stop loss / take profit | Confirm units — some EAs use pips, others points | | Magic number | Keeps trades from this EA separate from others on the same account | | Max spread / slippage filter | Protects against the EA trading during unusually wide spreads | | Trading hours / session filter | Some strategies are built for specific sessions only |

If a .set file was provided, load it via Load in the Inputs tab rather than retyping everything — it reduces the risk of typos changing the strategy's behaviour.

Step 5: Test Before You Trust It

Never attach an EA to a live chart and walk away on your first run. Use MT4's built-in Strategy Tester (View > Strategy Tester, or Ctrl+R):

Because live spreads, swaps and commissions vary by broker, don't assume the tester's default numbers are close to reality — check current figures on the [cost tool](/audit.html) and plug in something realistic before judging the results.

Step 6: Move to Demo, Then Live

Once backtesting looks reasonable:

1. Run the EA on a demo account for at least a few weeks, ideally through varied market conditions. 2. Watch for slippage, missed trades, or requotes that didn't show up in backtesting. 3. Only then attach it to a live account, starting with reduced lot size. 4. Keep monitoring — an EA that ran well historically can still misfire during news events, low liquidity, or broker-specific execution changes.

For a broader grounding in how automated and manual strategies fit together, the [trading school](/school/index.html) covers the fundamentals worth knowing before you let software place trades unattended. And if you want to understand how our comparisons and figures are put together, see the [methodology page](/methodology.html).

Conclusion

Learning to install and configure an EA on MT4 is straightforward mechanically — copy files, restart, enable algo trading, set the inputs — but the real work is in testing it properly against realistic costs and watching it on demo before going live. Trading with an EA doesn't remove risk; it just automates decisions, so treat setup and testing with the same care you'd give a manual strategy, and check live spreads and commissions on the cost tool rather than assuming the backtest numbers will hold up in the real market.

Key takeaways

  • Installing an EA is just copying files into MT4's Experts and Files folders and restarting the platform — no coding needed
  • Always enable 'Allow Algo Trading' both globally and on the individual EA, or it will sit inactive
  • Run the EA in the Strategy Tester with real spread and commission data before risking live money
  • Every EA input (lot size, stop loss, magic number) needs checking against your account currency and broker's minimum trade size
  • A demo account for at least a few weeks is the minimum sensible test before going live
  • Trading costs like spread and swap directly affect an EA's real results — check these on the cost tool rather than assuming
Want the real number for how you trade? Audit your MT4/MT5 statement free — see your true all-in cost and the genuinely cheapest broker for your style.

Frequently asked questions

Do I need MT4 or MT5 to run an EA?
EAs are platform-specific. Files ending .ex4 run on MT4 and .ex5 run on MT5 — they are not interchangeable, so check which version your broker's EA or your own script was built for before installing.
Why does my EA icon show a sad or grey face instead of a smiley?
A grey or sad face usually means Algo Trading isn't enabled globally, the EA's own 'Allow live trading' box isn't ticked, or the EA needs DLL/web access permissions that haven't been granted in Options.
Can I run an EA on a broker demo account first?
Yes, and you should. Most brokers, including Pepperstone and IG, offer MT4 demo accounts that let you test an EA with live market data but no real money at risk.
Will an EA work the same on any broker?
Not necessarily. Execution speed, spreads, swaps and minimum lot sizes vary by broker, so results can differ even with identical settings — use the cost tool to compare before committing real funds.
Do I need a VPS to run an EA?
If the EA needs to trade 24/5 without your computer being on, yes — a VPS keeps MT4 running continuously. For testing or manual oversight, your own PC is fine to start with.

Keep going: Audit Index Index Methodology