Forex EA: what an Expert Advisor is and how it trades

A plain-English guide to Forex EAs — how they run inside MetaTrader 4 and 5, what they can and cannot do, and how to judge one before you trust it with money.

By the GBP-SCALPING EA/AI team · Updated

A Forex EA (Expert Advisor) is a program that runs inside MetaTrader 4 or MetaTrader 5 and places trades for you. It reads prices tick by tick, applies a fixed set of rules, and opens, manages and closes orders without anyone clicking a button. The name comes from MetaQuotes, the company behind MetaTrader, which calls every automated trading program an “Expert Advisor”.

If you have heard the terms Forex robot, trading bot or automated trading system, they usually mean the same thing: an EA attached to a chart.

How a Forex EA works

Every EA follows the same loop. MetaTrader sends it each new price. The EA checks its conditions — an indicator crossing, a price level breaking, a time window opening, a spread falling below a limit — and when the conditions are met it sends an order to your broker. After that it manages the open trade: moving the stop-loss, taking partial profit, or closing the position when its exit rule fires.

Because the rules are written in code (MQL4 for MT4, MQL5 for MT5), the EA applies them exactly the same way every time. It does not hesitate after a loss, does not chase a move it missed, and does not get tired at 3 a.m.

What you need to run an EA

  • A MetaTrader terminal — MT4 or MT5, downloaded from your broker.
  • A broker account — demo first, live later. The EA trades on whatever account the terminal is logged into.
  • The EA file — an .ex4 (MT4) or .ex5 (MT5) file placed in the MQL4/Experts or MQL5/Experts folder.
  • Algo Trading switched on — the “AutoTrading” / “Algo Trading” button in the toolbar must be green.
  • A machine that stays on — if your computer sleeps, the EA sleeps. Most traders run EAs on a VPS so the terminal stays connected 24 hours a day, five days a week.

Types of Forex EA

Scalping EAs

Scalpers take many small trades, often on the M1–M15 charts, aiming for a few pips each. They are sensitive to spread, commission and execution speed, so broker choice matters more than with any other type. GBP scalping is a common variant because pound pairs move enough during the London session to cover costs.

Trend-following EAs

These wait for a directional move and ride it, usually with wider stops and fewer trades. They lose in choppy markets and make their money in a handful of strong runs.

Grid and martingale EAs

Grid systems open orders at fixed intervals; martingale systems increase lot size after a loss. Both can show smooth equity curves for months and then lose most of an account in one move. Treat any EA that averages down without a hard stop-loss with great caution.

News and breakout EAs

These trade sharp moves around scheduled releases or range breaks. Slippage during news can be large, and many brokers widen spreads heavily at those moments.

What a Forex EA can and cannot do

An EA can remove emotion from execution, trade every session without a break, react in milliseconds and apply risk rules — lot size, maximum exposure, daily loss limits — with no exceptions.

An EA cannot predict the market, and it cannot adapt to conditions it was never programmed for. A strategy that worked in a trending year can struggle in a ranging one. No EA guarantees profit, and anyone who promises fixed monthly returns is selling hope, not software.

How to judge a Forex EA before you buy

  1. Look for live accounts, not only backtests. A backtest is written with hindsight. A live account with a published investor (read-only) password shows real fills, real spreads and real drawdown.
  2. Check the maximum drawdown. Profit means little without knowing how deep the account fell to earn it.
  3. Ask how it handles losing trades. Is there a hard stop-loss on every trade? Does it add to losing positions?
  4. Test on demo first. Run it for at least a few weeks with your own broker before going live.
  5. Start small. Risk a fraction of your account per trade — see how much to risk per trade.

Our full checklist is in how to choose the best Forex EA.

Where GBP-SCALPING EA/AI fits

GBP-SCALPING EA/AI is a Forex EA for MetaTrader 4 (MT5 where the distributed build includes it) that works on all Forex pairs and is tuned for the 15-minute chart. You set the risk per trade and the maximum exposure; spread and volatility filters keep it out of poor prices. Rather than asking you to trust a backtest, we publish live accounts with their investor passwords so you can log in and read every trade yourself.

See the live accounts View pricing

Frequently asked questions

Is a Forex EA legal?

Yes. Automated trading is permitted by MetaTrader and by most brokers. A few brokers restrict certain strategies (for example very short-hold scalping or latency arbitrage), so read your broker’s terms.

Do Forex EAs really work?

Some do, for some periods, under some broker conditions. None work all the time. Judge an EA on live, verifiable results and on how it behaves when it loses — not on marketing screenshots.

Can I run an EA on MT5 and MT4?

Only if the developer ships both versions. An MT4 .ex4 file will not run in MT5 and vice versa.

Do I need a VPS?

Not to test, but for live trading a VPS is strongly recommended. Read VPS basics for EA traders.

Educational content only — not financial advice. Trading Forex on margin carries a high level of risk and may not be suitable for all investors. Read the full risk disclosure.

More Forex guides

Automated Forex trading, explained

How Forex robots and Expert Advisors trade on your behalf, how to set one up on MetaTrader step by step, and the mistakes that cost automated traders most.