Guide for brokers
MT4 to MT5 migration for brokers: what moves, what must be rebuilt, and how to cut over
MetaTrader 5 can import a broker's MetaTrader 4 accounts with their open trades and history. What it cannot import is everything built around MT4: plugins, the bridge connection, CRM and reporting integrations, and clients' Expert Advisors. This guide covers both halves.
The short answer
A broker migrates from MetaTrader 4 to MetaTrader 5 in two parts. The first is the import: MetaTrader 5 can transfer MT4 accounts automatically, with their open and pending orders and complete trading history. The second is the rebuild: MT4 server plugins, Manager API applications, the liquidity bridge connection, reports, and Expert Advisors do not run on MT5, and have to be rewritten or replaced.
The import is the short part. The schedule and the risk sit in the rebuild, and in running both platforms side by side until the last client group has moved.
Why brokers are migrating now
- No new MT4 licences. MetaQuotes stopped selling new MetaTrader 4 licences in 2018, so new brokerages start on MetaTrader 5 or another platform.
- Old builds are cut off. Since 1 July 2025, desktop terminals older than MetaTrader 4 build 1440 and MetaTrader 5 build 4755 can no longer connect to broker servers.
- Trading volume has moved. MT5 passed MT4 in trading volume in the first quarter of 2025, with 54.2% of the two platforms' combined volume. By the third quarter it carried 62% of retail CFD volume on MetaQuotes platforms, according to Finance Magnates Intelligence.
MT4 is not disappearing overnight: many brokers still offer it to clients who rely on it. That is why most migrations are gradual. New accounts open on MT5, and existing groups move in waves.
Sources: MetaQuotes — support for older MT4 and MT5 builds ends 1 July 2025 · LeapRate — MetaQuotes stops selling MT4 licences (Jan 2018) · Finance Magnates — MT5 overtakes MT4 in trading volume (Apr 2025) · Finance Magnates — MT5 extends its lead over MT4 (Oct 2025)
MT4 vs MT5 for a broker: what is different on the server
MetaQuotes publishes its own comparison of the two platforms for brokers. These are the rows that matter in a migration:
| MetaTrader 5 | MetaTrader 4 | |
|---|---|---|
| Server architecture | Distributed | Single |
| Account groups | Unlimited | 512 |
| Symbols | Unlimited | 1,024 |
| Position accounting | Netting and hedging | Hedging only |
| Order fill policies | Fill or Kill, Immediate or Cancel, Return | Fill or Kill |
| Pending order types | 6 | 4 |
| Balance operation types | Balance, credit, correction, charge, bonus, commission, agent, interest | Balance, credit |
| Depth of Market | Yes | No |
| Built-in order routing | Yes | No |
| Gateway API | Yes | No |
| Manager API languages | C++, ASP.NET, PHP | C++ |
| Real-time SQL export | Native (MySQL, MSSQL, Oracle) | Limited (MySQL) |
| Markets | Forex, futures, options, stocks, bonds | Forex |
Three of these change daily operations more than the rest:
- Orders, deals, and positions. MT4 keeps one order record for the life of a trade. MT5 separates the instruction (an order), each execution (a deal), and the resulting exposure (a position), and one order can produce several deals. Every report, rebate, and reconciliation written against MT4's order history has to be rewritten against MT5's deals.
- Netting or hedging. MT5 supports both position accounting systems, and the broker sets one per account. MT4 clients are used to hedging — several positions on one symbol, including opposite ones — so keep migrated retail groups on hedging unless you mean to change how clients trade.
- Fill policies. Every MT5 order carries a fill policy, and each symbol's settings decide which ones it accepts. A terminal, bridge, or Expert Advisor that sends the wrong one gets return code 10030 (invalid order filling type) until the two agree. The troubleshooting guide covers it.
Sources: MetaQuotes — comparison of MetaTrader 5 and MetaTrader 4 for brokers · MetaTrader 5 Help — orders, deals, positions, netting and hedging
What MetaQuotes' import carries over
Since MetaTrader 5 build 1325 (April 2016), brokers can transfer MT4 accounts to MT5 automatically, including open and pending orders and the complete trading history. On the first login to a migrated account, the client enters the password used in MetaTrader 4 and sets a new one.
One detail catches back offices out: ticket numbers change. MetaQuotes notes that order and position tickets are not preserved, because one MT4 history record can become up to four history operations in MT5. Anything that stores MT4 ticket numbers — the CRM, IB rebate records, dispute files, external reports — needs a mapping from old tickets to new ones, prepared before the import rather than after it.
Sources: MetaQuotes — MetaTrader 5 build 1325 release notes (22 Apr 2016)
What has to be rebuilt for MT5
| Built for MT4 | Why it doesn't carry over | On MT5 |
|---|---|---|
| Server plugins | They are built against the MT4 server; MT5 has its own Server API | Rewritten as MT5 server plugins in C++ |
| Manager API applications | CRM sync, risk tools, and reporting use MT4's data model; MT5's has orders, deals, and positions | Rebuilt on the MT5 Manager API or Web API |
| Bridge and liquidity connection | MT4 has no Gateway API, so its bridge is an add-on built for the MT4 server | Connected through the MT5 Gateway API, or your bridge provider's MT5 gateway |
| Expert Advisors and indicators | MQL4 programs have to be adapted to MQL5 | Clients need MQL5 versions; the broker's own tools are ported |
| Reports, rebates, reconciliation | Written against MT4's single order record | Rewritten against MT5 deals |
This is the work on our MT5 plugin and Manager API and MT5 gateway pages. The MT5 API guide explains which API each rebuilt piece belongs on.
A migration plan, step by step
- Inventory everything that touches MT4 — plugins, Manager API applications, the bridge, price feeds, reports, IB and rebate calculations, and anything that stores a ticket number.
- Choose the MT5 set-up — your own server licence or a white label, hedging or netting per group, and the execution modes you will offer. On a white label, confirm with the server owner that your plugins and gateway are allowed.
- Map groups and symbols — names and suffixes, contract sizes, margin and swap settings, commissions, trading sessions, and fill policies.
- Rebuild the integrations on MT5's APIs — server plugins, the CRM and back-office connection, and liquidity connectivity.
- Rehearse the import on a staging server with a copy of production, and reconcile every account: balance, credit, open positions, pending orders, and history totals.
- Run both platforms in parallel — open new accounts on MT5 first, then move existing groups in waves, smallest and simplest first.
- Cut over each wave while the market is closed — stop trading on the MT4 group, run the final import, reconcile, then open MT5.
- Tell clients early — where to download MT5, how the first login and new password work, that MT4 Expert Advisors need MQL5 versions, and that ticket numbers in their history will change.
- Keep MT4 readable for statements and disputes until your record-keeping obligations are met, then retire it.
What goes wrong, and how to catch it
| What goes wrong | How it shows up | How to catch it |
|---|---|---|
| Fill policy doesn't match the symbol settings | Orders rejected with return code 10030 | Test every symbol group from the terminal, the bridge, and an Expert Advisor before go-live |
| Symbol mapping errors | Wrong margin, swap, or profit on migrated positions | Reconcile equity and margin per account after the rehearsal import |
| Reports still read orders, not deals | Volumes and rebates counted twice, or missing | Compare MT4 and MT5 reports for the same accounts and period during the parallel run |
| Ticket numbers changed | Support and IB disputes can't find a trade | Store the old-to-new ticket mapping in the CRM |
| Hedging or netting set wrong on a group | Positions merge, or client strategies stop working | Check the accounting mode of every group before the first client logs in |
How long an MT4 to MT5 migration takes
The import itself is the short part. The timeline is set by how much has to be rebuilt for MT5 — each plugin, integration, and report — and by how long you choose to run both platforms in parallel. As a reference point, a single focused component, such as a CRM integration or a set of server plugins, typically takes 2–4 months.
FAQ
Can a broker still get a MetaTrader 4 licence?
Not a new one. MetaQuotes stopped selling new MetaTrader 4 licences in 2018, so new brokerages start on MetaTrader 5 or an alternative such as cTrader, DXtrade, or Match-Trader. Brokers that already run MT4 keep operating it, and since 1 July 2025 their clients' desktop terminals need MT4 build 1440 or later to connect.
Does MetaTrader 5 import MT4 accounts and trading history?
Yes. Since MetaTrader 5 build 1325, a broker can transfer MT4 accounts automatically, with their open and pending orders and complete trading history. Clients log in once with their MT4 password and set a new one. Order and position ticket numbers are not preserved, because one MT4 history record can become up to four operations in MT5.
Do MT4 plugins and Expert Advisors work on MT5?
No. MT4 server plugins and Manager API applications are built for MT4 and have to be rewritten for MT5's Server and Manager APIs. Expert Advisors and indicators written in MQL4 have to be adapted to MQL5 before they run in MetaTrader 5.
Should migrated accounts use hedging or netting in MT5?
MetaTrader 5 supports both, and the broker sets the mode per account. MT4 only has hedging — several positions on one symbol, including opposite ones — so brokers normally keep migrated retail forex and CFD groups on hedging. Netting, with one position per symbol, is the model exchange-traded instruments use.
Does a broker have to move every client to MT5 at once?
No. Most brokers run MT4 and MT5 side by side: new accounts open on MT5, existing groups move in waves while the market is closed, and MT4 stays readable for statements until it is retired. A back office that talks to both platforms makes the parallel period manageable.
How long does an MT4 to MT5 migration take?
The account import is the short part. The timeline depends on how many plugins, integrations, and reports have to be rebuilt for MT5, and on how long both platforms run in parallel. A single focused component, such as a CRM integration or a set of server plugins, typically takes 2–4 months.