PipLedger
Today's forex newsNFP, CPI, FOMC and other high-impact eventsEconomic calendarCalendar →

Forex EA trading: how expert advisors and trading robots work

An EA, or expert advisor, is a program that trades for you inside MetaTrader. It reads the chart, decides and places orders by its rules, with no clicks from you. Here's how EAs and other forex robots work, how gold EAs differ, how to test one honestly before it touches money, what prop firms allow, and the claims that give a bot scam away.

By M. A. Horaira. Updated 4 October 2026. 8 minute read.

What an expert advisor is

MetaQuotes, the company behind MetaTrader, describes expert advisors as "mechanical trading systems that allow complete automation of analytical and trading activities". An EA is written in MQL5 (or MQL4 for MetaTrader 4), attached to a chart, and runs on every new price tick: it checks its conditions and opens, manages or closes trades on its own.

The kinds of MQL5 program you'll see in MetaTrader 5
ProgramWhat it doesTrades by itself?
Expert advisor (EA)Runs a full strategy: entries, exits, stops, position sizeYes
IndicatorDraws or calculates something on the chartNo
ScriptDoes one job once, such as closing all tradesOnly once, when you run it
Trade managerAn EA that only manages trades you open, such as moving a stop to break-evenPartly

"Forex robot", "forex bot" and "robot trading" all mean the same thing in practice: an automated strategy. On MetaTrader it's an EA; on other platforms it might be a cBot (cTrader) or a script connected through an API.

How EA trading works, step by step

  1. The terminal has to be running. An EA only trades while MetaTrader is open and connected, which is why many traders run it on a VPS, a computer in a data centre that stays on all the time.
  2. Algo trading must be switched on with the Algo Trading button in MT5, and allowed in the EA's settings.
  3. One EA per chart. Each instance trades the symbol and timeframe of its chart, and uses a "magic number" to tell its own trades apart from yours.
  4. Inputs set the behaviour: lot size or risk per trade, stop loss, take profit, trading hours, and filters such as spread limits.

Common kinds of EA

Gold expert advisors

Gold EAs are some of the most sold and most risky. XAUUSD can move tens of dollars on a busy day, its spread widens sharply at the daily rollover and around US data, and a standard lot is 100 ounces, so a $10 move is $1,000 per lot. Before you trust any gold EA, check:

Size the risk per trade the same way you would by hand, with the XAUUSD lot size calculator.

How to backtest an EA in MT5

MT5's Strategy Tester runs an EA over past prices. It has four ways to model those prices:

MetaTrader 5 Strategy Tester modelling modes
Modelling modeWhat it usesGood for
Every tick based on real ticksThe broker's actual recorded ticksThe most realistic test, especially for scalping and gold
Every tickTicks generated from minute barsMost strategies when real ticks aren't available
1 minute OHLCOnly the open, high, low and close of each minuteQuick checks of slower strategies
Open prices onlyThe open of each barFast optimisation of EAs that act only on new bars

Put the EA's win rate and average win and loss into the risk of ruin calculator to see how likely it is to hit a drawdown limit before it reaches a target.

Can you use an EA with a prop firm?

From each firm's own help pages on 4 October 2026. FTMO and FundedNext are on RBI's Alert List; see prop firms in India.
FirmEAsMain limits
FTMOAllowedWarns that a widely sold EA may already be traded by others; caps orders at 200 open and 2,000 positions a day, and may ask you to change a hyperactive EA
FundingPipsYour own EA onlyThird-party EAs only as trade or risk managers; bans HFT, latency arbitrage and VPS connections
The5ersAllowedYou must own the source code; bans tick scalping, arbitrage and HFT
FXIFYWith approval on challengesBanned on instant accounts
Alpha CapitalTrade managers onlyMT5 only, with approval; no fully automated EAs
Goat Funded TraderYour own EANo third-party or 'pass the challenge' EAs; VPS banned on most accounts bought from 12 August 2026
MavenNot allowedEAs aren't permitted on any platform
Blue GuardianAllowedYour own EA; no tick scalping, HFT or arbitrage bots
FundedNextAccounts under $50,000 onlyMT4 and MT5 only, with a paid add-on; no EAs built to pass challenges

Two rules run through all of them: no EA that many other traders also run, because identical trades look like group trading, and no strategies that exploit slow price feeds. Read the full rules for GFT, The5ers, Alpha Capital and Maven.

How to spot a forex robot scam

Regulators keep warning about the same pitches. The US CFTC says plainly that "AI technology can't predict the future or sudden market changes", and that "claims of high or guaranteed returns are red flags of fraud". The SEC, NASAA and FINRA give examples of scam lines such as "Our proprietary AI trading system can't lose!". Walk away if:

EAs and Indian traders

MetaTrader 4 and 5 appear on RBI's Alert List of unauthorised forex platforms, and trading forex with overseas brokers isn't allowed for residents, so running an EA on a live offshore MT5 account isn't a legal route from India. Automated trading on Indian exchanges is possible through your broker's API under SEBI's rules; algo trading in India explains how. For the platforms themselves, see forex trading platforms.

Quick answers

What is EA trading?

Trading with an expert advisor: a program in MetaTrader that opens, manages and closes trades on its own, following coded rules, while the terminal is running.

Do forex robots really work?

Some automated strategies make money over time, but most EAs sold online don't hold up in live trading, and many hide a grid or martingale that eventually blows the account. Test any EA yourself on real-tick data and a demo account before trusting it.

What is the best gold EA?

There's no honest answer to that, because results depend on the period, the broker's spreads and the risk settings. Judge a gold EA by its stop loss on every trade, its worst drawdown, and how it did on data it wasn't optimised on.

Can I use an EA in a prop firm challenge?

At many firms, yes, with limits: usually your own EA rather than one sold to many traders, and no HFT, tick scalping or arbitrage. Maven doesn't allow EAs at all, and Alpha Capital allows only trade managers.

How do I backtest an EA in MT5?

Open the Strategy Tester, choose the EA, symbol, period and the 'Every tick based on real ticks' mode, set realistic spread and commission, and keep part of the data back as a forward test.

Is EA trading legal in India?

Not on offshore forex brokers, which residents aren't allowed to use; MetaTrader 4 and 5 are on RBI's Alert List. Automated trading on NSE through a SEBI-registered broker's API is legal under SEBI's algo rules.

More guides

All 41 guides →

हिंदी में पढ़ें: Lot size kaise nikale?, Prop firm challenge kaise pass kare?, Gold trading kaise kare?, Forex trading kya hai, और India में यह legal है या नहीं?

Trading psychology

The habits that decide whether a good strategy makes money.

All 14 trading psychology guides

8 popular prop firms

Well-known firms for forex, gold and index traders that were still operating in 2026. Compare their rules before you buy a challenge.

If a link in this list is a referral link, PipLedger may earn a commission if you sign up, at no extra cost to you. This list is not a recommendation. Programs, prices and rules change often, so check each firm's own site, including its margin and drawdown rules, before you buy a challenge.