See an example here : https://www.mql5.com/en/articles/503
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.
You are missing trading opportunities:
- Free trading apps
- Over 8,000 signals for copying
- Economic news for exploring financial markets
Registration
Log in
You agree to website policy and terms of use
If you do not have an account, please register
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