Search code examples
mql4mt4

MT4 communication methods


I have tried but couldn't figure it out on my own.

I know MT4 provides Pipe and WebRequest(), as a means of communication, but WebSocket isn't built as part of the Programming. So for now, Pipe is the only thing available. But communication with Pipe breaks at some point. It skips some signals when sent.

How can I get around this please guys?


Solution

  • How can I get around this please guys ?

    Free to use either a ZeroMQ or a nanomsg signalling / messaging framework

    having been in such a need many years back, started to use ZeroMQ / MQL4-binding, so as to make MetaTrader Terminal work inside a QuantFX-analytics and ML-based augmented trading system.

    No O/S localhost-only pipe, no file-based masquerades, but a fair, distributed, low-latency signalling/messaging, with:

    • remote keyboard / terminal system-console ( yes, added a DSL command language )
    • remote centralised logs ( avoids MQL4 execution get blocked from resource contentions )
    • distributed remote AI/ML-predictive engine, with latency under << 80 [ms] RTT
    • distributed remote automated trade-management processing

    ZeroMQ is a way to go, if integration needs are to be kept under your own design controls. A brief sketch was presented here, in [ ZeroMQ hierarchy in less than a five seconds ] Section.

    Feel free to read more posts on this and about the differences between WebSockets and ZeroMQ here, in the and other related posts.