What Is an MT5 Expert Advisor?
An MT5 Expert Advisor (EA) is a program written in MQL5 that runs inside MetaTrader 5 and automates trading decisions — entries, exits, stop loss management, trailing stops, and position sizing. Once attached to a chart with Algo Trading enabled, it runs 24/5 without human input.
EAs are how professional traders scale. Instead of watching charts for hours, they encode the strategy once and let the terminal execute perfectly every time.
What EAs Are Good At
- Removing emotion — no fear, no greed, no revenge trades.
- Speed — reacting to price in milliseconds.
- Consistency — the 500th trade is executed exactly like the first.
- 24/5 coverage — trading news, Asian sessions, weekends off.
What EAs Are Bad At
- Adapting to regime shifts — an EA tuned for ranging markets bleeds in trends.
- News judgment — most EAs blow up on NFP or CPI without a news filter.
- Overfitting — a backtest that shows 500% returns often collapses in live trading.
This is why most beginners should not start by building or buying an EA.
EA vs Trade Copier: What's the Difference?
An EA makes its own decisions based on code. A trade copier mirrors trades from a master account (usually run by an experienced trader) to your account in real time.
For 95% of retail traders, a copier is safer:
- The strategy is executed by a human trader with context.
- No overfitting risk — real trades, not backtests.
- You inherit the trader's judgment on news, regime, and risk.
Our Aurex Trade Copier mirrors XAUUSDm trades from our master account with configurable lot ratios. Setup guide is in MT5 Setup for Trade Copier.
When to Use an EA Instead
Build or buy an EA when:
- Your strategy is fully mechanical (no discretion).
- You've forward-tested it manually for 6+ months.
- You have the coding skill (or budget) to add a news filter and drawdown circuit breaker.
Setting Up Any EA in MT5
- Open MT5 → Tools → Options → Expert Advisors → enable Allow Algo Trading and Allow WebRequest for required URLs.
- Copy the
.ex5file toMQL5/Experts/. - Restart MT5, drag the EA onto your XAUUSDm chart.
- Configure inputs (lot size, risk %, magic number).
- Confirm the Algo Trading button is green.
Detailed WebRequest URL requirements for our systems are in the Aurex Trade Copier technical setup.
Position Sizing Inside an EA
Every EA needs a proper sizing function — same math as our XAUUSD lot size calculator guide. Hardcoded lots (0.10 every time) is the #1 reason EAs blow accounts.
Final Word
EAs are powerful but unforgiving. If you're new, start with a copier, learn how gold behaves, and only move to full automation once you understand exactly what you're automating.
Quick answer
MT5 Expert Advisors let you automate entries, exits, and risk — 24/5. Here's what they actually do, when to use them, and why most beginners should start with a trade copier first.