Nouvel article Communiquer avec MetaTrader 5 Utilisation des canaux nommés sans l'aide de DLL est publié:
Auteur: MetaQuotes
Hello I can not find file MQL5

- 2010.05.18
- Alexander
- www.mql5.com
Ok, I see. Reported to Service Desk.
You can download this file directly from your MT5 platform. Simply use the search tool with pipeclient keyword.
Ok, I see. Reported to Service Desk.
You can download this file directly from your MT5 platform. Simply use the search tool with pipeclient keyword.
Is any body using this client-sever? For what and how?
I read at the beginning:
"A script from the terminal will connect to this server and will exchange data with it."
May I ask how can I connect two clients running on two different terminals via this server? As far as I understand the server and the tests only one client connects to the server and what can this server do with the messages it has received?
Wouldn't it be necessary to have
1) an independent server waiting for multiple clients,
2) each client to start the connection by sending a unique ID of itself,
3) a server sending to every connected client any message that the server has received - may be except to the client it has got the message from,
4) a server sending each message beginning with the unique ID of the client which has sent the message?
- This way the client can detect its own messages and delete them - if they were send back by the server, by what ever reason.
- This way the client can detect the client(s) it should listen too - must be part of the mq4-code of the client.
Solution presented here does not work with Async Named Pipes. Please see https://www.mql5.com/en/forum/94343
Newgel

- www.mql5.com

- Free trading apps
- Over 8,000 signals for copying
- Economic news for exploring financial markets
You agree to website policy and terms of use
New article Communicating With MetaTrader 5 Using Named Pipes Without Using DLLs is published:
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.
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. Although there is an already published article A DLL-free solution to communicate between MetaTrader 5 terminals using Named Pipes on this topic that demonstrates enabling access to DLLs, we will use standard and safe features of client terminal.
You can find more information about named pipes in MSDN library, but we will get down to practical examples in C++ and MQL5. We will implement server, client, data exchange between them and then benchmark performance.
Author: MetaQuotes