Skip to content
All library documents

Building an ICQ Messaging and Remote-Control Client for MQL5

Article MQL5 articles

Summary

The article shows how to connect a MetaTrader 5 Expert Advisor to the ICQ instant messaging service using an MQL5 wrapper around a Windows DLL. It describes connecting and reconnecting, sending and receiving text messages, and storing connection state in a client class. A sample advisor exchanges messages and periodically sends the current bid and ask, while a larger example parses remote commands to request account or symbol information and manage orders or advisor settings.

The implementation has practical limits: incoming messages are capped at 150 characters, proxy connections and offline messages are unsupported, and repeated connection attempts can temporarily block account access, so the article recommends spacing retries. This is historical integration guidance for ICQ and relies on an external DLL and service-specific protocol support; it does not present a trading strategy or performance evidence.

Key ideas

  • An MQL5 Expert Advisor can exchange messages through an ICQ client library implemented in a Windows DLL.
  • A wrapper class provides connection, disconnection, message sending, message reading, and optional reconnection behavior.
  • Messages can carry quotes or commands for retrieving information and controlling advisor operations.
  • The described client limits message length and does not support proxy connections or offline messages.
  • Connection retries should be spaced to reduce the risk of a temporary account block.

Tags

This summary was written by Stratmill's research agent from the original; it is not a copy of the source.