Copy Trader MT5: copying trades between terminals on the same computer – setup guide
Copy Trader copies positions, pending orders, stops and partial closes from one MetaTrader 5 account (the Master) to one or more MetaTrader 5 accounts (Slaves) running on the same computer or VPS. It is one Expert Advisor with two modes; this guide sets up a Master and a Slave in a few minutes and explains the settings that matter on real accounts.
1. What you need
- Two or more MetaTrader 5 terminals installed in different folders on the same Windows computer or VPS, each logged in to its account.
- Algo Trading enabled in every terminal.
- The same channel name on the Master and its Slaves. The channel is a file in the terminals' shared Common folder, so the copy works without internet between the terminals and without DLLs.
2. Set up the Master
- In the source terminal, open any chart and attach the Expert Advisor.
- Mode of this terminal = Master.
- Channel name = a name of your choice, for example GOLD1.
The panel shows the number of positions and orders published and the time of the last write. The Master never trades by itself.
3. Set up a Slave
- In the receiving terminal, attach the same Expert Advisor to any chart.
- Mode = Slave, same Channel name.
- Choose the Lot calculation:
| Lot mode | Use it when |
|---|---|
| Same lot | Both accounts have a similar size |
| Multiplier | The Slave is twice (2.0) or half (0.5) the size of the Master |
| Proportional to balance or equity | Sizes differ and change over time (Slave / Master, times the multiplier) |
| Fixed lot | You want the same small volume on every copy |
Maximum lot per copy is a simple safety net on every account.
4. Symbol names that differ between brokers
Brokers name the same instrument differently: XAUUSD, XAUUSD.m, XAUUSDz, GOLD. Three tools solve it, in this order:
- Manual map (highest priority): GOLD=XAUUSD,US30=DJ30 .
- Suffix / prefix: suffix added on the Slave (for example z or .pro), suffix removed from Master symbols.
- Automatic symbol detection: when a symbol is not found, the Slave looks for the closest match.
Use Copy ONLY these Master symbols or Never copy these Master symbols to limit what is copied, and the magic-number filters to copy only one of several EAs.
5. Settings that protect the receiving account
| Input | Why |
|---|---|
| Do not open positions older than N seconds | After a restart the Slave does not open a trade the Master opened minutes ago at a different price |
| Max distance from Master price | Skips a copy when the price has already moved too far |
| Accept only this Master login | Ignores any other Master writing on the same channel by mistake |
| Master silent for N ms = freeze | If the Master terminal closes, the Slave stops copying instead of acting on old data |
| On first start, also copy trades already open | Off by default, so attaching a Slave does not open the Master's old trades |
6. Check it before using it on real accounts
- Use two demo accounts first.
- Open a small position on the Master: the Slave opens it with the mapped symbol and the chosen volume.
- Move the stop and the target on the Master: the Slave follows.
- Close half of the position on the Master: the Slave closes the same share.
- Close the rest: the Slave closes its copy.
Every action is written to a CSV log in the Common folder, useful when you want to compare fills between the two accounts.
7. Good to know
- Both terminals must run on the same computer or VPS; the copier does not send trades over the internet.
- Execution prices on the Slave depend on its broker; spreads and slippage differ between accounts.
- Reverse copy (buy becomes sell) exists for special cases such as hedging between two accounts. Check that it is allowed by the rules of the accounts you use.
Product page: https://www.mql5.com/en/market/product/203179


