Skip to main content
Country: United States

Choose Your Country Of Residence

We use this to show brokers that accept residents of your country. We detected United States from your connection.

United States
See How We Verify

Expert Advisor (EA)

A program that runs inside MetaTrader, reads prices and places, changes or closes orders by rules written in code. It trades without a click once switched on.

What Is An Expert Advisor?

An expert advisor (EA) is a program that runs inside MetaTrader, reads prices and places, changes or closes orders by rules written in code. It trades without a click once switched on.

MetaTrader 5 describes Expert Advisors as mechanical trading systems that automate analysis and trading, running on a chart. Unlike a custom indicator, an EA can trade. Disabling automated trading stops the EA from trading but does not remove it.

What Does An EA Cost Before It Makes A Pip?

An EA that makes 12 trades a day at 0.10 lot and a 1.0-pip spread pays $12 a day in spread, which is $252 over 21 trading days. The figures are illustrative.

At $1 a pip for 0.10 lot, one trade costs 1.0 × $1 = $1 in spread. Twelve trades cost $12. Over 21 days that is $252, before commission or swap.

The EA needs gross gains above $252 a month just to break even, on a position that small. A system that looked profitable on a test without costs can lose money live.

A bug that opens a trade on every price update can multiply the position, since the program does exactly what the code says. The terminal must also stay running for the EA to run, which is why some traders use a remote server.

How Does An EA Differ From An Indicator Or A Script?

An indicator draws on the chart and cannot trade. A script runs once and stops, though it can also trade. An EA keeps running while its chart is open and can send orders. Check what a product is before you attach it.

What Does A Coding Error Cost?

Say a bug opens 50 positions of 0.10 lot where one was meant. The exposure is 5 lots instead of 0.1. The spread alone is 50 × $1 = $50 on opening, and a 20-pip move against the account costs 50 × $1 × 20 = $1,000. The figures are assumed.

On a $25,000 account that is $1,000 ÷ $25,000 = 4% of the balance from one fault. The 5 lots would need about $18,000 of margin at 30:1 and EUR/USD at 1.08. A cap on total lots in the code, and a daily loss limit, stop that kind of run. Check also that the account allows automated trading and any limit on how often orders may be sent.

Automation does not change the base rate: the majority of retail CFD accounts lose money, whether the orders come from your clicks or a program.

Sources