How to Install an EA on MT5 (2026 Step-by-Step Guide)

Install an expert advisor on MetaTrader 5 in under five minutes: where to copy the .ex5 file, how to enable algo trading, attach the EA to a chart and confirm it is really running.

· Guides

Installing an expert advisor on MetaTrader 5 takes about five minutes once you know where the files go. This guide covers the exact steps, the two settings that stop most EAs from trading, and how to verify the robot is live rather than just attached.

What you need before you start

  • MetaTrader 5 installed on a PC or a VPS (the terminal must stay online to trade)
  • The EA file: .ex5 (compiled, ready to run) or .mq5 (source, needs compiling)
  • A funded or demo account logged in inside MT5
  • Any .set preset file the developer supplied

Step 1 - open the data folder

In MT5: File → Open Data Folder. This opens the terminal folder, not the install folder - copying files anywhere else is the single most common mistake.

Step 2 - copy the files to the right place

File type Destination folder
.ex5 / .mq5 expert advisor MQL5\Experts
Indicator used by the EA MQL5\Indicators
.set preset MQL5\Presets
.onnx model or .dll MQL5\Files (unless stated otherwise)

Step 3 - refresh the Navigator

Back in MT5, press Ctrl+N to open the Navigator, right-click Expert Advisors and choose Refresh. The EA now appears in the tree. If it does not, close MT5 completely and reopen it.

Step 4 - enable algorithmic trading

Two switches must both be on:

  1. Tools → Options → Expert Advisors → tick Allow algorithmic trading, and Allow WebRequest for listed URL if your EA licence checks a server.
  2. The Algo Trading button in the toolbar must be green, not red.

Step 5 - attach the EA to a chart

Open the chart for the symbol and timeframe the developer specifies (for example XAUUSD M15), then drag the EA from the Navigator onto that chart. In the dialog:

  • Common tab → tick Allow Algo Trading
  • Inputs tab → click Load and select the .set preset, or set the risk inputs manually
  • Press OK

Step 6 - confirm it is actually running

  • The chart's top-right corner shows the EA name with a smiling face icon. A sad face or a cross means algo trading is off or the EA was rejected.
  • The Experts tab (Toolbox) prints the EA's startup log - licence status, inputs, symbol checks.
  • The Journal tab shows terminal-level errors such as AutoTrading disabled or trade context busy.

One EA per chart. To run several robots on one account, open one chart per EA and give each a unique magic number.

If the EA is attached but does not trade

Work through the dedicated checklist in Why your MT5 EA is not trading. The usual causes:

  • Wrong symbol suffix (XAUUSD vs XAUUSD.m) - the EA sees no chart it recognises
  • Lot size below the broker minimum, or free margin too small for the configured risk
  • Market closed, or a news/session filter blocking entries
  • Licence not activated for that account number

Activating a licence from EA Quantum Lab

Our robots are tied to the account number you enter at checkout, so activation is automatic - no keys to paste. Add or renew an account in your dashboard and the EA starts trading on the next tick. Full EAs start at $149 in the marketplace, and you can also unlock one for $0 through the free licence programme.

Frequently asked questions

Can I install an EA on a phone? No. The MT5 mobile app cannot run expert advisors - use a Windows PC or a VPS.

Do I need to keep the terminal open? Yes. The EA only trades while MT5 runs and is connected. A VPS solves this.

Can I test before going live? Yes - run the Strategy Tester, then a demo account for at least two weeks. See backtest vs live results.

Is a .mq5 file enough? It works, but MT5 must compile it in MetaEditor first (F7). A .ex5 runs straight away.

Continue reading

Failed to load the app

Something went wrong while loading. Try reloading the page — if the issue persists, clear your browser cache (Ctrl+Shift+R).