Calling MT4 or MT5 from externa program

 

Is it possible to call MT4 or MT5 from an external program written in C++ or Visual Basic?

And possibly pass some information?

 
the mt4 calls the c++ DLL
 
ingvar_e:

Is it possible to call MT4 or MT5 from an external program written in C++ or Visual Basic?

And possibly pass some information?


The easiest way to exchange information would be using "named pipes". Essentially a named pipe is a special fifo in-memory file that is provided by the OS.

See pipeClient and pipeServer.mq4 here:

http://www.forexfactory.com/showthread.php?p=4136628

Good Luck,
Armin

 
____ao:


The easiest way to exchange information would be using "named pipes". Essentially a named pipe is a special fifo in-memory file that is provided by the OS.

See pipeClient and pipeServer.mq4 here:

http://www.forexfactory.com/showthread.php?p=4136628

Good Luck,
Armin


Thanks,

I realized I could use mySQL as an intermediate agent, I already have code to get data from mySQL to MT4. I could just ask mySQL at regular intervals if there is a request for data.

It also means that communication could be over internet. I will take this approach. There is no need for instant response so it will work OK

Reason: