MetaTrader 5 OHLC Socket Feed

Заказчик: AI | Опубликовано: 22.01.2026
Бюджет: 250 $

I need an MQL5 script that runs inside MetaTrader 5, builds bid-ask OHLC bars for any timeframe I specify, and pushes each completed bar to a network socket with no more than one-second delay after the bar close (at the hourly boundary). The feed must handle both major and minor currency pairs simultaneously; I will choose the symbols to stream at runtime, so please make pair selection fully parameter-driven. The socket payload can be JSON, CSV, or another lightweight format you suggest, as long as it carries symbol, timeframe, timestamp, bid-open, bid-high, bid-low, bid-close, ask-open, ask-high, ask-low, and ask-close. A simple keep-alive or heartbeat message every few seconds would also be appreciated to confirm connectivity. I would also like a python script to be able to verify the socket connection, and to act as the server receiver for the MQL5 script. It simply needs to receive each bar and print it's details. Deliverables • Well-commented .mq5 source file ready to compile in the latest MetaTrader 5 build • A brief readme explaining configurable inputs (timeframe, symbols, host, port, message format) and how to launch multiple instances if needed • A minimal Python or shell listener script that prints received bars, so I can test end-to-end immediately Acceptance criteria • Bar arrives at the listener within one second of the terminal timestamp for close • Data for at least 4 major pairs and 8 minor pairs streams concurrently without missed bars over a 24-hour test run • No memory leaks or thread contention • Verified hourly bars against historical broker data (dukascopy, via dukascopy-python: https://pypi.org/project/dukascopy-python/). That is the full scope. Let me know if you foresee any platform limitations or have format recommendations before you start coding.