The Short Version

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:

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:

⚠️ Partner pricing is locked in at account creation. If you open your broker account normally and try to add a referral or IB code afterwards, it typically does not attach. You'll pay standard commissions for the life of the account, and the referring partner is never credited. Always open the account through the partner link first — then download the platform and log in with those credentials.

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:

Official Partner

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 Way
BlackBull Markets — open your MT5 account through the DFamily partner link

Disclosure: 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:

  1. Go to the BlackBull Markets MT5 download page — or your broker's platform page.
  2. Download the MT5 installer for your operating system (Windows native; macOS users follow the broker's Mac instructions).
  3. Run the installer — defaults are fine for almost everyone. Note the installation folder if you customize it.
  4. 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.

Test on demo first. Before an EA touches a live account, run it on a demo account for at least 1–2 weeks. You're verifying two things: that the EA behaves as documented, and that you can operate it correctly — installs, inputs, logs, restarts. Every minute of demo testing is free; every minute of live "testing" costs real money.

Step 3 — Install the EA File

MT5 keeps EAs in a specific folder inside its data directory:

  1. In MT5, go to File → Open Data Folder. This opens the platform's data directory in your file explorer.
  2. Navigate to MQL5 → Experts.
  3. Paste your EA file (.ex5 or .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.
  4. Back in MT5, right-click the Navigator panel (Ctrl+N if hidden) and choose Refresh — or simply restart MT5.
  5. 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:

  1. Platform level: click the Algo Trading button on the MT5 toolbar until it turns green (or Tools → Options → Expert Advisors → tick "Allow Algo Trading").
  2. 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.
  3. 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.
  4. Click OK.

Step 5 — Verify the EA Is Actually Running

Attaching an EA is not the same as running one. Verify all three:

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:

MistakeSymptomFix
Algo Trading disabledEA attached, icon shows, zero trades everGreen the toolbar button + tick "Allow live trading" in the EA dialog
Wrong symbol or timeframeEA trades nothing, or trades incorrectlyAttach to the exact symbol/timeframe in the documentation
PC sleeps or MT5 closesEA misses setups; management stops mid-tradeRun MT5 on a VPS — EAs only work while the platform is open
Inputs set too conservativelyEA logs "skipped: spread too high / risk = 0"Review inputs against documentation; check broker spread at your session
Account opened without partner linkHigher commissions for the life of the accountCannot be retrofitted — open correctly the first time (Step 1)
Trading outside the EA's windowNo trades during off-hours — looks brokenNormal: 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:

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 →
Published by the DFamily Trading team, September 2026. DFamily Trading is a BlackBull Markets introducing partner; accounts opened through our links receive the partner commission discount described above and we may earn a referral commission at no additional cost to you. Trading forex, indices, and commodities involves substantial risk of loss. Automated trading does not guarantee profits — always test on a demo account first and never risk capital you cannot afford to lose.