Trding.io Tutorial
How to Install an Expert Advisor (EA) on MetaTrader 5 (MT5)
Installing an Expert Advisor (EA) on MetaTrader 5 means copying its .ex5 or .mq5 file into the platform's MQL5/Experts folder, restarting or refreshing MT5, dragging the EA onto a chart, and enabling AutoTrading with 'Allow Algo Trading' ticked. This guide walks beginners through every click, flags the traps that stop an EA from running — wrong folder, AutoTrading switched off, blocked DLL imports — and reminds you that no EA guarantees profit: backtest results are not live results, and most retail traders lose money.
What is an Expert Advisor, and why this guide?
An Expert Advisor (EA) is an automated trading program that runs inside MetaTrader 5. It reads the price chart, applies rules its author coded, and can open, manage, and close trades for you without manual clicks. EAs are written in the MQL5 language and arrive as either compiled .ex5 files (ready to run) or .mq5 source files (which MT5 compiles for you).
The install itself is quick, but beginners routinely get stuck because MT5 hides the folder where EAs must live, or because AutoTrading is off by default. This tutorial removes the guesswork with exact, numbered steps and a troubleshooting section, so your EA actually appears in the Navigator and is allowed to trade.
Before you start
- MetaTrader 5 installed and logged into a trading account (a demo account is strongly recommended for first tests).
- The EA file from its author or vendor — a .ex5 file (compiled, most common) or a .mq5 file (source code).
- Any extra files the EA requires, such as a .set preset file or included libraries, kept together with the EA.
- A note of exactly where you saved the download, for example your Downloads folder.
Step 1 — Locate your EA file (.ex5 or .mq5)
Find the file you downloaded. A .ex5 file is a compiled, ready-to-run EA and is the most common format. A .mq5 file is human-readable source code that MT5 will compile into an .ex5 automatically the first time it is opened in the platform.
If the EA came inside a .zip archive, unzip it first. Never try to install a still-zipped file — MT5 cannot read it.
Step 2 — Open the MT5 data folder
In MetaTrader 5, click the top menu: File > Open Data Folder. A Windows Explorer (or Finder) window opens showing the exact folder MT5 reads from. This is the only reliable way to find it — do not browse to the Program Files install directory, because MT5 stores your EAs elsewhere (in a user AppData path).
Step 3 — Copy the EA into MQL5\Experts
In the window that opened, double-click the MQL5 folder, then open the Experts subfolder. Copy your .ex5 or .mq5 file here. You can create subfolders inside Experts to stay organised (for example MQL5\Experts\MyStrategy) — MT5 will still find it.
If the EA ships with indicator files (.ex5/.mq5 indicators) or libraries, place indicators in MQL5\Indicators and libraries in MQL5\Libraries. Any .set preset files can go in MQL5\Presets.
Step 4 — Restart or refresh MetaTrader 5
Go back to MT5. Either close and reopen the platform, or right-click the 'Expert Advisors' branch inside the Navigator panel (View > Navigator, or Ctrl+N) and choose Refresh. Your EA should now appear in the list under Expert Advisors.
Step 5 — Attach the EA to a chart
Open a chart for the instrument and timeframe your EA is designed for (File > New Chart). In the Navigator, find your EA under Expert Advisors, then double-click it or drag it directly onto the chart.
A settings window opens. On the 'Common' tab, tick 'Allow Algo Trading' (older builds call this 'Allow automated trading'). On the 'Inputs' tab, adjust parameters or load a .set preset if the vendor supplied one. Click OK.
Step 6 — Enable AutoTrading
Look at the top toolbar for the 'Algo Trading' (AutoTrading) button. Click it so it turns green — this is the master switch that lets any EA place live orders. When it is on and the EA is attached correctly, you will see a smiling face in the top-right corner of the chart. A frowning (sad) face means AutoTrading is off or the EA is not permitted to trade.
Step 7 — Confirm the EA is running
- Smiling face in the top-right corner of the chart = EA is active and allowed to trade.
- The 'Algo Trading' toolbar button is green (pressed in).
- Open the Toolbox (Ctrl+T) and check the 'Experts' tab — you should see initialisation messages from your EA, and the 'Journal' tab for platform-level events.
Common traps to avoid
- EA does not appear in the Navigator: you copied it to the wrong folder. It MUST be inside MQL5\Experts, reached via File > Open Data Folder — not the Program Files directory. Refresh the Navigator afterwards.
- Sad/frowning face on the chart: AutoTrading is switched off, or 'Allow Algo Trading' was not ticked in the EA settings. Click the green Algo Trading button and re-check the EA's Common tab.
- EA needs DLL imports: some EAs call external DLLs. In the EA settings 'Common' tab (and under Tools > Options > Expert Advisors) you must tick 'Allow DLL imports'. Only enable this for EAs from a source you trust — DLLs can run arbitrary code.
- Wrong symbol or timeframe: many EAs are built for a specific pair and timeframe. Running them elsewhere can produce no trades or unexpected behaviour.
- 'Algo Trading' disabled by broker or account: check the Journal tab for a message; some accounts restrict automated trading.
Troubleshooting
- Nothing happens after attaching the EA: open Toolbox > Experts and Toolbox > Journal to read error messages — they usually name the exact problem.
- 'AutoTrading is disabled' message: click the Algo Trading toolbar button until it is green, then re-attach the EA.
- EA compiles with errors (for .mq5): open it in MetaEditor (right-click the EA > Modify) and press F7 to compile; missing include files are the usual cause.
- EA shows but never trades: confirm the market is open, spread and account balance meet the EA's minimums, and inputs (lot size, risk) are set correctly.
- Still stuck: remove the EA (right-click chart > Expert Advisors > Remove), restart MT5 completely, then repeat Steps 5–6. Test on a demo account first.
An honest word on risk
Installing an EA correctly is a technical task — it says nothing about whether the EA is any good. No Expert Advisor guarantees a profit. A strategy that looks flawless in a backtest can lose money live, because backtests use historical data under idealised conditions (no slippage surprises, perfect fills, tidy spreads) that real markets do not honour.
The majority of retail traders lose money, and automation does not change that arithmetic — it only executes the rules faster. Always test on a demo account, understand what the EA actually does, risk only money you can afford to lose, and treat any vendor promising guaranteed or 'risk-free' returns as a red flag. Nothing here is financial advice.
This tutorial is educational and is not financial advice. CFDs are complex instruments and come with a high risk of losing money. Most retail traders lose money.