Skip to content
All library documents

Detecting and Transmitting MQL Trades to Web APIs

Article MQL5 code base

Summary

This document describes an Expert Advisor that monitors an account for trades and trade modifications, including actions made manually or by other EAs. When it detects a change, it can send the trade information over the web to a server or web application API. The stated message format is JSON, though the implementation may need adjustment to fit a particular API.

A second function, TransmitTradeRequest, is presented as a way for other algorithms to pass trade requests through an interface intended to substitute for MQL5’s OnTrade event function. The material explains integration capabilities rather than a trading strategy or signal. It gives no code details, latency measurements, reliability evidence, security discussion, or supported API examples, and notes that adapting transmission to an API may require professional coding. It is best read as a high-level description of trade-event monitoring and forwarding, with implementation behavior dependent on the EA and the receiving service.

Key ideas

  • The EA detects account trades and modifications, whether initiated manually or by other EAs.
  • Detected trade information can be sent to a server or web application API.
  • JSON is the current message format, and API-specific adaptation may be required.
  • Other algorithms can use TransmitTradeRequest as an alternative interface to the MQL5 OnTrade function.
  • The document gives no performance or reliability evidence and does not provide implementation details.

Tags

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