📅 Updated: ✍️ By The PipAtlas Team✅ Tested on MT5 build 4000+⏱ 8 min read
Short answer: An EA is installed by copying the .ex5 file into MT5's Experts folder (File - Open Data Folder - MQL5 - Experts), refreshing the Navigator, then dragging it onto a chart with AutoTrading enabled - and it should always prove itself on a demo account first.
Contents
  1. Before you start (30 seconds)
  2. Method 1: The data folder (any EA)
  3. Method 2: Straight from the Code Base
  4. First-run checklist
  5. Backtest before you risk a cent
  6. Troubleshooting
  7. FAQ

You found a promising free expert advisor in our curated library — now what? This guide walks you through every way to get an EA running in MetaTrader 5, the settings people miss, and the two-minute backtest that should always come before live money. Total time: about two minutes once you've done it once. Not sure which platform runs what? The MT4 vs MT5 comparison settles it in five minutes.

Before you start (30 seconds)

Method 1: The data folder (works for any EA)

  1. Open MetaTrader 5 → menu File → Open Data Folder. A Windows Explorer window opens. C:\Users\[You]\AppData\Roaming\MetaQuotes\Terminal\[ID]\
  2. Navigate to the Experts folder: open MQL5 → Experts. This is where EAs live. (Indicators go in MQL5 → Indicators; scripts in MQL5 → Scripts.)
  3. Copy the EA file (.mq5 or .ex5) into that folder. Organizing into subfolders is fine — they'll show as folders in the Navigator.
  4. Refresh: back in MT5, right-click inside the Navigator panel (Ctrl+N if hidden) → Refresh. If it doesn't appear, restart the terminal.
  5. Attach it: open a chart (e.g., EURUSD M15), find the EA under Navigator → Expert Advisors, and drag it onto the chart.
  6. Enable trading: in the settings dialog, tick “Allow Algo Trading”, check the Inputs tab look sane, click OK. Then confirm the Algo Trading toolbar button is green (it's red/off by default after updates).
Success looks like: the EA's name appears in the chart's top-right corner with a small icon/hat symbol (not grayed out), and the Algo Trading button is green. The Journal and Experts tabs (Toolbox, Ctrl+T) log every action and error — read them.

Method 2: Straight from the Code Base tab (easiest)

  1. In MT5, open the Toolbox (Ctrl+T) → Code Base tab. This streams the official MQL5 Code Base right into the terminal.
  2. Browse or search (e.g., “moving average EA”), right-click the item → Download. MT5 compiles and installs it into the right folder automatically.
  3. Find it in Navigator → Expert Advisors → drag onto a chart as in Method 1, step 5–6.

Pro tip: the same trick works for indicators and the MQL5 Market tab (paid products) — downloads there are licensed to your machine and update automatically.

🛡️ Not sure which EA to try first? Our library lists free, source-visible expert advisors we tested on demo — starting with safety tools, not money machines.

First-run checklist (the settings people miss)

CheckWhereWhy it matters
Algo Trading button is greenToolbarGlobal kill-switch — red means no EA can trade, whatever its settings say
“Allow Algo Trading” tickedEA dialog, Common tabPer-chart permission; silently off after some updates
Symbol shows trade pricesMarket Watch → right-click → show/tick symbolAn EA on an unlisted symbol just idles
AutoTrading icon in chart corner (not gray)Top-right of chartGray = blocked at terminal or chart level
Journal shows no red errorsToolbox → Journal / Experts tabs“Cannot open file”, “invalid volume”, “market closed” are all here
Correct magic numberEA InputsRunning 2 EAs on one account? Distinct magic numbers stop them fighting over positions

Backtest before you risk a cent (2 minutes)

  1. Press Ctrl+R (or View → Strategy Tester). Choose your EA, symbol, timeframe and date range — test at least 12 months.
  2. Model: pick “Every tick based on real ticks” where available. Slower, but the only honest simulation.
  3. Press Start, then read the numbers that actually matter:
    • Profit factor — gross profit ÷ gross loss. Above ~1.3 is interesting; above 1.6 over years is rare and lovely.
    • Max drawdown — if the tester shows −40%, expect worse live. Could your stomach (and balance) take it?
    • Number of trades — 12 trades prove nothing statistically. You want hundreds.
  4. Then forward-test on demo for 2–4 weeks — backtests flatter everything; live conditions humble it.
Green equity curve ≠ good EA. Martingale robots draw beautiful upward slopes, then one trending week erases the account. If lots double after losses, you now know exactly what that is — close the tester and walk away.

Troubleshooting

SymptomLikely cause → fix
EA missing from NavigatorWrong folder (check MQL5 → Experts, not MQL5 → Include) or didn't refresh/restart. .mq5 files must compile — open in MetaEditor (F4) and press F7 if needed.
EA name in chart corner is grayAlgo Trading button off (toolbar) or “Allow Algo Trading” unticked in the EA dialog.
“Invalid volume” in JournalLot size outside the symbol's min/step — e.g., 0.05 on a symbol stepping 0.1. Check right-click symbol → Specification.
EA attached but never tradesSymbol not shown in Market Watch · trading closed (weekend) · EA's own conditions simply not met (normal!) · or it requires a specific account type.
“This product is not for your account”MQL5 Market items are rented per-account/machine — activate from the Market tab while logged into the same MQL5 account.
Works manually, stops overnightPC slept or terminal closed. That's what a VPS is for — but only after a strategy proves itself (see our VPS guide, Month 6).

Frequently asked questions — How to Install an EA in MT5

Can I install MT4 indicators or EAs in MT5?

No — .mq4/.ex4 files don't run in MT5; the languages differ. Most popular MT4 tools have MT5 ports on the MQL5 Code Base, and our library flags which platform each tool is for.

Where did my EA go after a MetaTrader update?

Updates occasionally reset the Algo Trading permission (button turns red). The files stay put in the data folder — just re-enable algo trading and re-attach if needed.

Can I run two EAs on the same account?

Yes, on different charts — but give each a distinct magic number (in Inputs) so their trade management doesn't collide, and make sure their combined risk stays within your 1–2% total.

Do EAs keep running when I close MT5?

No — the terminal must be open and connected. That's why live EA traders rent a VPS (~$10–30/month). On demo? Just leave your PC on; don't pay for a VPS yet.

Continue learning — How to Install an EA in MT5

📥 Free EA Library🤖 Do Forex Bots Work?📉 Drawdown (glossary)🎯 Position Size Calculator
✓Reviewed by The PipAtlas Team — fact-checked against platform documentation and broker specs before publishing. Corrections welcome via Contact · Editorial policy →

Sources & further reading — How to Install an EA in MT5

Independent references consulted while writing this guide. PipAtlas is educational and not investment advice - verify anything trade-critical with your broker and the source documents.

PA
The PipAtlas Team

This guide was tested on a fresh MT5 demo install, build 4000+, Windows 11. We re-verify platform guides after every major MT5 release. Editorial policy →