Download MetaTrader 5

How to comunicate Java with MQL5?

To add comments, please log in or register
Publish your articles and improve your rating!
humbertobrandao Brandao
130
humbertobrandao Brandao 2015.01.29 13:13 

I studied sockets fo MQL5 and I concluded that it isn't a good option, because I can call java using sockets but I can't receive a response.

I studied files for MQL5 and I concluded that it isn't a good option, because I can get an event when a file is updated in MQL5. I will need to check every time if there is an update in the file, like a busy waiting in OS.

Do you have some sugestion for me?

I just need call a function in Java and get its response. 

many tks. 

humbertobrandao Brandao
130
humbertobrandao Brandao 2015.01.29 13:15  
humbertobrandao:

I studied sockets fo MQL5 and I concluded that it isn't a good option, because I can call java using sockets but I can't receive a response.

I studied files for MQL5 and I concluded that it isn't a good option, because I can get an event when a file is updated in MQL5. I will need to check every time if there is an update in the file, like a busy waiting in OS.

Do you have some sugestion for me?

I just need call a function in Java and get its response. 

many tks. 

Just to clarify: 

"How to communicate MQL5 with Java?" 

MQL5 function CALL Java, Java response, and MQL5 gets the result. 

Alain Verleyen
Moderator
30743
Alain Verleyen 2015.01.29 18:59  
humbertobrandao:

Just to clarify: 

"How to communicate MQL5 with Java?" 

MQL5 function CALL Java, Java response, and MQL5 gets the result. 

You need a "bridge" DLL. See this topic to get an idea.

I don't have experience with that, just used Google for 30 seconds.

Simple MT4 - Java bridge - MQL4 forum
  • www.mql5.com
Simple MT4 - Java bridge - MQL4 forum
To add comments, please log in or register