تخطَّ إلى المحتوى الرئيسي

Expert Advisor

Advanced

المستشار الخبير

Also known as: EA, MetaTrader Robot

Algorithmic Trading & AI
Last updated

Definition reviewed before publishing

Our content team writes and reviews every definition before it is published, and revisits it when the way a term is used in the markets changes. The date shows the latest change to this term.

Last updated on 9 November 2026

An Expert Advisor, abbreviated EA, is an automated trading program that runs on the MetaTrader 4 and MetaTrader 5 platforms, written in their MQL4 or MQL5 language, and can analyze the market and open, manage and close trades automatically according to programmed rules, or simply send alerts to the trader. It is one of the most widespread forms of automated trading among retail traders in the currency and CFD markets.

Quick summary

• An automated trading program running on MetaTrader in MQL. • Trades, manages trades or handles risk automatically. • Needs careful examination to avoid hidden dangerous strategies.

How it works

An Expert Advisor runs within the MetaTrader platform, where it is attached to a chart window for a particular asset and the automated trading option is enabled; it then monitors price movement with every tick and executes orders when its conditions are met. Expert Advisors vary by function: some trade fully according to a strategy, such as trend following, range trading or scalping; some only help manage trades, such as automatically moving the stop-loss to breakeven, activating a trailing stop or closing part of a trade at a certain target; and some handle risk management, such as calculating position size automatically. The platform provides a Strategy Tester to test the EA on historical data and optimize its parameters. Expert Advisors can be obtained in several ways: coding them oneself, commissioning a developer, or buying or renting them from the platform's market or other sites. Because an EA needs the platform to stay open and connected constantly, many use a virtual private server running around the clock. The main risks include dangerous strategies such as doubling size after a loss or grids without a stop-loss, which may produce steady profits for a while and then wipe out the account all at once; excessive parameter optimization on historical data; unrealistic marketing promises; and differing execution conditions between brokers.

Example

A trader buys an Expert Advisor showing a smooth profit curve. After examining the code and testing, they discover it doubles the size after every loss without a stop-loss. They test it on data from a volatile period, and it shows it would have lost the entire account within a week.

Where you will see it

On the MetaTrader 4 and 5 platforms at forex and CFD brokers, and in the platform's market and traders' forums.

Why it matters

Its practical value lies in understanding the most widespread automation tool among retail traders, evaluating it consciously, and avoiding hidden dangerous strategies.

How it is calculated

It is not calculated, but it is evaluated in the Strategy Tester with metrics: profit factor, maximum relative drawdown = largest decline from a peak ÷ peak value × 100, and expected payoff per trade.

How it differs from similar terms

• Trading robot: a general term for any automated trading program; Expert Advisor is its name in MetaTrader. • Custom indicator: displays analysis or signals on the chart without executing trades. • Script: a program that performs a single task when run, not running continuously like an EA.

Common mistakes

Judging an EA by a smooth profit curve without examining its logic, especially size-doubling strategies without a stop-loss. Test on volatile periods and try it on a demo account.

Related terms