What Is an MT5 Expert Advisor?
Understand what MT5 Expert Advisors are, how they're built, what they can and can't do, and how to evaluate one before using it.
An Expert Advisor (EA) is a program that runs inside the MetaTrader 5 platform and can analyze charts, generate trading signals, and place, modify, or close orders automatically. It's written in MQL5, MetaTrader's proprietary C++-like programming language, and attaches directly to a chart in a trader's terminal.
EAs are the mechanism through which algorithmic trading strategies actually run on MT5 — every strategy in WaiTrade's marketplace is ultimately delivered as, or generates, an EA.
What an Expert Advisor can do
A typical EA has three core functions defined in its code: OnInit (setup logic that runs once when the EA is attached to a chart), OnTick (the logic that runs every time a new price quote arrives, where the actual trading decisions happen), and OnDeinit (cleanup logic that runs when the EA is removed).
Inside OnTick, an EA can read indicator values, check account and position information, calculate position sizes based on risk parameters, and send trade orders through MT5's trading API — all without any manual input.
What an Expert Advisor can't do
An EA can only act on the logic it was given. It has no awareness of news it wasn't specifically coded to check for, no judgment beyond its programmed rules, and no ability to recognize that market conditions have fundamentally changed unless that possibility was built into its logic.
This is why an EA's backtest — how it would have performed on historical data — is informative but not predictive. Markets evolve, and a strategy tuned to one volatility regime or trend structure can perform very differently when conditions shift.
How to evaluate an EA before using it
Look past the headline return number. Check the maximum drawdown relative to that return, the Sharpe and Sortino ratios (risk-adjusted, not just raw performance), the number of trades in the backtest (a handful of trades produces statistically meaningless results), and whether the backtest modeled realistic spread, commission, and slippage.
Check what market and session the EA was designed for — a strategy built for low-volatility Asian session gold trading will behave very differently if run on a high-volatility crypto pair during a news event. WaiTrade surfaces all of this — asset, timeframe, session, risk classification, and a full backtest breakdown — on every algorithm's detail page.
Frequently asked questions
Can I run more than one EA at the same time?
Yes — most traders run several EAs across different charts or accounts. It's worth checking correlation between them, since running multiple strategies on the same asset and timeframe can concentrate risk rather than diversify it.
Do I need to know MQL5 to use an EA?
No. Using a pre-built EA from a marketplace like WaiTrade requires no programming — you review its documented strategy and performance, then attach it to your MT5 terminal. Building a custom EA from scratch does require MQL5 knowledge, which is what WaiTrade's Bot Builder is designed to remove as a barrier for Elite plan members.