What is Expert Advisor (EA)?

Updated November 28, 2026

An expert advisor is a program on MetaTrader that can analyze the market and place trades automatically.

Want Your Money Working While You Sleep?

Get our free guide to letting AI trade for you, 5 minutes a day.


No spam. Unsubscribe anytime.

An EA is basically a trading bot built for MetaTrader 4 or 5. You attach it to a chart and it follows its rules.

It can open, manage and close trades while you're away. Some just alert you, others trade fully on their own.

EAs don't get tired or emotional, which is nice. But a bad EA will lose money just as calmly, so test on demo first.

In practice, an expert advisor is a file you add to the Experts folder in MetaTrader, then attach to a chart. MT4 uses files ending in ex4 and MT5 uses files ending in ex5. You enable algo trading on the platform, check the settings panel, and the program runs each time a new price tick arrives. It needs the platform open and online, which is why many users run it on a VPS.

Here is a worked example. An EA has a setting of 1% risk with a 50 pip stop on a $2,000 account. That is $20 at risk on each trade. $20 divided by 50 pips gives $0.40 per pip, so the EA opens 0.04 lots on EURUSD. If it runs 20 trades a month with a 1 pip spread, the spread alone costs about $8 at that size.

A common beginner mistake is installing an EA on a live account the day it arrives, with default settings. Default settings may suit a far bigger balance. Another mistake is buying on the strength of a perfect looking backtest, which can come from fitting the rules too closely to old prices. Test on demo, then with tiny sizes, and read how the EA handles stops and open trades.

An expert advisor is one type of trading bot, built specifically for MetaTrader, and MT4 and MT5 versions are not interchangeable without being rewritten. Backtesting in the Strategy Tester shows how its rules would have behaved on past data, and forward testing checks them in current markets. A VPS keeps it running while your own machine is off. Check the slippage and spread your broker gives you too.

Example

You install an EA on the XAUUSD chart and it places trades whenever its signals line up.

Primary Sources For This TopicWe check facts on this topic against these primary sources. See how we research.

Questions people ask

Do EAs need my computer on?

Yes, unless you run MetaTrader on a VPS that stays on 24/7.

Are paid EAs better than free ones?

Not always. Check live results, not marketing.

How do I know if my EA is running?

On MT4 a smiley face appears in the top right corner of the chart. On MT5 a small icon shows the same. Algo trading must also be switched on in the toolbar.

Can I use more than one EA at once?

Yes, on separate charts, but check they use different magic numbers and watch combined risk. Two bots trading the same pair can double your exposure.

Work out your own number with the quit your job calculator, or take the passive income quiz.

All guides · Answers · Glossary · Compare · Web stories · Wallpapers · Privacy · Terms