METATRADER TO DXTRADE TRADE COPIER - NON-API APPROACH

 


This is the user guide for 'MT4/MT5 to DxTrade' Trade Copier EA 


NON-API Approach





API approach version copier user guide is at
https://boolapi.blogspot.com/2024/03/metatrader-to-dxtrade-trade-copier.html



Please be aware of below limitations before using this copier:


1. This copier is designed by 'alternative' or non-API approach.  It cannot support the copy of limit/stop order.  It only acts on mt4/mt5 position change events.  However, when a limit/stop order is fulfilled, it will send out a new market order entry.


2. This DxBridge app has implemented server reconnection logics if DxTrader server is temporarily down.

However DxTrade used to do maintenance during weekend.  Please regularly restart DxTrade bridge at week start.


3. Regarding copy account setting:


- You can have multiple MT4/MT5 terminals or accounts as leader accounts.


- Only one DxTrade bridge app instance can be run at one computer/VPS.

However, it can accommodate multiple DxTrade prop firms/usernames' logins and operations concurrently.

It can be set by multiple lines of login=xxxxxx at config.ini file.  It will be elaborated at later descriptions.


- At the *same* DxTrade prop firm or username, only one account is accepted to to copy by non API approach.

To switch to your desired account, you need to select that account at that DxTrade prop firm webtrader.  See below screenshot showing where the account selection is located.




and wait for 30 seconds so that selected account can be well populated to DxTrade server.  When you run DxBridge app, you could see that selected chart account at login messages:





* If you need to concurrently copy to multiple accounts under the same DxTrade prop firm or username, please use our 'MT4/MT5 to DxTrade' API approach version.



====


Below is the installation steps:


1. Install MT4 or MT5 copier EA. 

Put “MT4ToDxNonAPI.ex4” or “MT5ToNonAPI.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.  Please attach this copier EA to ONLY one chart.  

This EA can fetch multiple symbol/trade event signals of this MT4/MT5.  If you want to have another copier for different DxTrade account, you can elect to attach to another chart.

If you want to temporarily stop this EA, please click 'Stop Signals' button on the trade panel.  MT4/MT5 'auto trading' or 'algo trading' button is not applicable as this EA won't make any trade.


4. Please download 'DxTrade Bridge' app and unzip it.


At config.ini file, fill in your below info next to login= separated by comma

For instance:

login=pEjqai,Vn7JY$nn,https://demo.dx.trade/

The sequence is:
user name
password
your dxtrade prop firm's webtrader login url

Username and password are the text strings that you input at your DxTrade webtrader login page:

And SAVE it





PS. If you have more than one prop firm user names, make it at next line

for instance:

login=pEjqai,Vn7JY$nn,https://demo.dx.trade
login=210021822,9D%$4P5LT?1p,https://dxtrade.ftmo.com/
login=FXIFY_C92121,P7S*Tsmx&,https://dxtrade.alchemymarkets.eu/


If config.ini is ever changed, please save it and restart DxTrade app to reload it.


5. Run 'DxTrade Bridge app' and wait for 'Ready to bridge signal' message appears.





If you see any error, please check the login info at config.ini file and restart this bridge app.



6. Below are the variable explanations of MT4/MT5 copier ea:


- User name - input the user name that matches what you've set at DxBridge config.ini file


- Symbol mapping list - if DxTrade instrument name is different with MetaTrader's, please input as below format (MT4/MT5's symbol name first, comma, then DxTrade's, then semi-colon)

XAUUSD,XAUUSD.raw;

if two pairs, 

XAUUSD,XAUUSD.raw;EURUSD,EURUSD.pro;


* If DxTrade symbol name is EUR/USD while MT4/MT5's EURUSD, that DxTrade bridge app will auto add that slash.  No symbol mapping setting for this scenario.



- '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 DxTrade.

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 DxTrade.


- Add Extra Symbol Postfix To DxTrade

All symbol names will add this common postfix to DxTrade.  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.




- Copy TP/SL price - default is disabled.  This copier will send out market order close to DxTrade if MT4/MT5 order hits TP/SL price.

You could enable it per your discretion.


- 'No Close Signals If That Dealt Order Has TP/SL Prices' - default is disabled.  If enabled, this feature will hold up sending MT4/MT5 position *exit* signal to DxTrade if order hits TP/SL price - since DxTrade trades have already got its own TP/SL.


Due to market price deviation between two trading platforms, if you want to get consistent copy result, please DO NOT enable 'copy TP/SL' features.



- Lot multiplier list - if you want to multiply the lot value to DxTrade, for instance, input 

EURUSD,10;XAUUSD,2;

If simply input 

10


- Lot mode - default is 'follow MT4/MT5 order lot'; another option is 'Fixed Lot'


- Order magic number list - you could assign specific magic number for trade signaling. 



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




- 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.



- Applicable comment list - you could restrict to specific order comment.  Separate each with comma.



> Reverse trade - if setting true, it will reverse the trade signal to DxTrade.  

For instance, a LONG trade will be signaled as a SHORT trade.



- 'API Network Throttling?' --> default is enabled, i.e. follow DxTrade API throttling restriction.  You could disable it as an option.



- 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 copier EA will keep checking whether MT4/MT5 global variable named 

DXNONAPIDISABLE

is 1 or not.  If that equals 1, MT4/MT5 copier EA will hold up.  It doesn't equal or that global variable is not set, MT4/MT5 copier EA will keep running.


=======


Special note for certain prop firms having stricter web access restrictions


1. Located at NonAPI/Misc sub-folder of shared link

2. Download DxBridge2.zip

3. Unzip DxBridge2.zip

4. Use the same config.ini contents as you've used for DxBridge

5. Kindly be aware that DxBridge2 is *not* a successor of DxBridge.  It uses different framework to work around that stricter web access restrictions.  It is inherently slower than DxBridge in accessing prop firm servers.

It also takes more CPU loading than DxBridge.  Please use it at least dual-core CPU + 4GB RAM computer or VPS environment.

6. Ensure your computer/VPS windows OS is Windows 10 or 11 or Windows Server 2016 or above.  

7. Ensure your Chrome (or Microsoft Edge browser) is updated to latest version.

8. DxBridge2 cannot co-exist with DxBridge.  Please close DxBridge app at your computer/VPS before running DxBridge2.

9. Start DxBridge2 app.





10. Click 'Copy Start' button to login.  If you don't need to copy, click 'Copy Start' again to stop.

11. The rest of operations are the same with DxBridge.  No need to change anything at MT4/MT5 copier ea side.

12. You could use DxBridge2 app with any DxTrade prop firms.  However it's inherently slower than DxBridge.  If DxBridge app can work with your prop firm, please keep using DxBridge.







Popular posts from this blog

FREE EVALUATION WITH LIMITED SYMBOLS

TRADE COPIER USER GUIDE LIST

METATRADER TO NINJATRADER TRADE COPIER