Do separately for each terminal β Master one terminal, each Slave one terminal. No need to declare WebRequest URL.
Depending on how it's released, you get one of two forms.
MT5: copytradev5.ex5
MT4: copytradev4.ex4 + CT_Http.dll
Just copy the file, no need to compile.
copytradev5.mq5 / copytradev4.mq4 + folder Include\ + folder dll\
Must compile in MetaEditor.
Common requirement: Windows, MetaTrader 4 or 5 already logged into account.
Trong MT4/MT5: menu File β Open Data Folder.
Windows Explorer window appears. Each terminal has its own folder.
Before copying files β MT4/MT5 locks files while running.
This is where most mistakes happen. MT4 and MT5 do it differently.
copytradev5.ex5 (or .mq5) β MQL5\Experts\Include\, only if you have source code β MQL5\Experts\Include\, put next to file .mq5CT_Http.dll β do not need to copy. DLL is already embedded in .ex5, EA unpacks it itself MQL5\Libraries\ first runcopytradev4.ex4 (or .mq4) β MQL4\Experts\Include\, only if you have source code β MQL4\Experts\Include\, put next to file .mq4CT_Http.dll 32-bit version β MQL4\Libraries\. Required β MT4 cannot unpack itselfCopy the wrong version and EA does not run. The version in the package's mt4\dll\ folder is already the right 32-bit.
CT_Http.dll β Properties β if you see Security: This file came from another computer then check Unblock β OK.
Reopen terminal β Tools β Options β Expert Advisors.
Click OK, then click Algo Trading (MT5) or AutoTrading (MT4) on the toolbar to enable it xanh.
Click F4 from the terminal.
copytradev5.mq5 or copytradev4.mq4 in the folder tree Experts.
Click F7.
The window below should show 0 errors, 0 warnings. A few warnings are OK β 0 errors is what matters.
| Report error | Reason |
|---|---|
cannot open source file "Include\CT_Defines.mqh" | Folder Include\ does not sit next to the file .mq5/.mq4 |
cannot open file "dll\CT_Http.dll" (MT5) | Missing folder dll\ next to file .mq5 β MT5 embeds DLL at compile time |
Any timeframe, any symbol.
Navigator β Expert Advisors β drag copytradev5 / copytradev4 and drop on the chart.
Check Allow DLL imports. Required for MT4, recommended for MT5.
Fill parameters β see step 6 β then click OK.
CT_Http.dll. EA unpacks the DLL itself MQL5\Libraries\, in log βDLL installed. Please restart EA to load the DLL.β then detaches itself from the chart. Drag EA onto the chart again and it runs normally. Happens only once. If Experts tab shows "DLL in Libraries DIFFERS from version embedded in EA": trong MQL5\Libraries\ there is an old CT_Http.dll copy present, and EA cannot overwrite it. Fix: detach EA from chart β close terminal β delete MQL5\Libraries\CT_Http.dll β open terminal β attach EA again.
Only the required boxes. Full table is in the usage guide page.
| The | Enter what |
|---|---|
Mode | Master - Send orders to server |
LicenseKey | Leave empty if running Offline (same machine) Β· enter key Master if running Online |
SlaveKeys | Leave empty when Offline Β· when Online: list of allowed Slave names, comma-separated, like slave1,slave2,slave3 |
AutoStart | false to click START manually, or true to auto-run when attaching EA |
3F7A9C21.
| The | Enter what |
|---|---|
Mode | Slave - Copy orders from server |
MasterCode | Code from Master panel β required |
SymbolMapping | List of symbols to copy β required, blank means copy nothing. Like XAUUSD,EURUSD or XAUUSD:GOLD,EURUSD:EURUSD.pro |
SlaveSource | Copy from Local (same machine) or Copy from Server (different machine) |
LicenseKey / SlaveKey | Per table below |
VolumeMultiplier | Lot ratio, default 1.0 |
| Tier | LicenseKey | SlaveKey | SlaveSource |
|---|---|---|---|
| IB / demo free | blank | blank | forced to Copy from Local no matter what you choose |
| Paid, running Online | blank | Slave's own key β must be in SlaveKeys on Master | Copy from Server |
| Paid, running Offline same machine | your own key (required) | blank | Copy from Local |
| Slave granted permission by another Master | that license | Slave's own key | Copy from Server |
Running Offline paid but left LicenseKeyempty. EA will show "Slave offline paid must fill License Key" and will not run.
Panel name COPYTRADE ONLINE, top left corner.
| Line | Master machine | Slave machine |
|---|---|---|
| Mode | MASTER or MASTER (OFFLINE) | SLAVE |
| Status dot line | Running (Master) | Running (Slave) |
| License / Master Code | License: OFFLINE (No Key Needed) or your key | Master Code: <code you entered> |
| Stats | Slaves: N | Processed: x | Copied: y |
| Info | Master Code: β¦ | Volume: 1.00x | Copy: ON |
Ready β¦ - Click START to run then EA has not started β click the green button on the panel, or set START Read Experts log tab AutoStart = true.
[CT_Http] CT_Http.dll loaded successfully.
=== EA Copytrade Starting ===
Mode: MASTER
[MASTER OFFLINE] Master Code
for Slaves: 1234567 (Account Login)
[SHM] Shared memory created: 1234567
EA Started!
[SHM] Shared memory opened: 1234567
[IB] Tai khoan thuoc nhom IB
-> chay LOCAL mien phi.
EA initialized successfully!
EA Started!
on Master with one symbol 0.01 lot in . In 1β2 seconds Slave must have a matching order. Close Master order β Slave order must close too. See nothing, read Slave's SymbolMappingExperts tab first β EA prints the reason very clearly. Troubleshooting during setup
SYMBOL_MAPPING missingβ¦, or SymbolMapping. Khai XAUUSDXAUUSD:<symbol name on Slave broker> . This is the number one reason.MT4: dialog box
CT_Http.dll not found!, or copied the wrong 64-bit version. Use 32-bit version from MQL4\Libraries\MT5: EA disappears from chart right after attaching mt4\dll\.
Log ghi Restarting EA to load DLL Log: DLL in Libraries differs from version embedded in EA
copy exists in MQL5\Libraries\. Detach EA β close terminal β delete the DLL file β reopen β attach EA.
Not enabled Algo/Auto Trading, or not yet checked Allow DLL imports.
Error: Master Code is empty!Slave not filled in MasterCode.
Error: Slave Keys is empty!Master Online not filled in SlaveKeys.
Names banned set for Slave: master, slave, master_code, masterslave, username. Choose a different name.
Account not yet in the free IB list. Contact admin to add it, or buy a key.
Master license does not exist!Sai key, or key expired β the system gives the same reply for both cases.
Master is not on, or MasterCode is wrong. EA automatically retries every 3 seconds β turn Master on and it connects by itself.
CT_Http.dllAdd an exception for the folder MQL4\Libraries\ or MQL5\Libraries\ then copy it again.
Right-click on the chart β Expert Advisors β Remove.
copytradev5.ex5 / copytradev4.ex4 trong MQL5\Experts\ / MQL4\Experts\.
Close terminal then delete CT_Http.dll in the folder Libraries.
Full table of parameters, Symbol Mapping, lot ratio, SL/TP copy mode and troubleshooting during operation is on the user guide page.
Usage guide Back to introduction