An Expert Advisor (EA) is a program that trades MetaTrader 5 for you — automatically, by its own rules. Installing one takes minutes: (1) open a broker account through your partner/referral link first — attribution is locked at account creation and cannot be added later, (2) download and install MT5 from your broker, (3) drop the EA file into the MQL5/Experts folder, (4) enable Algo Trading, attach the EA to a chart, and (5) verify it initialized in the Experts log. The most expensive mistake isn't a bad install — it's opening the account without the link and quietly paying higher commissions forever.
What Is an EA and What Do You Need Before Starting?
An Expert Advisor (EA) is MetaTrader's term for a trading robot — a program that reads the market and executes trades according to coded rules, without emotion and without needing you at the screen. EAs can also assist manual traders: risk calculators that size every position automatically, break-even managers, trade copiers, and trailing-stop tools are all EAs.
Before you start, you need three things:
- A brokerage account with MT5 support — live or demo. If you don't have a broker yet, see Step 1 below — how you open the account matters.
- The MT5 desktop platform — free from your broker. EAs do not run on mobile.
- Your EA file — either
.ex5(compiled, ready to run) or.mq5(source code, compiled inside MT5's MetaEditor with one keystroke).
Step 1 — Open Your Account the Right Way (This Step Cannot Be Redone)
Here is the part almost every installation guide skips, and it's the most expensive one:
We run our trading operations with BlackBull Markets — an FMA-regulated New Zealand broker with deep liquidity and institutional-grade execution on MT5. Our members and readers can open their account through our official partner link:
Open Your BlackBull Markets Account
Open through our partner link and save $1 per lot on both opening and closing — a $2 per lot round-turn discount against standard commission pricing, for the life of the account. Then download MT5 and log in with the same credentials.
Open Your Account → Save $1/Lot Each WayDisclosure: DFamily Trading is a BlackBull Markets introducing partner. Accounts opened through our link receive the partner commission discount described above, and we may earn a referral commission — at no additional cost to you. Trading involves substantial risk of loss.
What the discount means in practice: commission savings compound with volume. A trader turning over 20 lots per month round-turn saves $40/month — roughly $480/year, before counting the fact that lower per-trade costs directly improve your EA's expectancy. For an EA that trades frequently (scalpers especially), commission is one of the largest drags on long-run performance. Cutting it is the cheapest edge available.
If you already have a BlackBull account that wasn't opened through a partner link, you generally cannot retrofit the attribution — which is exactly why this step comes first.
Step 2 — Download and Install MT5
With your account opened, download the platform:
- Go to the BlackBull Markets MT5 download page — or your broker's platform page.
- Download the MT5 installer for your operating system (Windows native; macOS users follow the broker's Mac instructions).
- Run the installer — defaults are fine for almost everyone. Note the installation folder if you customize it.
- Launch MT5. On first run it will ask you to open or log in to an account.
Log in with the credentials from Step 1 — the account number and password you received when you opened through the partner link. Choose the correct server (live vs demo) from the dropdown. If the login fails, double-check the server name; a correct password on the wrong server is the classic first-day confusion.
Step 3 — Install the EA File
MT5 keeps EAs in a specific folder inside its data directory:
- In MT5, go to File → Open Data Folder. This opens the platform's data directory in your file explorer.
- Navigate to MQL5 → Experts.
- Paste your EA file (
.ex5or.mq5) into that folder. Many EAs ship in a subfolder — you can create a named subfolder (e.g.,Experts\DFamily) to keep things organized; MT5 shows subfolders in the Navigator. - Back in MT5, right-click the Navigator panel (Ctrl+N if hidden) and choose Refresh — or simply restart MT5.
- Your EA now appears under Expert Advisors in the Navigator.
If you received a .mq5 source file, compile it first: double-click it in the Navigator to open MetaEditor, press F7 (Compile), and confirm "0 errors" in the log. The compiled .ex5 is generated automatically beside the source and is what actually runs on the chart.
Step 4 — Enable Algo Trading and Attach the EA
An EA does nothing until automated trading is switched on — at two levels:
- Platform level: click the Algo Trading button on the MT5 toolbar until it turns green (or Tools → Options → Expert Advisors → tick "Allow Algo Trading").
- Chart level: drag the EA from the Navigator onto the chart of the symbol and timeframe it was designed for (the documentation tells you which — e.g., XAUUSD M5 or NAS100 M5). Wrong symbol/timeframe is one of the most common silent failures.
- In the dialog that opens, review the Inputs tab — risk settings, lot sizes, session windows, stop distances. Set them per the EA's documentation. Tick "Allow live trading" on the Common tab.
- Click OK.
Step 5 — Verify the EA Is Actually Running
Attaching an EA is not the same as running one. Verify all three:
- The chart icon: top-right of the chart, the EA's status icon should show enabled (a hat/smiley on most builds). A crossed circle means algo trading is off somewhere.
- The Experts log: open the Toolbox (Ctrl+T) → Experts tab. A properly built EA prints initialization lines — version, symbol, timeframe, inputs, status. Errors appear here in red.
- The Journal tab: platform-level messages ("Algo Trading enabled", EA loaded) appear here.
Then wait for the EA's trading window and watch its first cycle. A quality EA logs every decision — entries, skipped setups with reasons, trade management actions. Read those logs during your first week; they teach you how the EA thinks.
The Silent Mistakes That Stop EAs From Trading
When an EA "doesn't work," it's almost always one of these:
| Mistake | Symptom | Fix |
|---|---|---|
| Algo Trading disabled | EA attached, icon shows, zero trades ever | Green the toolbar button + tick "Allow live trading" in the EA dialog |
| Wrong symbol or timeframe | EA trades nothing, or trades incorrectly | Attach to the exact symbol/timeframe in the documentation |
| PC sleeps or MT5 closes | EA misses setups; management stops mid-trade | Run MT5 on a VPS — EAs only work while the platform is open |
| Inputs set too conservatively | EA logs "skipped: spread too high / risk = 0" | Review inputs against documentation; check broker spread at your session |
| Account opened without partner link | Higher commissions for the life of the account | Cannot be retrofitted — open correctly the first time (Step 1) |
| Trading outside the EA's window | No trades during off-hours — looks broken | Normal: session-based EAs only trade their designed window |
Running an EA 24/7: The VPS Question
A home PC works for testing, but live EA trading wants a machine that never sleeps: constant power, stable internet, and low latency to the broker's servers. Options:
- MT5 built-in VPS — one-click migration from inside the platform (right-click your account in the Navigator → Register a Virtual Server).
- Independent Windows VPS — any provider near your broker's data center; install MT5, log in, attach the EA, set the VPS to never sleep.
Whichever you choose: disable Windows sleep, enable MT5 auto-restart behavior, and check the Experts log daily for the first month.
Frequently Asked Questions
Can I install an EA on the MT5 mobile app?
No. Expert Advisors only run on the MT5 desktop platform (Windows, or macOS via your broker's Mac instructions). The mobile app can monitor trades an EA places from your desktop or VPS, but it cannot run EAs itself — a MetaQuotes platform limitation, not a broker restriction.
Do I need a VPS to run an EA?
Not to install or test — but for reliable live operation, yes. An EA only trades while MT5 is open and connected. Positions' broker-side stop losses survive a disconnect, but the EA's own management (break-even moves, trailing, new entries) stops the moment the platform closes. Most serious EA traders run a VPS.
How do I know my EA is running correctly?
Three checks: the Algo Trading toolbar button is green, the EA's chart icon shows enabled (not a crossed circle), and the Experts tab shows clean initialization messages. Good EAs also log every skipped setup with the reason — read that log in week one.
Why is my EA attached but not trading?
In order of likelihood: algo trading isn't enabled, the symbol/timeframe is wrong, the market is closed, the EA's session window hasn't opened, or an input is blocking trades (zero risk, tight spread filter). The Experts log tells you which.
Is MetaTrader 5 free?
Yes — the platform is free from your broker. Your trading costs are spreads and commissions on the account. BlackBull Markets provides MT5 free with any live or demo account.
Can I add a referral or IB code after opening my account?
Generally no — partner pricing and IB attribution are locked at account creation. Open through the partner link first, then download MT5 and log in with those credentials. Opening normally and adding a code afterwards means standard commissions forever.
Where do EA files go in MT5?
File → Open Data Folder → MQL5 → Experts. Paste the .ex5/.mq5 file, refresh the Navigator (or restart MT5), and the EA appears under Expert Advisors. Compile .mq5 sources in MetaEditor with F7 first.
Pair Your EA With Proper Risk Tools
Once your EA is running, the other half of automation is risk discipline on your manual trades. Our DFamily Risk Calculator EA ($34 one-time) sits on your MT5 chart and does the math every professional does before entry: drag the entry and stop lines to your levels, and it calculates the exact lot size for your chosen risk percentage in real time — plus risk-to-reward ratio, dollar risk, and pip distance. One-click break-even, trailing, and partial-close buttons keep trade management mechanical instead of emotional. It installs exactly like any EA in this guide — same folder, same two-minute process.
The Bottom Line
Installing an EA is the easy part — five steps, ten minutes. What separates traders who succeed with automation from those who quietly lose money is everything around the install: opening the account correctly (so costs stay low for the life of the account), testing on demo before going live, verifying the EA actually runs, reading its logs, and giving it a machine that never sleeps.
Do those things and your EA becomes what it's supposed to be: a disciplined, tireless executor of a proven strategy — while you focus on the decisions only a human can make.
Ready to start? Open your BlackBull Markets account through our partner link and save $1 per lot each way.
Open Your Account →