NuvoraSyncNuvoraSync
Educational guideMetaTrader9 min readUpdated June 2026

MetaTrader 4 vs MetaTrader 5

MetaTrader 4 and MetaTrader 5 look so similar at first glance that many traders assume MT5 is simply an upgrade. It is not — it is a separate platform with its own programming language, its own order model and its own Strategy Tester, and code written for one does not run on the other. This guide lays out the concrete differences — position accounting, order types, backtesting, timeframes and Depth of Market — and explains the trade-offs that keep both platforms in wide use.

Key takeaways

  • MT4 (2005) and MT5 (2010) are two separate platforms, not two versions — MT5 is a full rewrite, and MQL4 programs do not run on it.
  • MT5 supports two position accounting modes: netting, which merges all trades on a symbol into one position, and hedging, which keeps separate tickets like MT4.
  • MT5's Strategy Tester is multi-threaded, can test several symbols in one pass and can replay real tick history; MT4's tester models ticks from M1 bars on a single symbol.
  • MT5 offers 21 chart timeframes and 6 pending order types against MT4's 9 and 4, plus a built-in Depth of Market window.
  • MT4 persists largely because of broker availability and a huge body of MQL4-only expert advisors and indicators.
  • Neither platform is objectively better — the practical choice depends on the code you run, the markets you trade and the testing you need.

Two platforms, not two versions

MetaQuotes released MetaTrader 4 in 2005 and MetaTrader 5in 2010. Despite the names, MT5 is not an update of MT4 — it is a separate platform written from scratch, with a different internal architecture, a different programming language and a different way of representing positions. Both have been maintained in parallel ever since, which is why the question “MT4 or MT5?” still exists more than fifteen years later.

On the surface they are nearly identical: Market Watch on the left, Navigator below it, charts in the centre, the terminal panel with trades and history at the bottom. A trader who knows one can find their way around the other in minutes. The real differences sit underneath the interface — in how orders become positions, how strategies are tested, and what code the platform can run.

The differences at a glance

Feature comparison between MetaTrader 4 and MetaTrader 5
MetaTrader 4MetaTrader 5
Released20052010
Chart timeframes9 (M1 to MN1)21 (adds M2–M20, H2–H12)
Pending order types46 (adds stop-limit orders)
Position accountingHedging only — every trade is a separate ticketNetting or hedging, set per account
Strategy TesterOne symbol, one thread, ticks modeled from M1 barsMulti-threaded, multi-symbol, real-tick mode
Programming languageMQL4 (.ex4)MQL5 (.ex5) — not compatible
Depth of MarketNo usable order bookBuilt-in DOM window
Typical marketsForex and CFDsForex, CFDs, exchange-traded futures and stocks
Architecture32-bit64-bit, multi-threaded

Each of these rows hides practical detail. The three that change day-to-day trading the most are position accounting, the Strategy Tester and the language break between MQL4 and MQL5 — so those deserve a closer look.

Orders and positions: netting vs hedging

MT4 has exactly one position model: every order you send opens its own ticket, and tickets coexist independently. You can be long 0.5 lots and short 0.3 lots of EUR/USD at the same time. MT5 launched with a different model — netting — in which a symbol can only ever have one aggregate position, and in 2016 it gained an optional hedging mode that restores MT4-style separate tickets. The broker fixes the mode per account; you cannot switch it per trade.

Netting on MT5: four orders, one position

  • Buy 0.50 lots EUR/USD at 1.0850 → position: long 0.50 at 1.0850.
  • Buy 0.50 more at 1.0860 → still one position: long 1.00 at average price 1.0855.
  • Sell 0.30 → the position shrinks to long 0.70 (0.30 lots are closed).
  • Sell 1.00 → the position flips: you are now short 0.30.
  • On MT4 — or MT5 in hedging mode — the same four orders would sit as four separate tickets, including a simultaneous buy and sell.

MT5 also adds two pending order types on top of MT4’s four: buy stop limit and sell stop limit, which place a limit order once a trigger price trades. For most manual forex traders this is a minor difference; for automated systems the netting/hedging distinction is the one that breaks assumptions, because an EA written for separate tickets behaves differently when its trades merge into one position.

The Strategy Tester is the biggest practical gap

For anyone testing expert advisors, the tester is where the platforms diverge most. MT4’s Strategy Tester runs one symbol on one CPU thread and generates its ticks by interpolating M1 bars — the familiar “every tick” model behind the 90% modelling-quality figure. It is fast to use but the price path inside each bar is a simulation.

MT5’s tester is multi-threaded, spreads optimization passes across all CPU cores (and optional remote agents), can test one EA across multiple symbols in a single pass, and can replay real tick history where the broker provides it. In practice that means portfolio and correlation strategies can only be tested honestly on MT5, and tick-sensitive strategies get far more realistic fills. How the modelling modes differ — and what they do to results — is covered in the backtest guide.

Charts, timeframes and Depth of Market

MT4 offers 9 timeframes, from M1 to monthly. MT5 offers 21, filling the gaps with charts such as M2, M10, H2 and H12. That matters less for discretionary chart-watching than for bar-based EAs and reviews that want, say, a two-hour rhythm without resampling data by hand. On both platforms candle times follow the broker’s server clock, not yours — the free server time converter translates between the two.

MT5 also ships a Depth of Market(DOM) window, because it was designed to connect to exchange-traded markets — futures and stocks — where a central order book exists. On an over-the-counter forex feed the DOM usually shows only the broker’s own liquidity, often a handful of levels or none at all, so its usefulness depends entirely on the instrument. MT4 has no comparable order book.

MQL4 vs MQL5: why EAs are not portable

The deepest break between the platforms is the language. MQL5 changed the event model — MQL4’s start() became a family of handlers such as OnTick, OnInit and OnTrade— and replaced the trade API. Where MT4’s single OrderSend call covers everything, MT5 separates trade requests, executed deals and resulting positions into distinct entities, so every piece of order-management code has to be rewritten. Compiled .ex4 files simply do not load in MT5.

A 2014 update brought MQL4 syntax much closer to MQL5, but the APIs remain incompatible: porting an EA is a development project, not a recompile. The concepts do carry over — for example, tagging trades with a magic number to tell strategies apart works the same way on both platforms.

Why both platforms are still everywhere

Why MT4 persists

Broker availability

Many brokers keep running MT4 servers alongside MT5 because a large share of their clients still trades on it.

Two decades of MQL4 code

Thousands of EAs, indicators and scripts exist only as MQL4 source or .ex4 files. Changing platform means porting or replacing all of them.

Smaller and familiar

MT4 does one job — forex and CFD trading — with fewer panels and settings, which suits traders who never need exchange features.

Stable conventions

Tickets, history formats and reports have barely changed in years, so workflows and third-party tools built around MT4 keep working.

Why MT5 is growing

A far stronger tester

Real ticks, multi-symbol passes and optimization parallelized across every CPU core — capabilities MT4's tester cannot match.

More instruments

Exchange-traded futures and stocks alongside forex and CFDs, with a real order book where the market provides one.

Performance

A 64-bit, multi-threaded application that handles more charts, more symbols and longer histories without strain.

Where development happens

MetaQuotes ships new features for MT5; MT4 receives maintenance rather than new capability.

A trade-off, not a verdict

Neither platform is objectively better, and the useful question is not which one “wins” but which constraints apply to you. If your trading depends on an MQL4-only EA, the cost of porting it is the real decision. If you need multi-symbol or real-tick testing, only MT5 provides it. If you trade exchange-listed instruments, MT4 was never built for them. Most differences are switching costs in one direction and missing features in the other.

Whichever platform you run, both record the same essentials — orders, deals, balance and equity — so your own account history can be journaled and analyzed the same way from MT4 and MT5 alike.

Frequently asked

Is MetaTrader 5 just a newer version of MetaTrader 4?

No. MT5 is a separate platform built from scratch, with a different architecture, a different programming language (MQL5 instead of MQL4) and a different position model. MetaQuotes has maintained both in parallel since 2010, which is why the two coexist rather than one replacing the other.

Can I run my MT4 expert advisor on MT5?

Not directly. Compiled .ex4 files do not load in MT5, and MQL4 source code does not compile under MQL5 because the trade functions and event model are different. The strategy logic can be carried over, but the order-management code has to be rewritten — porting is a development task, not a recompile.

What is the difference between netting and hedging in MT5?

In netting mode, all trades on one symbol merge into a single position — buying while short reduces or flips the position. In hedging mode, every trade is a separate ticket, so you can hold buy and sell positions on the same symbol at once, which is how MT4 has always worked.

Why do many brokers still offer MT4?

Because a large share of traders still depends on it — mostly through MQL4-only expert advisors, indicators and workflows built up over many years. Running MT4 alongside MT5 lets brokers serve both groups, so the older platform remains widely available.

Related guides

Related free tools

Free, no login required.

Related NuvoraSync features

Sources & further reading

Want to analyze your own MetaTrader account data automatically?

NuvoraSync is a read-only MetaTrader journal and analytics workspace. Connect MT4 or MT5 once and your trades, drawdown and performance update on their own — no manual entry, no signals, just your own data.

This article is for educational purposes only. It does not provide trading signals, investment advice, financial recommendations, broker recommendations or trade execution.