Download MetaTrader 5

Update MQL4 600 & Named Pipes - page 4

To add comments, please log in or register
Lime
642
Lime 2014.12.15 17:17  
oscarin:

If someone still has problems managing named pipes in MT4 v600, this is the way I solved it:

  • Changing CreateNamedPipeA and CreateFileA, with CreateNamedPipeW and CreateFileW
  • Changing the declarations in ReadFile and WriteFile (Buffer), so, I can work with CharArrays (1 byte per character):

  • Using Char arrays to comunicate between the server and client:

Server:

Client:

I made the changes. But I get lot of error messages. I attached my file.
Files:
Carl Schreiber
6669
Carl Schreiber 2014.12.15 18:16  
I stopped using pipes as long as I didn't found a pipe-server outside of mt4 as a mt4-pipserver is blocking!
Lime
642
Lime 2014.12.15 18:20  
gooly:
I stopped using pipes as long as I didn't found a pipe-server outside of mt4 as a mt4-pipserver is blocking!
What do you use instead for communicate between two MT4?
Carl Schreiber
6669
Carl Schreiber 2014.12.15 18:36  

It wasn't between 2 mt4 but between a powershell script and a mt4 that send it's new positions.

As it wasn't time critical and primarily a kind of proof of concept I used normal files: mt4 opens (and seeks at the and) and adds the lines and powershell checks the existence of the file and reads and deletes it :(

I tried to connect to a running (local) socket server (to map in to out) as well but the mt4-socket-client never could establish a valid connection. :(

1234
To add comments, please log in or register