# MetaTrader 4 vs MetaTrader 5: Which One Should You Automate On?

AI agents: this is one page from QuantIDE's site, in Markdown.
Canonical HTML: https://www.quantide.io/guides/metatrader-4-vs-metatrader-5-which-to-automate-on
Full index of Markdown pages: https://www.quantide.io/llms.txt
Full text of recent articles: https://www.quantide.io/llms-full.txt

---
*2026-11-26 · QuantIDE · 6 min read*

MT5 is the right default for anything new — more timeframes, real-tick multi-currency testing, and netting accounts. MT4 still wins only when your broker or your Expert Advisor lives there. The deciding difference is position accounting, and it changes how your strategy behaves.

## In brief

- Build anything new on MT5; stay on MT4 only if your broker or your Expert Advisor lives there.
- The deciding difference is position accounting: MT4 is hedging-only, while MT5 offers hedging or netting — and a hedging strategy on a netting account behaves differently.
- MT5's Strategy Tester runs multi-currency tests on real ticks across all cores; MT4's is single-symbol, single-core, with modelled ticks.
- MQL4 and MQL5 are not compatible — moving an Expert Advisor means rewriting it.

## The short answer

If you are building something new, build it on MetaTrader 5. If your broker, your Expert Advisor, or your existing indicators only run on MetaTrader 4, stay where the code already works — and budget for the move later. The choice is not about which platform is better. It is about which one your automation can actually live on: an MT4 Expert Advisor will not run on MT5, an MT5 account will not open in the MT4 terminal, and the two platforms record your positions differently.

## MT4 vs MT5 at a glance

| | MetaTrader 4 | MetaTrader 5 |
| --- | --- | --- |
| Released | 2005 | 2010 |
| Status in 2026 | Maintained for security and stability; no new features | Actively developed |
| New broker licences | Stopped in January 2018 | Still issued |
| Markets | Forex and CFDs | Forex and CFDs, plus exchange-traded stocks and futures where the broker offers them |
| Chart timeframes | 9 | 21 |
| Built-in indicators | About 30 | 38 |
| Pending order types | 4 | 6 (adds buy stop limit and sell stop limit) |
| Position accounting | Hedging only | Hedging or netting, set by the broker per account |
| Programming language | MQL4 | MQL5 — not compatible with MQL4 |
| Strategy Tester | One symbol, one CPU core, ticks modelled from bar data | Multi-currency, all CPU cores, real tick history |
| Depth of Market | No | Yes |
| Economic calendar | No | Built in |

The table follows MetaQuotes' own product pages, as checked against independent comparisons updated in November 2026. The rows that matter for automation are the last five, not the first five. Timeframes and indicators are nice. Position accounting, language, and the tester decide what your strategy can do.

## The difference that changes your risk: hedging vs netting

MT4 accounts are hedging accounts: every fill opens its own position, so you can hold a buy and a sell on the same symbol at the same time. MT5 supports hedging too — but a broker can also set an MT5 account to netting, where all fills on one symbol merge into a single net position. That is how exchange markets work, and it changes the behaviour of any strategy that scales in, hedges, or runs two ideas on one symbol.

The same two fills, run through both books, make the point. Buy 1.0 lot at 1.08500, then sell 0.4 lot at 1.08700:

```python
fills = [("BUY", 1.0, 1.08500), ("SELL", 0.4, 1.08700)]

# Hedging (MT4, and MT5 hedging accounts): each fill is its own position
# -> [BUY 1.0 @ 1.08500, SELL 0.4 @ 1.08700]

# Netting (MT5 netting accounts): one merged position
# -> [BUY 0.6 @ 1.08367]  (volume-weighted average of the two fills)
```

I ran both books on those fills in Python. The hedging book holds two positions; the netting book holds one 0.6-lot long at a volume-weighted 1.08367. At a mark of 1.09000 both books show the same floating profit — $380.00 — because the economics are identical. Only the record differs. But the record is what your stops, your trailing logic, and your risk checks attach to: on a netting account the sell that was meant to hedge a separate idea instead shrinks the one open position, and its stop is gone. A strategy written for hedging that lands on a netting account does not lose money differently — it behaves differently, and that is worse, because it fails quietly.

The signal logic itself is identical on both platforms — the same 5/20 moving-average crossover run over 60 synthetic bars fires the same buy at bar 37. What changes is everything around the rules: how positions are recorded, how stops attach, and how the tester proves any of it.

## The tester gap is bigger than the feature gap

This is the row most automation builders should weigh heaviest. The MT4 Strategy Tester runs one symbol on one CPU core, with ticks modelled from bar data. The MT5 Strategy Tester runs multi-currency tests across all cores on real tick history, with forward testing and an optional cloud network. If you want to know whether a strategy survives across symbols, or whether its parameters hold up out of sample, MT5 gives you the tooling and MT4 makes you build it yourself.

That is why the [MT5 Strategy Tester guide](/guides/how-to-backtest-metatrader-5-strategy-tester) is written around MT5: a backtest on modelled ticks can hide exactly the execution effects — spreads widening, slippage on fills — that decide whether a live strategy works. Real ticks do not remove that risk, but they stop you from testing against a fantasy.

## The code lock-in: MQL4 is not MQL5

An Expert Advisor written in MQL4 compiles to an .ex4 file. One written in MQL5 compiles to .ex5. Neither terminal runs the other's files, and there is no official converter. Porting means rewriting: MQL4 works with orders, while MQL5 separates orders, deals, and positions, so the trading functions are different even where the languages look alike.

That lock-in is the real cost of choosing wrong. Rewriting a working Expert Advisor is a project, not an afternoon, and it is the reason many traders stay on MT4 long after MT5 became the better platform: their code, their indicators, and their broker's MT4 offering are all on one side. If that is your situation, MT4 is the right call today. Just price the rewrite into the plan, because the direction of travel is one-way — MetaQuotes stopped selling new MT4 licences to brokers in January 2018, and new features land on MT5 only.

Even "frozen" MT4 still moves under you. Build 1490, released 2 October 2026, changed how stop loss and take profit work in FIFO mode: when several positions are open on the same symbol, new stop and target values now apply to all of them. Terminals older than build 1440 have not been able to connect to broker servers since 1 July 2025. Staying on MT4 does not mean standing still; it means accepting maintenance updates that can change position-protection behaviour without a feature announcement.

## Where the platforms stand in November 2026

As of the 23 November 2026 platform check, the newest desktop builds in MetaQuotes' official release histories are still MT4 build 1490 (2 October) and MT5 build 6230 (24 September) — no new desktop build, language change, or tester-engine release in either history since. The freshest MetaTrader release in November is mobile: MetaTrader 5 for iPhone and iPad reached version 5.0.6300 on 19 November, a maintenance and performance update with no feature changelog. In other words, the platform picture is stable right now, and the choice between MT4 and MT5 is a structural one, not a race to the newest build.

## The verdict

Choose MT5 if you are starting fresh, if you trade exchange-traded products, if you need netting accounts, or if backtesting quality matters to you — and for a systematic strategy, it should. Choose MT4 if your broker only offers it, if the Expert Advisor you depend on exists only in MQL4, or if your whole workflow is built on MT4 indicators that would cost more to replace than the move is worth. Choose on compatibility first and features second: the platform your broker supports and your code is written for decides the question, and everything else is a tiebreaker.

And whichever platform you choose, the platform is not the automation. An Expert Advisor still has to be built, tested against real ticks, and run somewhere reliable — and a strategy that only runs inside one terminal is one broker outage away from going dark. That is the gap [QuantIDE](/for/metatrader) is built for: the same strategy logic, tested and run live on any broker, instead of locked to the terminal it was written in. If the automation you need is the business's own operations rather than a trading strategy, that build work is what [BlackShore Agency](https://www.blackshoreagency.com) does for Houston firms.

## What to do next

1. Check which platform your broker actually offers, and whether your account is hedging or netting — the broker sets it, not you.
2. If you are on MT4, list every Expert Advisor and indicator you depend on and price the MQL5 rewrite before you commit to a move.
3. Backtest on the MT5 Strategy Tester with real ticks before you trust any result — the [MT5 tester guide](/guides/how-to-backtest-metatrader-5-strategy-tester) walks through it, and the [Expert Advisors guide](/guides/expert-advisors-explained-automated-trading-mt4-mt5) covers how automated trading on MT4 and MT5 actually works.


## Frequently asked questions

### Can I run an MT4 Expert Advisor on MT5?

No. MT4 Expert Advisors are written in MQL4 and compile to .ex4 files; MT5 runs MQL5 and .ex5 files. There is no official converter, so moving an EA to MT5 means rewriting it.

### Does my broker decide whether I get MT4 or MT5?

Yes. MetaTrader is licensed to brokers, who run the servers and offer the accounts. Your broker decides which platform versions it offers, whether an MT5 account is hedging or netting, and which instruments are available.

### Is MetaTrader 4 being discontinued?

No end date has been announced as of November 2026. MetaQuotes no longer sells new MT4 licences and develops new features only for MT5, but it still releases MT4 builds — the latest is 1490, from October 2026 — and terminals older than build 1440 cannot connect since July 2025.


## Sources

- [MT4 vs MT5: Key Differences and Which One to Choose (ForexStore, updated Nov 9, 2026)](https://forexstore.com/metatrader-4-vs-metatrader-5)
- [MetaTrader Weekly — 23 November 2026 (latest desktop builds MT4 1490 / MT5 6230; MT5 iOS 5.0.6300)](https://www.thedisruptioncontinuum.channel/metatrader-weekly-2026-11-23/)
- [MetaTrader: Forex Platform Breakdown (LuxAlgo)](https://www.luxalgo.com/blog/metatrader-forex-platform-breakdown/)
- [MT4 vs MT5 for Automated Trading: Key Differences (PineConnector)](https://www.pineconnector.com/blogs/pico-blog/transitioning-from-metatrader-4-to-metatrader-5-what-traders-need-to-know)
- [MetaTrader 4 Guide: How to Use MT4 and Install an EA (TradeBotScore, Nov 2026 — build 1490 FIFO change; build 1440 cutoff)](https://tradebotscore.com/articles/metatrader-4-guide/)

*Educational content, not investment advice. Trading involves risk of loss.*