Download MetaTrader 5

Setting up a named pipe

To add comments, please log in or register
Add our Facebook page to friends. Follow the latest news!
Ingvar Engelbrecht
4504
Ingvar Engelbrecht 2015.09.20 12:16 

I want to send information about a trade oppurtunity from MT5 to MT4.

What i wonder about is in what order things should be done.

My idea is that the receiver should create the pipe and "listen" and the sender should open and send

Receiver:

 - Create, Open, Send

Receiver:

 - Open, Read, Flush, Close at intervalls

if Open fail interpret as no data


I am not sure if this is the correct way to do it so I accept any suggestions

Alain Verleyen
Moderator
30744
Alain Verleyen 2015.09.20 12:19  

See an example here : https://www.mql5.com/en/articles/503

Communicating With MetaTrader 5 Using Named Pipes Without Using DLLs
Communicating With MetaTrader 5 Using Named Pipes Without Using DLLs
  • 2012.10.15
  • MetaQuotes Software Corp.
  • www.mql5.com
Many developers face the same problem - how to get to the trading terminal sandbox without using unsafe DLLs. One of the easiest and safest method is to use standard Named Pipes that work as normal file operations. They allow you to organize interprocessor client-server communication between programs. Take a look at practical examples in C++ and MQL5 that include server, client, data exchange between them and performance benchmark.
To add comments, please log in or register