Expert Advisor(EA)
A trading bot that runs inside MetaTrader 4 or 5 and executes orders automatically based on coded rules.
An Expert Advisor (EA) is an algorithmic trading program written in MQL4 (for MT4) or MQL5 (for MT5) that automates strategy execution — order entry, position management, stop-loss/take-profit, trailing stops, and exits — without manual intervention. EAs run inside the MetaTrader terminal and can call indicators, custom DLLs, web services, and broker server functions. Production-grade EAs include risk management, broker filters (spread / slippage / commission), session filters, news pause, and detailed logging. A typical custom EA from Viprasol is delivered with source code (.mq5), compiled binary (.ex5), input documentation, and a forward-tested verification report.
Example
A multi-symbol momentum EA on MT5 that scales position size by recent ATR.
Related terms
MetaQuotes Language 5 — the object-oriented programming language used to build Expert Advisors, indicators, and scripts on MetaTrader 5.
MetaQuotes' multi-asset trading platform — supports forex, CFDs, stocks, futures, and crypto. Hosts EAs written in MQL5.
MetaQuotes Language 4 — the legacy procedural language for building Expert Advisors and indicators on MetaTrader 4.
TradingView's domain-specific language for writing custom indicators, screeners, and strategies on the TradingView charting platform.
Read more on the blog
Need this built into a real product?
Viprasol Tech ships production code for everything defined here — MT4/MT5 EAs, AI agents, B2B SaaS, AWS architecture.
Send a brief →