Skip to content
All library documents

Combining Cross-Platform Trade Signals for Expert Advisors

Article MQL5 articles

Summary

The article presents a signal framework for Expert Advisors intended to work in both MQL4 and MQL5. A signal class evaluates a market condition, while a container combines multiple signals. For entries, non-neutral signals must agree on direction; a void signal acts as a veto. Neutral signals abstain and leave the decision to the remaining inputs. Exit signals are combined cumulatively, so each can contribute to closing positions. This design gives individual signals explicit control over the final decision instead of adding their strengths into a single score.

The article also describes initialization, indicator refresh, signal checking, and cleanup, with examples combining moving averages and Heiken Ashi. It compares the framework with CExpertSignal and notes compatibility constraints arising from differences between the platforms. The examples illustrate implementation and testing in MetaTrader, but the document provides no quantified trading-performance evidence. The framework structures signal logic; it does not establish that the underlying indicators or combined rules are profitable.

Key ideas

  • Entry signals must agree on direction, while a void entry signal vetoes the other signals.
  • Neutral signals abstain, allowing the remaining signals to determine the entry decision.
  • Exit signals act independently and their effects are accumulated to determine which positions to close.
  • The framework separates signal evaluation from order management and is designed for MQL4 and MQL5.
  • Moving-average and Heiken Ashi examples demonstrate implementation, but do not prove strategy profitability.

Tags

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