Education
MT4 vs MT5: What Changes When You Run an Expert Advisor
SmartEA Research, 2026-10-30, updated 2026-11-12, 7 min read

Short answer: MetaTrader 5 (MT5) is the newer of the two MetaQuotes platforms and the better choice for most new traders and for automated trading: its Strategy Tester is multi-threaded, multi-currency and can test on real tick history, it has 21 timeframes instead of 9, six pending order types instead of four, and accounts can use hedging or netting. For anyone running an Expert Advisor, the most important difference is simpler: MT4 and MT5 EAs are not interchangeable. An MT4 EA (.ex4) does not run in MT5 and an MT5 EA (.ex5) does not run in MT4, so the EA you want to use decides the platform.
Both platforms are still widely offered by brokers. MetaQuotes stopped selling MT4 licenses to new brokers in early 2018, so some newer brokers offer only MT5, and most new development has gone into MT5 since. This guide covers the differences that matter when an EA trades for you.
What the two platforms have in common
MT4 and MT5 look and feel alike. Both are free to download from your broker, run on Windows (and through apps on Mac, iOS and Android), show the same kind of charts and support Expert Advisors, custom indicators and scripts. In both, your broker runs the trading server and decides which symbols, spreads and account types you get. If you can use one, you will find your way around the other in an hour.
EAs are not interchangeable
An EA is a compiled program. MT4 programs are written in MQL4 and compiled to .ex4 files; MT5 programs are written in MQL5 and compiled to .ex5 files. The two languages handle orders and positions in different ways, so an MT4 EA cannot simply be recompiled for MT5: a programmer has to port it, and the ported version has to be tested again, because its results can differ.
- Buying an EA: check which platform it is built for before you open an account. A seller may offer both versions, or only one.
- Moving platforms: if your favourite EA exists only for MT4, MT4 is your platform until there is an MT5 version.
- Our EAs: all three SmartEA gold EAs are MetaTrader 5 only. There are no MT4 versions.
Installing an EA works almost the same way on both: copy the file into the Experts folder, attach it to a chart and allow algorithmic trading. Our guide on how to install and use an Expert Advisor in MT5 walks through it step by step.
Hedging and netting accounts
This is the difference that surprises EA users most often.
- MT4 keeps every trade as a separate position. You can hold several buys and sells on the same symbol at once.
- MT5 supports two accounting modes, chosen by the broker when the account is opened. On a hedging account it works like MT4: separate positions, including opposite ones on the same symbol. On a netting account there is only one position per symbol, and every new trade adds to it, reduces it or reverses it.
Many EAs, including grid and basket EAs and EAs that run buy and sell strategies side by side, need a hedging account. Our EAs do not start on a netting account. When you open an MT5 account for an EA, make sure it is a hedging account; you can see it in the account details in MT5 and in the journal when the EA starts.
The Strategy Tester
For automated trading this is where MT5 is clearly ahead. MetaQuotes' own comparison lists the MT4 tester as single-threaded and the MT5 tester as multi-threaded, multi-currency and able to use real ticks:
- Real ticks: MT5 can replay the broker's recorded tick history ("Every tick based on real ticks"), including the real spread. MT4 models ticks from bar data, which can make EAs that react to fast moves look better or worse than they really are.
- Multi-currency: an MT5 EA can trade or read several symbols in one test. MT4 tests one symbol at a time.
- Speed: MT5 spreads optimizations over all CPU cores and, if you choose, over remote agents and the MQL5 Cloud Network.
Better testing does not make an EA better, but it makes it harder for a weak EA to look good. Our guide on backtesting an EA in the MT5 Strategy Tester shows which settings to use and how to read the report.
Charts, orders and tools
According to MetaQuotes' comparison of the two platforms:
- Timeframes: 21 in MT5 (including M2, M10, H2, H8 and others) versus 9 in MT4.
- Pending order types: 6 in MT5 versus 4 in MT4. MT5 adds Buy Stop Limit and Sell Stop Limit orders.
- Built-in technical indicators: 38 in MT5 versus 30 in MT4; graphical objects 44 versus 31.
- Depth of Market and an economic calendar are built into MT5. In MT4 you need add-ons or an external calendar.
For an EA user, the extra timeframes and order types matter only if the EA uses them. The built-in calendar matters more: MT5 EAs can read it directly, which is one way an EA can pause around news. Our news filter article explains how our EAs handle high-impact news.
Markets and brokers
MT4 was designed for forex and CFDs. MT5 was designed for those and for exchange-traded instruments such as stocks and futures, where a broker offers them. For gold (XAUUSD) and major currency pairs, both platforms trade the same instrument at the same broker.
Broker support is the practical question. Most large brokers offer both platforms, usually as separate accounts with separate account numbers. Some newer brokers offer only MT5. If you already have an MT4 account and want to run an MT5 EA, you will normally open an additional MT5 account rather than switch the existing one.
Which one should you choose?
- You are starting now: MT5. It is where development happens and the tester is far better.
- You want to run a specific EA: the platform the EA is built for. Check before you open an account.
- You trade manually with an MT4 setup you know well: there is no urgent reason to move, as long as your broker keeps supporting it. Try MT5 on a demo account first.
- You run several EAs: you can run MT4 and MT5 side by side on the same computer or VPS, each with its own account.
Moving an EA setup from MT4 to MT5
- Open an MT5 account at your broker and confirm it is a hedging account if your EA needs one.
- Check the symbol name (gold may be XAUUSD, XAUUSD.r or similar) and the contract specification, because lot sizes and point values can differ between account types.
- Get the MT5 (.ex5) version of the EA and install it.
- Backtest it in the MT5 Strategy Tester with real ticks and run it on a demo account before it trades real money. Results can differ from the MT4 version.
- Update your VPS, license and monitoring to the new account number.
If you are choosing a new EA at the same time, our checklist for the best forex EA and our guide to choosing a gold EA for MT5 cover what to check before you buy.
Frequently asked questions
Is MT5 better than MT4?
For automated trading, mostly yes: a better Strategy Tester with real ticks, more timeframes and order types, and hedging or netting accounts. For manual forex trading the difference is smaller, and many traders still use MT4 out of habit.
Can an MT4 EA run on MT5?
No. MT4 EAs are .ex4 files written in MQL4 and do not run in MT5. You need an MT5 (.ex5) version of the EA.
Can I convert an MT4 EA to MT5?
Only with the source code and a programmer, because MQL4 and MQL5 handle orders differently. The converted EA has to be tested again; its results may not match the MT4 version.
Can I use the same trading account on MT4 and MT5?
Usually not. Brokers normally run MT4 and MT5 on separate servers with separate accounts, so you open a new account for the other platform.
Is MT4 being discontinued?
MetaQuotes stopped selling MT4 licenses to new brokers in early 2018, and it periodically ends support for old terminal builds, so keep your terminal updated. Brokers that already have MT4 continue to offer it.
Do SmartEA EAs work on MT4?
No. Smart Rider Gold, Smart Archer Gold and Smart Striker Gold are MetaTrader 5 EAs and need a hedging MT5 account.
Platform features change with new MetaTrader builds and differ between brokers; check your broker's current offer. Trading forex, gold and CFDs with leverage carries a high risk of loss; only trade money you can afford to lose.
Follow SmartEA Insider on Telegram
SmartEA Insider: results of our own live accounts, new versions and release notes. No trade signals.


