METATRADER TO TRADELOCKER TRADE COPIER - NON API APPROACH

 


User Guide: MT4/MT5 to TradeLocker Trade Copier


Non-API Method




Quick Notes:


1. This copier uses a non-API method to copy trades to TradeLocker.

It is inherently faster than the API version, which must comply with TradeLocker API rate limits by adding a one-second delay between consecutive trades.

Its copying latency can meet the timing requirements of high-frequency trading (HFT).

However, some prop firms check for HFT before approving payouts by examining the intervals between trades. This copier does not change those policies. Some TradeLocker prop firms also limit accounts to 500 trades per day.


2. This non-API copier does not support copying pending limit or stop orders.

However, when a limit or stop order is filled in MetaTrader, the copier sends a market order to the destination account.

If you need to copy pending limit or stop orders, use the TradeLocker API copier included in the delivery package.


3. The non-API copier automatically attempts to reconnect if the TradeLocker connection is lost.

The non-API copier connects to the specific prop firm server assigned by TradeLocker. Connection stability depends on that server.

The API version connects to the TradeLocker API server, regardless of which prop firm you use.


4. TradeLocker often performs maintenance over the weekend. During maintenance, the bridge app repeatedly attempts to reconnect and displays "reconnecting" messages in its log. It reconnects automatically when maintenance ends. To avoid these repeated messages, you can close the app before maintenance and restart it at the beginning of the trading week.





========



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.







2.  Attach one Signal EA to one chart for each TradeLocker account. The EA scans all trades in that MetaTrader account.

Enter your copier license key and TradeLocker account ID in the inputs shown below:





To copy trades to additional TradeLocker accounts:

- Open another chart, attach the Signal EA, and enter the other TradeLocker account ID.

- Add the account credentials to the bridge app's config.ini file, save it, and click "Copy Start" to reload the configuration.


3. To pause the Signal EA, click "Stop Signal" on the EA panel. Click the button again to resume.




The MetaTrader AutoTrading button does not control this Signal EA. Use the button on the EA panel to pause or resume it.



======


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.



Popular posts from this blog

TRADE COPIER USER GUIDE LIST

FREE EVALUATION WITH LIMITED SYMBOLS