Best practices for ZMQ Context creation in MetaTrader
masterIn ZeroMQ, a Context is the container for all sockets in a process. Since all Scripts and Expert Advisors in MetaTrader share the same terminal process, you should use a single global context across all your MQL programs to avoid having separate, isolated ZeroMQ instances.
To achieve this, use the shared parameter of the Context constructor with a unique, hard-to-guess string to synchronize context creation and destruction across different MQL programs.
Example shared name: __3kewducdxhkd__