Flash Banner
MT4/JForex Clients Bridge
Flash Banner
Flash Banner

MT4/JForex Clients Bridge

There is a great solution for those who want to trade using the Dukascopy JForex platform whilst taking advantage of the MetaTrader interface and its expert advisors.

MT4-JForex Clients Bridge - is a simple plug-in for the Dukascopy JForex platform. It transfers the trading signals from the Metatrader platform to JForex, receives notifications from MetaTrader log file and executes the transferred trading signals.

Generating new trading signals (Instant Execution or Pending Order), MetaTrader will log it into the file (format yyyymmdd.log), located in the logs directory where MetaTrader is installed. For JForex this bridge is a standard strategy which reads logs and transfers the trading signals to the JForex platform. JForex users can set up these signals for an automatic execution.

Order modifications, closing and pending orders delete are supported by MT4-JForex Clients Bridge 1.2 version. If a user modifies or closes his orders - the plugin traces it and does the same with orders opened on the Dukascopy JForex platform.

How it works, step by step:

1. To get the bridge, please download the latest version of ‘MT4JForexClientsBridge.zip '
from https://sourceforge.net/projects/mt4dukabridge/files/ 

2.

Unpack the zip archive and copy MT4JForexClientsBridge.java file into ~/My Documents/My Strategies/ folder.

This is a default folder where JForex platform will search for the strategies.

3. Run the JForex and MetaTrader platfroms.
4. In the JForex platform, please subscribe to all instruments you would like to trade. Then select “Strategies” tree node in the “Workspace” menu tree. Then right click on it, for “Open Strategy”:

If your previous steps were successful, you will find the MT4JForexClientsBridge.java file in ~/My Strategies.

5. JForex platform will open the strategy with its editor. Now you can compile it.
6. If the installation was successful, please run the strategy by pressing the “Run” button in the “Strategies” tree (you will be asked to accept the disclaimer before the strategy start).

7.

After the strategy launch you will see the “Define Parameters” window where you have to define the MetaTrader log file for the current day (you can find it in the “log” directory where MetaTrader was installed). Then please define a slippage for the orders and the lot amounts format difference between MetaTrader and JForex platforms. In MetaTrader 1 lot is equal to 100 000 but in Dukascopy 1 lot is equal to 1 000 000. So, by default the value should be equal to 0.1 – meaning that 1 MetaTrader lot = 0.1 JForex lot. If MT4 lot amount is equal to 10 000, please set the parameter = 0.01. Then press the “Run” button.

8. In JForex platform you will see the opened tab "MT4-JForex Client's Bridge" with two tables:


  • The first table displays the traced orders from MetaTrader. The second table displays transferred trading signals from the first table. 
  • If you want to execute automatically trading signals from MetaTrader, please select "Execute" radiobutton.
  • If you want to stop signals execution in JForex from MetaTrader just select "Monitor" radiobutton.
  • From ver. 1.7 the new checkbox - "Execute only by MetaTrader Approve" was added. By default the bridge sends trading signals to JForex directly by MQL strategy request. With this option, the signals will be sent only after MT4 server approval. In that case the speed of signals transfer will be reduced due to delay for MT4 server approve.

Comment: For the orders transferred from MT4 to JForex, rounding of prices till 1 pip is applied.

Hints:

  1. If you use “MT4-JForexClientsBridge.java” strategy very frequently you can hard-core the path to your file (see the code for an example).

  2. You can customize an execution by changing the strategy code. You can get the market prices with “getBidPrice(Instrument instrument)” and “getAskPrice(Instrument instrument)” methods.

  3. If you would like to execute only signals (Instant Execution) by equal or better price on JForex, then you can use the checkbox in Plugin "Execute at Equal or Better Price". Also you can define the "Pips Amount Difference" for this purpose. If you define zero, this means that the price can be equal to the MetaTrader price, if you define 2 that means that price in JForex must be better by 2 pips than the price shown on MetaTrader.

  4. Market Orders have price value equal to 0, in consequence the Price at trade time is unknown. That's why "Execute at Equal or Better Price" will not work with Market Orders. This feature works only with Instant Execution and Pending Orders (where the price is known).

  5.  Requoted Signals are ignored by plugins, only the first signal goes to JForex. It is done to prevent numerous signals on JForex and because "Requoted" signals are dependable on the MetaTrader broker.

  6. From ver. 1.6 the "bridge.log" file will be automatically created in the folder where MetaTrader log file is located. This file consists information about the bridge working process.

  7. From ver. 1.8 the instruments prefixes check was added in order to avoid additional prefixes set by MetaTrader brokers.

  8. From ver.1.8 the bridge supports partial orders execution.

     

Disclaimer: Please note, that MT4/JForex Clients Bridge is a third party software tool, distributed through third party sources. Dukascopy Bank SA simply provides information on existence and availability of this tool, does not participate in its development and testing and does not assume any responsibility whatsoever with respect to performance (or failure to perform) of this tool. As between Dukascopy Bank SA and the client, any use of this tool by the client will be at the client’s own risk. 

To learn more about JForex and other trading related information, please write us: info@dukascopy.com, call us: +41 (0) 22 799 4888 or alternatively ask for a call-back.


© 1998-2012 Dukascopy® Bank SA
Operaciones FOREX en línea con corredor suizo - Corretaje interbancario,
Cuentas administradas, Agentes Forex introductores de clientes, Noticias de flujo de datos Forex
Plataforma comercial Forex provista en línea por Dukascopy.com.