Skip to content
All library documents

Q2MA Color-Change Signals for GBPUSD Trading

Article MQL5 code base

Summary

This document describes an Expert Advisor that generates a trading signal when a Q2MA indicator changes cloud color as a bar closes. An input setting can invert the signal direction, allowing the system to trade against the indicator’s implied trend. The advisor relies on a compiled indicator file and a supporting library that accommodates nonzero spreads and optional stop-loss and take-profit settings.

The document identifies a historical test on GBPUSD using four-hour bars for 2014, but gives no numerical performance metrics or detailed evaluation. It says the displayed tests used the default advisor settings and did not include stop-loss or take-profit exits. The signal rule is therefore clear, while evidence for its effectiveness, robustness, transaction-cost sensitivity, and behavior across other markets or periods is not provided.

Key ideas

  • The advisor signals when the Q2MA cloud changes color at bar close.
  • A configurable inversion setting makes it possible to trade against the signal’s implied trend.
  • The described historical test used GBPUSD four-hour data from 2014.
  • The reported test setup used default inputs and omitted stop-loss and take-profit levels.
  • No quantitative performance statistics or broader robustness checks are included.

Tags

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