How It Works: Copy trades between MT4/5
You can copy your trades between MT4 and MT5. Only open positions will be copied, pending order will not be copied. When pending order is executed and becomes open position, this open position will be copied:
- You can copy trades from MT4 to MT5
- You can copy trades from MT5 to MT4
- You can copy trades from MT4 to another MT4
- You can copy trades from MT5 to another MT5
1. Source and Destination MT4/5
To copy trades between MT4/5, you should have two MT4/5 terminals. One MT4/5 terminal is the source terminal, another MT4/5 terminal is the destination terminal. All trades on the source terminal will be copied to the destination terminal.
You have to install two EAs on your MT4/5. The first EA is CopyOut EA, which is installed on the source terminal. The second EA is CopyIn EA, which is installed on the destination terminal. You can download both EAs from our Downloads page.
- If your source terminal is a MT4 terminal, you can download and install Mt4CopyOut EA. You can check Mt4 CopyOut Setup to see how to download and install Mt4CopyOut EA
- If your source terminal is a MT5 terminal, you can download and install Mt5CopyOut EA. You can check Mt5 CopyOut Setup to see how to download and install Mt5CopyOut EA
- If your destination terminal is a MT4 terminal, you can download and install Mt4CopyIn EA. You can check Mt4 CopyIn Setup to see how to download and install Mt4CopyIn EA
- If your destination terminal is a MT5 terminal, you can download and install Mt5CopyIn EA. You can check Mt5 CopyIn Setup to see how to download and install Mt45CopyIn EA
You launch CopyOut EA on your source MT4/5 terminal and put your master token in the input, the CopyOut EA will connect Trading Router server by the master token. You launch CopyIn EA on your destination MT4/5 terminal and put your client token in the input, the CopyIn EA will connect Trading Routere server by the client token. Please note, the master token and client token should be the same pair. If you use master token No. 1 in CopyOut EA, you have to use client token No. 1 in CopyIn EA.
When CopyOut EA is launched, it will immeditate send all the trades information on the source MT4/5. We recommand you launch CopyIn EA on destination MT4/5 first, then launch CopyOut EA on source MT4/5, so that when CopyOut EA send all the trades information, the CopyIn EA is already running and can receive this information and make trades.
Whenever there are changes on your source MT4/5, the CopyOut EA will immediately sen the changes to CopyIn EA, and CopyIn EA will update the trades on destination MT4/5. For example, when source MT4/5 has a new EURUSD long position, the CopyOut EA will send this information and the destination MT4/5 will make a corresponding EURUSD long position.
2. Net Positions
Please note, the destination MT4/5 will keep the same net positions as the source MT4/5, but it does not mean they have the exact same positions. For example, consider the following case:
- Source MT4/5 creates 10 lots of EURUSD long positions, destination MT4/5 creates 10 lots of EURUSD long positions immediately.
- Source MT4/5 creates 4 logts of EURUSD short positions, destination MT4/5 closes 4 lots of EURUSD long positions immediately.
It is recommended that you close all open and pending positions on your destination MT4/5 before launching CopyIn EA.
3.CopyOut and CopyIn EA Settings
You can configure CopyOut and CopyIn EA by setting values in Inputs
3.1 CopyOut EA Settings
Besides Trading Router Master Token, you can set Remove Prefix and Remove Suffix on CopyOut EA
- Remove Prefix: This is used to remove prefix from a symbol, the default value is empty. For example, your source MT4/5 has a symbol "a.EURUSD", but you destination MT4/5 only has "EURUSD". You can set Remove Prefix to "a." in your CopyOut EA, then when the CopyOut sends trades information about "a.EURUSD", it will remove "a." and only keep "EURUSD", then your destination MT4/5 receives trades information for "EURUSD" and makes trades for "EURUSD" instead of "a.EURUSD"
- Remove Suffix: This is used to remove suffix from a symbol, the default value is empty. For example, your source MT4/5 has a symbol "EURUSD.a", but you destination MT4/5 only has "EURUSD". You can set Remove Suffix to ".a" in your CopyOut EA, then when the CopyOut sends trades information about "EURUSD.a", it will remove ".a" and only keep "EURUSD", then your destination MT4/5 receives trades information for "EURUSD" and makes trades for "EURUSD" instead of "EURUSD.a"
3.2 CopyIn EA Settings
Besies Trading Router Client Token, you can set Scale Factor, Prefix and Suffix on CopyIn EA
- Scale Factor: This is used to scale the volume of source trades, the default value is 1.0. The trades volume on destination is Scale Factor
times the trades volume on source.
For example, there is 1 lot of long EURUSD position on source MT4/5,
- if Scale Factor is 1, the destination MT4/5 will create 1 lot of long EURUSD position;
- if Scale Factor is 2, the destination MT4/5 will create 2 lots of long EURUSD position;
- if Scale Factor is 0.5, the destination MT4/5 will create 0.5 lot of long EURUSD position;
- Prefix: This is used to add prefix for a symbol, the default value is empty. For example, your source MT4/5 has symbol EURUSD, and your destination MT4/5 has symbol a.EURUSD. You can set Prefix to "a.", then when there is 1 lot of long EURUSD on your source MT4/5, your destination MT4/5 will have 1 lot of long a.EURUSD
- Suffix: this is used to add suffix for a symbol, the default value is empty. For example, your source MT4/5 has symbol EURUSD, and your destination MT4/5 has symbol EURUSD.a. You can set Prefix to ".a", then when there is 1 lot of long EURUSD on your source MT4/5, your destination MT4/5 will have 1 lot of long EURUSD.a
3.3 CopyOut CopyIn Settings Together
You can use Remove Prefix/Suffix on CopyOut EA and Prefix/Suffix on CopyIn EA together
For example: your source MT4/5 only has EURUSD.a symbol, your destination MT4/5 only has EURUSD.k symbol. You can set Remove Suffix as ".a" on CopyOut EA and set Suffix as ".k" on CopyIn EA, then when there are trades for EURUSD.a on source MT4/5, the destination MT4/5 will copy the trades for EURUSD.k
4. Multiple Destinations
4.1. One Source Multiple Destinations
You can have one source MT4/5 and multiple desination MT4/5. For example, you can launch CopyIn EA on two MT4/5 terminals, and put client token No. 1 in the input. Then these two destination MT4/5 will connect Trading Router server with client token No. 1. Both can copy trades from the source MT4/5 whose master token is master token No. 1.
4.2. Multiple Sources Multiple Destinations
You can have multiple source MT4/5 and multiple destination MT4/5. Every destination MT4/5 only cope trades from its own source. For example, you can have two source MT4/5 and two destination MT4/5. The first source MT4/5 uses master token No.1 and the first destination MT4/5 uses client token No.1. The second source MT4/5 uses master token No.2 and the second destination MT4/5 uses client token No.2. The first destination MT4/5 can only copy trades from the first source MT4/5, the second destination MT4/5 can only copy trades form the second MT4/5.
5. Sync Clients Button
There is a Sync Clients button on screen when your CopyOut EA is running. When you click the Sync Clients button, all trades information on the source MT4/5 will be sent. This button can be used when you add a new destination MT4/5 or when the CopyIn EA on destination MT4/5 is aunched later than CopyOut EA on source destination.
5.1. Sync Clients for New Added Destination MT4/5
Consider the following senario
- CopyOut EA is running on source MT4/5 and CopyIn EA is running on destination MT4/5, the source MT4/5 and the destination MT4/5 are already synced.
- Source MT4/5 creates 10 lots EURUSD long positions, destination MT4/5 also creates 10 lots EURUSD long position.
- You launch CopyIn EA on a second destination MT4/5.
- Sourc MT4/5 creates 5 lots GBPUSD long positions, both destination MT4/5 create 5 lots GBPUSD long positions.
Now source MT4/5 and first destination MT4/5 both have 10 lots EURUSD long positions and 5 lots GBPUSD long positions. But the second destination MT4/5 only has 5 lots GBPUSD long positions.
To solve this issue, we need to sync the second destination MT4/5 whenever we add the second destination MT4/5.
The following is how to use Sync Clients button to sync the second destination MT4/5 w
- CopyOut EA is running on source MT4/5 and CopyIn EA is running on destination MT4/5, the source MT4/5 and the destination MT4/5 are already synced.
- Source MT4/5 creates 10 lots EURUSD long positions, destination MT4/5 also creates 10 lots EURUSD long position.
- You launch CopyIn EA on a second destination MT4/5.
- You click the Sync Clients button on source MT4/5. The CopyOut EA will send all trades information immediately.
- The CopyIn EA on the second destination MT4/5 receives all trades information in less than one second, and it create all corresponding positions. In this example, it create 10 lots EURUSD long positions. Please note, the first destination MT4/5 also receives all trades information, but it does not do anything, because it is already synced with the source MT4/5.
- Sourc MT4/5 creates 5 lots GBPUSD long positions, both destination MT4/5 create 5 lots GBPUSD long positions.
Now the source MT4/5 and the two destination MT4/5 have 10 lots EURUSD long positions and 5 lots GBPUSD long positions.
5.2. Sync Clients for Late Launched Destination MT4/5
The Sync Clients button can also be used to sync the source and destination if you launch CopyIn EA on destination MT4/5 later than CopyOut EA on source MT4/5
For example:
- You source MT4/5 already has 10 lots EURUSD long positions.
- You launch CopyOut EA on source MT4/5, this EA sends all trades information of source MT4/5. But as there is no destination MT4/5, nothing happens.
- You launch CopyIn EA on destination MT4/5. But as it misses the all trades information, it does not make any positions.
- You click the Sync Clients button on source MT4/5. The CopyOut EA will send all trades information immediately.
- You CopyIn EA on destination MT4/5 receives all trades information and creates 10 lots EURUSD long positions.
- Now your source MT4/5 and destination MT4/5 are synced.
5.3. Sync Clients Restrictions
Sync Clients button cannot be clicked twice within 10 seconds. After you click the Sync Clients button, it will be disabled for 10 seconds, and you have to wait for 10 seconds before you can click it again.
When you launch CopyOut EA, all trades information will be sent automatically, so the Sync Clients button is disabled, and you have to wait for 10 seconds for the Sync Clients button to be enabled.
When the CopyOut EA is running, the screen will show the time when last sync clients is used
5.4. Sync Clients Summary
To summary, you can click Sync Clients button on your source MT4/5 in the following three cases:
- When you add a new destination MT4/5.
- When CopyIn EA on your destination MT4/5 is launched later than CopyOut EA on your source MT4/5.
- Whenever you think your source MT4/5 and destination MT4/5 are not synced.
6. Tradingview and Copier
You can have tradingview signals to MT4/5 and Copy between Mt4/5 running at the same time. You can do this by using different master/client token pairs. For example, your first MT4/5 is running TradingRouter EA and using client token 1, your second MT4/5 is running CopyIn EA and using client token 2. Your source MT4/5 is running CopyOut EA and using master token 2. Your Tradingview sends buy/sell commands with master token 1, then only your first MT4/5 can receive these commands and place orders. Your source MT4/5 sends trades information with master token 2, then only your second MT4/5 can receive this trades information and copy trades.