METATRADER TO CTRADER TRADE COPIER
This is the user guide for 'MT4/MT5 to cTrader' Trade Copier EA
This trade copier for 'MT4/MT5 -> cTrader ' consists of two parts:
- Trade signal transmit utility EA
- Trade cBot copier at cTrader
1. Install MT4 or MT5 signal transmit EA.
Put “MT4ToCTrader.ex4” or “MT5ToCTrader.ex5” to \MQL4\Experts\ or \MQL5\Experts\ folder.
At MT4 or MT5, “Menu” → “Tools” → “Options”, at below selection, click “Allow DLL Import” - as this EA needs network authentication for use.
Open any chart and attach this Copier EA to chart. At the first EA variable, please enter your license key
2. open your computer's 'Documents' folder
goto '\cAlgo\Sources\Robots' path
move 'MTCTCopier.algo' file to this 'Robots' folder
3. Please use a demo account for hands-on first.
Select 'Trade' tab at ctrader and then open any chart to attch this copier bot. Do not select 'automate' tab that is for backtest.
4. At cTrader menu, select "MTCTCopier' from cBot list:
cTrade will pop up a window asking if you want to allow full access for this copier cBot.
Please click yes - as this copier will use MetaQuotes standard file transfer method to interchange the secured data with MT4/MT5 order transmit EA.
Besides setting signal lot adjustment at mt4/mt5 side, you could select the copy lot mode at cTrader side as well.
There're 5 lot modes: follow metatrader signal lot, fixed lot, equity-to-equity, percent per account balance, percent per account equity.
* also have 'lot multiplier' option, that will apply on the lot result of all of above lot selection.
If you need cTrader to copy 'SL/TP prices from MT4/MT5', just enable 'Follow MetaTrader SL/TP prices' option.
Note: Please be aware this feature will recalcuate the SL/TP price distances based on original order's open/SL/TP prices - and then apply with cTrader's current market prices. The new SL/TP prices at cTrader side will be slightly different with MT4/MT5 orders. Due to different broker spread and stop level, it is not recommended to use this feature unless you have well understanding or desires on it.
Click the blue start button next to MTCTCopier cBot text to get it started.
7. You could make some new order entries or closes at MT4/MT5 side and check the copy progress at the cBot log window of cTrader:
Special Note:
This copier was initially sold at MetaQuotes Market that requires 'file data exchange' method by default. But this method will degrade data exchange efficiency if you attach copier bot on many cTrader charts (e.g. more than 3 charts). If you need lower copy latency, there is an alternative data exchange method by computer internal memory that won't have this degrade issue. To use this alternative method,
(a) download 'RelayBridge.zip' from 'Misc' subfolder of shared link
(b) unzip that zip file and run 'RelayBridge.exe' from unzipped folder
(c) set 'Use Relay Bridge?' variable of MT signal ea to true
(d) enable 'Use Relay Bridge?' variable of cTrader copier bot
MT4/MT5 signal EA settings
1. Symbol map list - if cTrader's instrument name is different with MetaTrader's, please input as below format (MT4/MT5's symbol name first, comma, then cTrader's, then semi-colon)
BTCUSD,BITCOIN;
if two pairs,
BICUSD,BITCOIN;XAUUSD,GOLD;
- 'MetaTrader Symbol Prefix To Be Ignored' and 'MetaTrader Symbol Postfix To Be Ignored'
assume you input prefix en and that MT4/MT5 symbol is enEURUSD, this copier EA will remove the prefix 'en' and convert it as EURUSD before sending to cTrader.
assume you input postfix .st and that MT4/MT5 symbol is EURUSD.st, this copier EA will remove the postfix '.st' and convert it as EURUSD before sending to cTrader.
- Add Extra Symbol Postfix To cTrader
All symbol names will add this common postfix to cTrader. For instance, if setting .PRO, EURUSD will be converted as EURUSD.PRO and GBPUSD as GBPUSD.PRO so you don't need to set one by one at 'Symbol Mapping List' variable.
2. Lot multiplier list - if you want to multiply the lot value to cTrader, for instance, input
EURUSD,10;XAUUSD,2;
If simply input
5
All trade lots at MT4/MT5 will be multiplied by 5.
3. Order magic number list - you could assign specific magic number for trade signalling.
For multiple magic, separate each with comma.
For instance, 3413434,1343292
Default is a blank string, i.e. applying on all trades.
Special reminder:
If you put your ea's magic number and want to limit the copy to it, e.g. magic number 3421243
Then MT4/MT5 signal ea will only scan orders with magic number = 3421243
Kindy be aware MT4/MT5 manual order's magic number is 0.
If you want to have that signal ea cover BOTH manual orders and your own ea orders, it should be set like
0,3421243
i.e. include 0 at magic number list
4. Applicable symbol list - you could restrict to specific symbol/instruments. Separate each with comma, e.g. EURUSD,XAUUSD,USOIL
Default is a blank string, i.e. applying on all symbols.
5. Applicable comment list - you could restrict to specific order comment. Separate each with comma.
6. Reverse trade - if setting true, it will reverse the trade signal to cTrader.
For instance, a LONG trade will be signaled as a SHORT trade.
7. Session time - default is from 00:00-24:00
8. Alert and panel settings - that should be self explanatory.
9. If you have two more MT4/MT5 inside one computer to send trade signals to cTrader(s), you could set 'Copy group id string' variable (e.g. ABCD, LONDON, INST) at MT4/MT5 signal EA. At cTrader side, set the same string texts at cTrader Copier's 'Copy group id string' as well. Then this MT4/MT5 and cTrader will become a specific copy pair.
10. Enable partial close signals - default is true. Partial close signal will be sent to cTrader copier. Partial close feature is only applicable if 'FOLLOW' or 'EQUITY-TO-EQUITY' mode is selected at cTrader copier bot side. If you don't want the partial close signal feature, please disable 'Enable partial close signals' option at MT4/MT5 signal EA side.
11. Three variables/features for Stop/Limit order and TP/SL copy -
ALL THREE VARIABLES are DISABLED by default.
> Copy Limit/Stop orders
> Copy TP/SL -
Default is to copy TP/SL 'distances' at MT4/MT5 order to cTrader. cTrader copier will re-calculate TP/SL prices based on the copied distance.
If you want to copy MT4/MT5 order 'exact' TP/SL prices, at cTrader copier bot side there is one variable called 'TP/SL Mode'. Select 'By_Exact_Price' option. However kindly be noted that cTrader internally still uses distance for TP/SL setup and there is possibly slight price deviation.
> No close signals if that dealt order has closed by TP/SL -
This feature only works if 'Copy TP/SL distances' feature is enabled.
If this variable is enabled, MT4/MT5 signal EA won't pass the order close signal to cTrade copier bot if that order is closed by hitting its TP/SL price.
That is to avoid if MT4/MT5 order close event is raised earlier than cTrader's.
As TP/SL is copied, cTrader copied order should have its own close event.
The current copier scheme is only to copy when that MT4/MT5 order entry/exit get 'fulfilled'.
MT4/MT5 market prices is different with cTrader brokers.
If limit/stop order or TP/SL prices are copied, that will result in different life cycle of an order.
As such, only to copy order entry/exit 'fulfilled' event is the best approach to ensure both side orders have the identical life cycle.
If you have specific needs to copy limit/stop order or TP/SL, you could enable above features to have a try.
12. As there are great variations of customer custom needs of control or filter requirements, this copier use the alternative approach to accommodate.
If enable "Enable Hold-Up Feature?" variable (default is false), MT4/MT5 signal EA will keep checking whether MT4/MT5 global variable named
CTCOPYDISABLE
is 1 or not. If that equals 1, MT4/MT5 signal EA will hold up. It doesn't equal or that global variable is not set, MT4/MT5 signal EA will keep running.
You could self write (or hire a developer) to write an EA or indicator to set value to that global variable with your own control/filter logics.