METATRADER TO HANKOX TRADE COPIER



This is the user guide for  'MT4/MT5 to HankoX' trade copier.




Quick Notes:


1. This copier suite consists of two components:


- MT4 or MT5 signal ea

- HankoX bridge app


That HankoX bridge app can work alone without opening HankoX webtrader at browser.  However, that is more desirable that HankoX webtrader can be opened so you could monitor the real-time copy progress.


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


3. This bridge app will perform reconnection if its connection with HankoX server is lost.

That will be more desirable that you could restart HankoX bridge at week start in case of Hanko server weekend maintenance.


====


Below is the installation steps:


1. Install MT4 or MT5 copier EA. 


Put “MT4ToHankoX.ex4” or “MT5ToHankoX.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 HankoX 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.



3. Below required info are what you've got from Hanko

(a) 'Trade Account ID'

- that is the trade account id you input at HankoX webtrader login web page 
https://trade.hankotrade.com



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

- please do anything from *unzipped* folder

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

For instance:

login=T316371,mMYmjHoiKN,DEMO

The sequence is:
trade account id
password
DEMO or LIVE

for instance

login=T316371,mMYmjHoiKN,DEMO

and SAVE it

Above example is my HankoX demo login info.  You could use it to try as well.

If you have two more HankoX login credentials, you could input like below:

login=T316371,mMYmjHoiKN,DEMO
login=T521251,wcBwojWxgxx,DEMO


> this HankoX copier also can work on Coinexx Alpha Trader which is another derivative platform of ActTrader.

If you use Coinexx Alpha Trader, just add one more word, Alpha, at login line.  Below is my demo account credential at Coinexx Alpha Trader that you could use it to try as well.

login=T1829,4Rkb1WcaQ4,DEMO,Alpha


5. Run 'HankoX Bridge app' 

- Click 'Copy Start' button to start

- Wait for 'Authorized and logged in' message appears.




If you see any error, please check the login info at config.ini file.  Then click 'Copy Start' to reload that config.ini file.

You can click 'Copy Start' again to stop or to resume.


6. Below are MT4/MT5 copier ea variable explanation:

- Trade account id - please input *one* trade account id that is set at bridge app's config.ini file.  if you have set two more trade accounts at config.ini file, open another MT4/MT5 chart and attach this copier ea and input another trade account id.

- Symbol mapping list - if HankoX instrument name is different with MetaTrader's, please input as below format 

MT4/MT5's symbol name first, comma, then HankoX's, then semi-colon

BTCUSD,BITCOIN;

if two pairs, 

BICUSD,BITCOIN;XAUUSD,GOLD;


* If HankoX symbol name is EURUSD.HKT while MT4/MT5's EURUSD, this copier will auto do special process for postfix .HKT.  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 HankoX.

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

- Copy TP/SL price - default is disabled.  This copier will send out market order close to HankoX 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 HankoX if order hits TP/SL price - since HankoX 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 HankoX, 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 HankoX.  

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


- API Network Throttling? --> default is 'disabled'.  You could enable it if you're aware HankoX deploys network throttling (or rate limit) at later days.


- 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 

HKTCOPYDISABLE

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.












Popular posts from this blog

FREE EVALUATION WITH LIMITED SYMBOLS

TRADE COPIER USER GUIDE LIST

METATRADER TO NINJATRADER TRADE COPIER