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?
В течение некоторого времени я думал над возможными способами взаимодействия между терминалами MetaTrader 5. Моя цель состояла в том, чтобы использовать тиковый индикатор и показывать тики от различных поставщиков котировок в одном из терминалов. Естественное решение было в использовании отдельных файлов на жестком диске - один терминал будет...
Allow the use of cookies to log in to the MQL5.com website.
Please enable the necessary setting in your browser, otherwise you will not be able to log in.
You are signed in. Two-factor authentication has been disabled. Set it up again and scan a new QR code, or continue with two-factor authentication disabled.
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.
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.