Discussion of article "Communicating With MetaTrader 5 Using Named Pipes Without Using DLLs" - page 7

[Deleted]  
Sorry for the nubian question, what does this do when using pips in applications like mt5 mt4 copier?
[Deleted]  
Or are the pips no longer relevant?
 

Is the server for one client? I'm trying to connect a second client, the connection doesn't open. 5004 error. The file name is the same as in the other client connected.

If I disconnect the first client, the second one connects. So one named channel is only one connection?

 

How to connect two MT clients via named channels?

Tried the code from here https://www.mql5.com/en/articles/115. It doesn't work. Connect method hangs.

Реализация взаимодействия между клиентскими терминалами MetaTrader 5 при помощи именованных каналов (Named Pipes)
Реализация взаимодействия между клиентскими терминалами MetaTrader 5 при помощи именованных каналов (Named Pipes)
  • www.mql5.com
В течение некоторого времени я думал над возможными способами взаимодействия между терминалами MetaTrader 5. Моя цель состояла в том, чтобы использовать тиковый индикатор и показывать тики от различных поставщиков котировок в одном из терминалов. Естественное решение было в использовании отдельных файлов на жестком диске - один терминал будет...
 
Salom
 
Can it possible to use in C#?
 

colleagues, can you please see if this example is working for you at the moment?

my tests on VS 2022 / VS 2026 + MT5 5570 + Win11

client can't open a pipe created by the server, INVALID_HANLE on FileOpen.

who has it working? how did you manage to run it?

similar example for MT4 - also does not work https://www.mql5.com/ru/forum/28683#comment_59076685

 

The problem turned out to be UAC.

the server was running with admin and MT without.

The problem is solved either by starting with the same permissions or by adding SECURITY_ATTRIBUTES to CreateNamedPipe with zeroed Dacl.