- Put the mql_socket.dll in you experts/library MetaTrader 4 Folder.
- Put the SAMPLE.mq4 in you experts MetaTrader 4 Folder.
- Run you application in the port 20007 of 127.0.0.1 (you computer)
- Compile and run SAMPLE.mq4 and wait for packets you C++ Application
- After receive packet in you application immediately send back a string with \n example "9\n"
- After sending and receiving text strings create you protocol for communication between MetaTrader 4 and you C++ application over network
Build using Visual Studio 8.
Remember to change the dll location to the experts\library folder for you Metatrader 4 folder.
= Compile the *.mq4 =
The file SAMPLE.mq4 is a test EA.
The EA send the data and receive in procedural way, you need to send back data to EA after you received data,
for simple test send "0\n" each time the EA send data for you C++ application.