Blog

What Is an Expert Advisor (EA) and How Does It Work?

An Expert Advisor is the automated trading robot that runs inside MetaTrader. Here is what an EA actually is, why it needs a VPS, and how to choose one for prop firm accounts.

By PropVPS Editorial7 min read
On this page

What is an Expert Advisor?

An Expert Advisor (EA) is a small program written in MetaQuotes Language (MQL4 for MetaTrader 4, MQL5 for MetaTrader 5) that runs inside the trading platform and places trades autonomously based on coded rules. It is the MetaTrader equivalent of an algorithmic trading bot.

An EA can do anything a manual trader can do: open and close positions, modify stops, place pending orders, send alerts, run on multiple timeframes. The difference is that an EA does it without you. Once attached to a chart it will keep trading the rules you (or whoever wrote it) coded, 24/5 while the market is open.

How an EA actually works inside MetaTrader

When you attach an EA to a chart, MetaTrader runs the EA’s code on every new price tick. The EA reads the price, checks its conditions, and either does nothing or sends an order to the broker. That cycle repeats every tick — typically 5–50 times per minute on a busy forex pair.

MQL4 EAs are single-threaded: every chart with an EA attached uses one CPU core, and a slow EA can lag the chart’s tick processing. MQL5 EAs are multi-threaded and use the platform’s resources more efficiently. This is why MT5 EAs scale better to high-frequency strategies than MT4 EAs.

Why an EA needs a VPS

Because an EA only runs when MetaTrader is open and connected to the broker. If your home computer sleeps, restarts for Windows updates, loses Wi-Fi, or otherwise interrupts MetaTrader, the EA stops trading. Worse — if it stops while you have an open position, the position remains open at the broker, but the EA cannot manage it (no trailing stops, no break-even moves, no exits) until you reconnect.

A VPS keeps MetaTrader running continuously. The EA fires on every tick, manages every open position, and never misses an opportunity because the underlying computer was off. For any serious EA user, a VPS is the default infrastructure.

EAs for prop firm accounts

Most prop firms allow EAs but impose two restrictions. First, no copy-trading between accounts unless explicitly authorised — meaning you cannot run an EA that mirrors trades from one prop account to another. Second, no strategies that abuse internal pricing or execution differences ("HFT abuse", "latency arbitrage") — this rule targets EAs that look for delays in the broker’s pricing pipeline.

The common compliant EA categories are: trend-following bots, grid bots within reasonable risk limits, news bots that trade specific scheduled releases, and tape-reading scalpers. The non-compliant category is anything labelled "HFT" or "latency arbitrage" that exploits the broker’s feed rather than the market.

How to choose an EA

Two checks. First, the EA’s backtest must use real tick data (not 1-minute bars), at least 5 years of history, multiple pairs, and Strategy Tester’s "Every tick based on real ticks" mode. Modeling quality below 90% means the backtest is unreliable.

Second, the EA must be runnable in your live conditions. Live forward-test for at least 30 days on a demo account hosted on the same VPS you intend to use in production. If the forward-test results match the backtest, the EA is probably safe to live; if they diverge, the backtest was over-fit.

References & sources

  1. [1]Expert Advisors are MetaQuotes Language programs that execute inside MetaTrader and run on every price tick. MetaTrader 4 — Expert Advisors
  2. [2]MQL5 supports multi-threaded execution and 64-bit memory addressing. MQL5 documentation
FAQ

Frequently Asked Questions

Got questions? We've got answers. If you can't find what you're looking for, our support team is here to help 24/7.

Do I need to know coding to use an Expert Advisor?

No — most retail EAs are sold or rented as compiled .ex4 / .ex5 files that you attach to a chart. You configure parameters (lot size, stop loss in pips, max simultaneous positions) through the EA’s settings dialog. Coding skill is only required if you want to modify or write your own EA from scratch.

Are Expert Advisors profitable?

Most public EAs are not — survivorship bias plus over-fit backtests make them look better than they trade live. Profitable EAs do exist, but they are typically privately developed and not publicly sold. The realistic expectation when buying a commercial EA is "small consistent edge if you tune the parameters", not "guaranteed profit".

Can I run multiple EAs on the same VPS?

Yes — every PropVPS plan supports unlimited MetaTrader installations and unlimited EAs per terminal, limited only by CPU cores and RAM. The Algo Scalper plan (8 cores / 8GB) typically handles 15–25 EAs across multiple terminals.

Ready for Zero-Glitch Execution?

Join prop traders who trust PropVPS for institutional-grade infrastructure. Intel Xeon powered. Setup in 5 minutes.

7-day money-back guarantee • Powered by Intel Xeon • 99.99% Uptime