METATRADER TO TRADELOCKER TRADE COPIER - NON API APPROACH
User Guide: MT4/MT5 to TradeLocker Trade Copier
Non-API Method
========
Install the TradeLocker Bridge app
1. The bridge app can run without TradeLocker webtrader open in a browser. We recommend keeping webtrader open so you can monitor the copied trades.
2. Extract TradeLockerBridge.zip.
3. Perform the following steps in the extracted folder.
4. Edit the config.ini file in that folder.
license_key=
Enter your license key after license_key=.
For example:
license_key=taigk97+mttotl@gmail.com
login=
Enter your TradeLocker login credentials.
Use the following format:
Your TradeLocker login email address
Your TradeLocker login password
DEMO or LIVE
Your TradeLocker broker server name, as entered on the webtrader login page
Your TradeLocker account ID
Separate the values with commas.
For example:
login=samuelparker@gmail.com,YX0%Ip$f,DEMO,SAG-DEMO,333789
See the illustration below:
After logging in, you can find your TradeLocker account ID in the lower-left corner of webtrader.
The bridge app supports multiple destination accounts. Add a separate login= line with the appropriate credentials for each account.
For example:
login=taigk97@gmail.com,YX0wxIW$f,DEMO,SAG-DEMO,333789
login=taigk97@yahoo.com,pGewG,DEMO,OSP,531908012
5. Save config.ini.
6. Start the TradeLockerBridge app.
7. After the license check, click "Copy Start".
8. Wait for the "Ready to bridge signal" message.
9. If login fails, correct the credentials in config.ini and save the file. Click "Copy Start" to reload the configuration.
10. Click "Copy Start" again to pause or resume copying.
11. The bridge app automatically attempts to reconnect if TradeLocker is undergoing maintenance or is temporarily unavailable. It also shows the current number of positions in the account in its log panel.
======
Install the MT4 or MT5 Signal EA
1. Copy "MT4ToTLNonAPI.ex4" or "MT5ToTLNonAPI.ex5" into the \MQL4\Experts\ or \MQL5\Experts\ folder, respectively.
In MT4 or MT5, go to Tools > Options and enable "Allow DLL imports" in the settings shown below. The EA requires network access for license authentication.
======
The remaining Signal EA settings are explained below:
- Symbol mapping list
If TradeLocker instrument names differ from those in MetaTrader, use the following format:
MT4/MT5 symbol, followed by a comma, the TradeLocker symbol, and a semicolon.
If the MT4/MT5 symbol is USTEC and the
TradeLocker symbol is NAS100,
enter:
USTEC,NAS100;
in the "Symbol mapping list" setting.
For multiple mappings, combine them in one string.
For example:
BTCUSD,BITCOIN;XAUUSD,GOLD;
- 'MetaTrader Symbol Prefix To Be Ignored' and 'MetaTrader Symbol Postfix To Be Ignored'
For example, if you enter "en" as the prefix and the MT4/MT5 symbol is enEURUSD, the Copier EA removes "en" and sends EURUSD to TradeLocker.
For example, if you enter ".st" as the postfix and the MT4/MT5 symbol is EURUSD.st, the Copier EA removes ".st" and sends EURUSD to TradeLocker.
- Add Extra Symbol Postfix To TradeLocker
This setting adds the same postfix to every symbol sent to TradeLocker. For example, entering ".PRO" converts EURUSD to EURUSD.PRO and GBPUSD to GBPUSD.PRO, so you do not need to map each symbol separately in "Symbol Mapping List".
- Lot multiplier list
To multiply lot sizes when copying to TradeLocker, enter a value such as:
EURUSD,10;XAUUSD,2;
To apply the same multiplier to all trades, simply enter:
10
All MT4/MT5 trade lot sizes will then be multiplied by 10.
- Partial close - Enabled by default (true).
- TP/SL price copying is enabled by default. You can disable it if you do not need this feature.
Even when TP/SL prices are not copied, the copier sends a close signal to TradeLocker when an MT4/MT5 order closes.
"No Close Signals If That Dealt Order Has TP/SL Prices" - When enabled, this option prevents the copier from sending MT4/MT5 exit signals to TradeLocker when the trade already has its own TP/SL levels. We recommend leaving it disabled (false), which is the default.
- Lot mode - The default is "follow MT4/MT5 order lot". The other options are "Equity-To-Equity" and "Fixed Lot".
- Order magic number list - Specify which magic numbers to include when copying trades.
Separate multiple magic numbers with commas.
For example: 3413434,1343292
Leave this field blank (the default) to include all trades.
Important:
To copy only trades from your EA, enter its magic number. For example, enter 3421243.
The MT4/MT5 Signal EA will then scan only orders with magic number 3421243.
Manual MT4/MT5 orders have a magic number of 0.
To copy both manual orders and orders from your EA, enter:
0,3421243
Include 0 in the magic number list to copy manual orders.
- Applicable symbol list - Limit copying to specific symbols or instruments. Separate them with commas, for example: EURUSD,XAUUSD,USOIL.
Leave this field blank (the default) to include all symbols.
- Applicable comment list - Limit copying to orders with specific comments. Separate multiple comments with commas.
- Reverse trade - When set to true, this reverses the trade signal sent to TradeLocker.
For example, a LONG trade will be sent as a SHORT trade.
The default is false.
- The copier supports custom control and filtering rules through the following method.
If you enable "Enable Hold-Up Feature?" (default: false), the MT4/MT5 Signal EA checks whether the MT4/MT5 global variable named
TLNONAPIDISABLE
is set to 1. If it is, the Signal EA pauses. If it has any other value or is not set, the Signal EA continues running.
You can write an EA or indicator yourself, or hire a developer to create one, to set this global variable according to your own control or filtering rules.
- Logging
1. Signal EA - Live logs appear in the MetaTrader 'Experts' log panel.
2. Bridge app - Live logs appear in the app's log panel. To save them to a file, add this line to config.ini:
log=on
Save the file and restart the app. The log file is stored in the bridge app folder.
- Alert Notifications
The signal EA provides four alert notification options:
- Popup Alert
- Sound Alert
- Mail Alert
- Mobile Alert
'Popup Alert' is enabled by default.
To receive email or mobile notifications, you must not only enable the corresponding 'Mail Alert' or 'Mobile Alert' option, but also configure MT4/MT5 to send notifications to your email address or the MT4/MT5 mobile app.
For instructions on configuring email or mobile notifications in MT4/MT5, you can consult an AI assistant such as ChatGPT or Claude.
- Notification History
Regardless of which alert options are enabled, all notification messages are recorded in the MT4/MT5 'Experts' log panel.
You can view recent messages directly in the 'Experts' tab. To access historical logs, right-click within the 'Experts' tab and select 'Open', then locate and open the log file for the desired date.
=== Special Notes: TradeLocker Bridge Reconnection
The TradeLocker bridge app attempts to reconnect when its server connection is lost or becomes unstable.
If a copy request arrives during reconnection, the bridge app will still process it if both conditions are met:
(a) The connection has been restored.
(b) The request was made less than 15 seconds ago.
To change the default 15-second tolerance:
Add a line to config.ini in the TradeLocker bridge folder.
For example:
tolerance=8
Save the file and restart the bridge app. With this setting, it will accept requests no more than 8 seconds old.
Do not set the tolerance above 15 seconds, as this can affect consistency between the two platforms.
To disable this feature, set:
tolerance=0
This disables the request age tolerance feature.






