Home / Blog / Forex basics
Forex basics

What is a forex EA? How trading bots work, MT4 vs MT5 and VPS explained

The four basics every new bot user should understand before installing anything.

What is a forex EA? How trading bots work, MT4 vs MT5 and VPS explained

What is an EA?

An Expert Advisor (EA) is a trading program that runs inside MetaTrader. It reads prices, applies fixed rules and can open, manage and close trades without you clicking anything. "Forex bot", "trading robot" and "EA" usually mean the same thing.

How a forex bot works

Your PC or VPSMT5 desktop running 24/5
→
MT5 terminalAlgo Trading switched on
→
Expert AdvisorRules + your settings
→
Broker serverExecutes the orders
The four parts that must work together for a bot to trade
  1. Rules: the strategy coded into the EA, such as entry conditions, lot size, take-profit and stop-loss.
  2. Settings: the inputs you choose: risk, lot size, trading hours, maximum layers.
  3. Terminal: MT5 must be open, connected and allowed to trade.
  4. Broker: your broker executes the orders the EA sends.

A bot removes emotion and fatigue from execution. It does not remove market risk, and it will follow its rules even when conditions change.

MT4 vs MT5: what is different?

MT4MT5
EA language & filesMQL4, .ex4MQL5, .ex5 (not compatible with MT4)
Timeframes921
Strategy TesterSingle-threadedMulti-threaded, real-tick testing
Extras—Economic calendar, depth of market, more order types

The practical point: an MT5 EA only runs on MT5, and an MT4 EA only on MT4. BMR bots are built for MT5.

What is a forex VPS for?

A VPS (virtual private server) is a computer in a data centre that stays on 24/7. You install MT5 there, so your bot keeps running when your own computer is off, asleep or offline. A VPS close to the broker's server also reduces execution delay.

  • Choose Windows, with enough memory for MT5 (2 GB or more is comfortable for one terminal).
  • Pick a location near your broker's servers.
  • Connect via Remote Desktop, install MT5 and follow our installation guide.

New to trading bots?

Request our free beginner guide: setup checklist, risk basics and the questions to ask before buying a bot.

Get the beginner guide

FAQ

Can I use an MT4 EA on MT5?

No. MT4 EAs (.ex4) and MT5 EAs (.ex5) are written in different languages and are not compatible.

Do I need a VPS to run a forex bot?

Not strictly, but the EA only works while MT5 is running. A VPS keeps it online 24/5 without leaving your computer on.

Related articles

This article is educational and is not investment advice. Trading and automated trading carry a high level of risk. Bots can lose money and past performance does not guarantee future results.