Beginners exploring MT5 soon meet the term “EA” — in forum posts, in videos, and in advertisements promising automated income. This article explains what the term actually names: a program that follows written rules to place and manage trades inside MetaTrader, nothing more and nothing less. By the end you will know what an EA does mechanically, where it sits in MT5, what it cannot do, and how it differs from the similar tools on other platforms.
Key points
- An Expert Advisor (EA) is a program written in the MQL5 language that runs inside the MetaTrader 5 terminal and can analyse prices and place, modify and close trades automatically, following the rules written into it.
- An EA does not judge the way a person does. It executes its programmed logic exactly — including when market conditions have changed and the logic no longer fits. That logic can include statistical or machine-learning models, but the model inside is the one it was built with: it does not keep learning on your account unless the program was explicitly written to update it — and even then, the updating is itself part of the program, fixed by its code, and guarantees nothing about the quality of its decisions. The quality of an EA is the quality of its rules, plus how honestly those rules were tested.
- In MT5, one EA attaches to one chart and manages trades according to its programming; the terminal it runs in must be running — and connected, for the EA to receive prices and send orders — and the platform’s Algo Trading switch must be on.
- EAs are not the same as indicators (which only draw and calculate), scripts (which run once and finish), or signals (which copy another trader). cTrader’s equivalent programs are called cBots and are written in C#; the two are not interchangeable.
- Because an EA can place real orders with real money, the first place any EA belongs is a demo account, and the first question about any EA is not “how much does it make?” but “what exactly does it do?”
Start trading with Exness
You can open an account here:
In plain words
An Expert Advisor is simply a program: someone wrote rules in MQL5, the language built into MetaTrader 5, and the program watches prices and can open, modify and close trades by itself whenever its conditions occur — no clicking, and no judgement either, because it follows its rules exactly even when market conditions have changed and the rules no longer fit. It runs only while its terminal is running and connected, under the terminal’s Algo Trading switch, attached to one chart, and it stops the moment the terminal stops — although stop loss and take profit orders already placed stay with the broker. It is not an indicator (which only draws and cannot trade), not a script (which runs once and finishes), not a signal service (which copies another trader), and not the same thing as cTrader’s cBots, which are written in C# and cannot run on MT5. Automating a rule does not improve the rule — a method that loses money by hand still loses when a program applies it without hesitation — so whatever the source, written, free, bundled or bought, the first question about any EA is not what it earns but what, exactly, it does.
1. The definition, in mechanical terms
An Expert Advisor is a program. Someone wrote a set of instructions in MQL5, the programming language built into MetaTrader: watch these prices or this indicator; when these conditions are met, open a trade of this size with this stop loss; when those conditions are met, close it. The compiled program — a file with the extension .ex5 — is loaded into the terminal, attached to a chart, and from that moment it responds to the events it is programmed to handle — price updates, timer events and others — and acts when its conditions occur, without a person clicking anything.
Three consequences follow from that structure, and they explain most of what beginners find confusing:
- The EA has no opinion about the market. It does not know whether conditions are “normal” or “unusual”. If its rule says buy when the fast moving average crosses above the slow one, it buys on that cross in a trend, in a range, and in the middle of a news spike — unless its rules also contain conditions that exclude those situations.
- The EA’s behaviour is completely determined by its rules and its settings. Two people running the same EA with different settings — a different lot size, a different stop, a different trading-hours window — are running two different risk profiles under one name. “The EA made money for someone” says nothing about what it will do under your settings, on your broker’s prices, in the next market regime.
- The EA stops when the terminal stops. An EA is not a service running somewhere in the cloud. Close MT5 or shut down the computer, and the EA does nothing at all. Lose the connection, and it can no longer receive fresh prices or send trade requests, so for trading purposes it is stopped, whatever local calculations continue. Stop loss and take profit orders already placed sit with the broker and may still be triggered, subject to the broker’s execution conditions — their execution price is not guaranteed. This is why the question of keeping the terminal running — including on a VPS — is part of running an EA at all, and it is covered in the next article.
2. Where the EA sits in MT5
Inside the terminal, the EA is one of four kinds of MQL5 program, and beginners regularly mix them up:
| Program | What it does | Runs when |
|---|---|---|
| Expert Advisor (EA) | Analyses and can trade automatically, continuously | Attached to a chart, while the terminal runs |
| Indicator | Calculates and draws on the chart (a moving average, RSI) | Attached to a chart — but it cannot place orders |
| Script | Performs a task once — a single action or a sequence of actions (for example, close all open trades) — and then finishes | Started by the user, runs once |
| Service | Runs in the background of the terminal, not tied to a chart | Started once, runs independently of charts |
An EA attaches to a single chart. Most EAs work on that chart’s symbol and timeframe, though an EA’s code can also be written to analyse or trade other symbols — the author’s instructions state what a given EA does. A standard MT5 chart can carry one EA at a time; running three EAs on the same symbol normally means three charts (or three terminals). Each EA can stamp the trades it opens with an identifier called a magic number, and its code uses that identifier when selecting the trades it manages — which is also what lets you, reading the history, tell its trades apart from your manual trades and from another EA’s trades on the same account, provided the EA’s code uses the identifier consistently.
The master switch is the Algo Trading button on the terminal’s toolbar. With it off, EAs are loaded but not allowed to trade. The terminal also keeps a log (the Experts and Journal tabs) of what each EA did and what errors it met — the first place to look when an EA behaves unexpectedly, and a habit worth building from the first demo run.
3. What an EA is not
- Not a guarantee. Automating a rule does not improve the rule. A method that loses money when traded by hand does not become profitable by being automated — and because the EA never hesitates, never skips a signal and never takes a day off, it applies the losing rule with complete consistency. Results can also differ from manual trading in either direction, because execution, timing and behaviour differ.
- Not artificial intelligence in the everyday sense. Most EAs sold and shared are fixed rule sets: the same conditions produce the same actions, and nothing in the program updates itself from experience. (Programs that use statistical or machine-learning models exist; the model inside is the one it was built with — it does not retrain itself on your account unless the program was explicitly written to do so, and any such mechanism is itself part of the fixed code. Its presence guarantees nothing about the quality of its decisions.) The glossary’s definition says it plainly: an EA executes its rules exactly, including when the rules are wrong for current conditions.
- Not supervision-free. An EA removes the clicking, not the responsibility. Someone still has to check that it is running, that its settings match the account size, that the broker’s conditions have not changed, and that its results still resemble its tests. Article 3 of this batch is about that checking.
- Not portable across platforms. An EA is an MQL5 program for MetaTrader. cTrader’s equivalent is a cBot, written in C#, and neither runs on the other platform — the cTrader article in this blog’s platform batch sets out the comparison in full.
4. Where EAs come from
Beginners meet EAs from four sources, and the source matters for the checks in Article 3:
- Written by the user (or by a programmer for the user), in the MetaEditor program that ships with MT5. The intended rules are known because they were specified — though the delivered program still has to be reviewed and tested to confirm it implements them.
- Free EAs shared in the MQL5 community’s Code Base and in forums. The rules may or may not be visible (some are shared as source code, some only as a compiled file), and quality ranges from careful work to abandoned experiments.
- The built-in examples that ship with MT5 itself — simple teaching programs that demonstrate how an EA is built. They are demonstrations, not finished trading systems.
- Commercial EAs, sold through the MQL5 Market or on vendors’ own websites, for a price or a subscription. This is the source with the loudest claims and the one Article 3 examines in detail.
In every case the same first question applies: what, exactly, does it do? An EA whose rules cannot be described — what makes it enter, what makes it exit, how it sizes trades, what it does when trades lose — is not a tool but a black box, and a black box on a live account means someone else’s unverifiable claims are placing your orders.
Summary — what to take away
- An EA is a program that executes written trading rules inside MT5: it responds to price updates and other events and can open, modify and close trades without clicks, exactly as programmed.
- It exercises no human judgement; it runs its programmed logic, fixed as compiled, only while its terminal runs (and is connected, for prices and orders), under the Algo Trading switch, one EA per chart.
- It is not an indicator, a script, a signal service or a cBot, and it is not a guarantee of anything — automation does not rescue a losing rule; it applies the rule with complete consistency.
- Whatever the source — written, free, bundled or bought — the first question is what the EA does, in rules you can state.
Next reads
- How to Run Your First EA: Setup, Demo Testing, VPS and Parameters (this batch, Article 2) — the operating procedures this article deliberately left out.
- cTrader Basics: What It Is, How It Differs from MT5, and Your First Steps — the platform whose automation (cBots, in C#) is the counterpart of the EA.
- Forex Glossary for Beginners: The Terms Behind Every Article on This Blog — the shared vocabulary, including the one-paragraph definition of an EA this article expands.
FAQ
Q: Is an EA the same as “auto trading”?
A: Almost — auto trading (algorithmic trading) is the general activity, and an EA is the MetaTrader program that does it. In MT5’s settings the permission itself is labelled “algorithmic trading”, and the toolbar button reads “Algo Trading”.
Q: Can an EA trade while my computer is off?
A: Not if the EA runs in the terminal on your computer — that terminal must be running and connected. If the EA runs on a VPS, your own computer can be off: the terminal on the VPS is the one that must stay running. Traders who need an EA to run around the clock keep the terminal on a continuously running computer or on a VPS — Article 2 explains both routes.
Q: Do I need to know how to program to use an EA?
A: Not to run one — loading an EA and setting its inputs does not require writing code. But the less you can inspect or have explained about its rules, the more you depend on the seller’s or author’s claims, which is why Article 3’s checks matter most for non-programmers.
Q: Can an EA lose more than my account holds?
A: An EA trades under the same account rules as manual trading: the broker’s margin and stop out rules apply to its positions exactly as to yours, and the same account-type and jurisdiction caveats about losses exceeding deposits apply. An EA that increases position sizes after losses (a martingale design) can reach the stop out level very quickly — which is a property of its rules, and a reason to read the rules before the results.
Sources: MetaQuotes, MetaTrader 5 terminal help — Expert Advisors; algorithmic trading; the Algo Trading switch — and MQL5 documentation — the MQL5 program types: Expert Advisors, indicators, scripts, services; magic numbers — checked 21 November 2026.
This article is information only and is not investment advice. Forex and CFD trading involves a substantial risk of loss, including the possibility of losing more than you deposited with some account types and jurisdictions. Practise on a demo account until every procedure in this batch is familiar. Make sure you fully understand how leveraged products work before you consider trading with real money.
Disclosure: Broker Cost Check is reader-supported. If you open an account through a partner link on this page and trade, Exness pays us a share of the revenue from your trading activity under its partner programme. You pay us nothing: our payment comes from Exness, out of that revenue. How we make money: How Broker Cost Check works — method and how we make money

Leave a Reply