Built for the MT5 position model

The MT5 Trade Copier that understands netting and hedging accounts

MetaTrader 5 does not track trades the way MT4 does. It has positions and deals, netting accounts and hedging accounts, and partial fills that arrive in pieces. A copier that ignores those differences will drift out of sync. CopySync was written around them.

Netting and hedging accounts Partial fills handled Native sockets, no DLL
MT5 · live
M
Master · MT5 hedging
XAUUSD · buy 1.00 → position #48213
source
1
Follower · MT5 netting
GOLD · net position adjusted +0.50
21 ms
2
Follower · MT5 hedging
XAUUSD.m · buy 0.30 → own position
26 ms
3
Follower · MT4
XAUUSD · buy 0.10 → ticket #77401
33 ms

Netting or hedging: the difference that breaks most copiers

When you open an MT5 account, the broker decides whether it runs in hedging mode or netting mode, and most traders never notice which they got until something behaves oddly. For a trade copier the distinction is not cosmetic — it changes what "copy this trade" even means.

On a hedging account, every order creates its own position. Buy one lot of EURUSD, then buy another, and you hold two separate positions that can be closed independently. This is how MT4 always worked, and it is what most retail forex brokers offer.

On a netting account — the model used on exchanges, and the default at some brokers — you hold exactly one position per symbol. Buy one lot, then buy another, and you do not have two positions; you have one position of two lots, at a blended average price. Sell 1.5 lots and that position shrinks to 0.5. Sell three and it flips to short.

Why this matters when copying

Imagine a hedging master that opens two separate 1-lot buys and later closes only the first. A naive copier tells a netting follower "close position #1" — but the follower has no position #1. It has a single 2-lot position. The instruction is meaningless, and depending on how the copier fails, the follower either does nothing or closes the entire 2 lots.

CopySync treats the follower's account model as a first-class property. Copying to a netting account means translating the master's per-position instructions into the net change the follower needs: close one of two 1-lot buys becomes "reduce the net long by one lot". Copying from netting to hedging works the other way round. You can mix both models under one master, and we have a dedicated page on netting account copying if you want the detail.

Positions, orders and deals

MT5 splits into three concepts what MT4 called a ticket. Each one has to be handled differently.

01

The order

Your instruction to the broker. It may be filled instantly, partially, or not at all. An order that has been sent is not yet a trade, and copying at this stage means copying an intention that might never happen.

02

The deal

An actual execution. One order can produce several deals — this is what a partial fill is. A 5-lot order filled as 3 + 2 generates two deals, and a copier that reacts to the first and ignores the second leaves the follower short by two lots.

03

The position

What you actually hold after the deals settle. This is the state a follower has to match. CopySync reconciles against the position, not the order, which is why a partial fill on the master ends up as the same exposure on the follower.

How the MT5 connection is built

MetaTrader 5 gave MQL5 something MQL4 never had: real network sockets. The CopySync expert advisor for MT5 uses the platform's native SocketCreate(), which has two practical consequences for you.

  • No DLL imports. The MT4 build needs an external socket library and the "Allow DLL imports" checkbox. The MT5 build does not. Nothing outside MetaTrader is loaded, which matters if you run on a prop firm's machine or a locked-down VPS where DLLs are blocked.
  • One persistent connection. Orders are pushed down a socket that is already open, rather than polled. There is no waiting for the next tick or the next timer to notice something happened.

You still have to allow the server address in MetaTrader's WebRequest/URL list — that is a deliberate MetaTrader safety feature and applies to every network-capable EA, not just ours. It is one checkbox and one line, and the setup guide walks through it.

Symbol names on MT5

MT5 brokers are, if anything, more creative with symbol names than MT4 brokers, because many also offer exchange-traded instruments alongside CFDs. The same gold contract might be XAUUSD, GOLD, XAUUSD.m or GOLDmicro depending on where the follower sits. CopySync maps these automatically and lets you override any mapping by hand when a broker does something genuinely unusual.

Setting up on MetaTrader 5

Three steps. The MT5 build needs no DLL permission.

1

Create your free account

Sign up and copy your API key from the dashboard. The free plan gives you one master and two followers permanently, which is enough to test both account models.

2

Attach the Expert Advisor

Drop CopySync_EA onto any chart in MT5, paste the key, and allow algorithmic trading. Tell it whether this terminal is the master or a follower — one EA covers both roles.

3

Trade — we copy the rest

Place orders as usual. The dashboard shows each copy with its measured latency, the follower's account model, and the symbol it was mapped to.

Measured, not claimed

Copy latency is published live, with the incident history alongside it.

0 ms
Target copy latency, measured continuously
0
Regions: London, New York, Frankfurt, Singapore
0
MT5 account models supported: netting and hedging
0 €
Free plan, permanently

The current figure is on the public status page. If you want to compare copiers, measure during a news release — that is when the difference shows.

MT5 trade copier – frequently asked questions

Yes, in both directions. On a netting account you hold one position per symbol, so a master's instruction to close one of several positions has to be translated into a change of the follower's net exposure. CopySync does that translation, so you can mix netting and hedging followers under the same master.

MT5 reports a partial fill as several deals belonging to one order. CopySync reconciles against the resulting position rather than the original order, so the follower ends up with the exposure the master actually holds, not the size the master asked for.

No. MQL5 has native socket functions, so the MT5 build connects using the platform's own SocketCreate with no external library. This matters on prop firm machines and locked-down VPS environments where DLL imports are blocked. The MT4 build does require them, because MQL4 has no socket support.

Yes, in either direction. The relevant difference is the account model rather than the platform version: MT4 is always hedging, so copying MT5 netting to MT4 involves the same translation described above. Symbol names are mapped automatically.

In MetaTrader 5, open the Trade tab and look at the account information, or check your broker's account specification. CopySync also detects the model when the EA connects and shows it next to the account in the dashboard, so you can confirm it without hunting through broker documentation.

Only if you host it yourself, because the terminal has to stay running. Paid plans include managed hosting, where we run your account and the copier on our own infrastructure around the clock. Self-hosting on your own machine or VPS stays free.

Test it on your own MT5 account

The free plan gives you a master and two followers for as long as you want them — enough to check how your broker's account model behaves before you pay anything.

Create a free account