Skip to content
All library documents

Using Higher-Timeframe X2MA Signals for Trend Context and Alerts

Article MQL5 code base

Summary

This MetaTrader indicator presents trend direction from a higher-timeframe X2MA calculation as a colored chart background. Pale colors represent continuation states, while brighter colors mark potential trade signals; it can also issue sound alerts and smartphone push notifications. Inputs let users choose the instrument, calculation timeframe, price series, and two smoothing methods with their respective lengths and phase settings. Session drawing and label appearance can also be configured.

Alerts depend on the selected signal bar. The document cautions that signals on the current, still-forming bar can change or disappear, making notifications based on that bar unreliable; it recommends using a later bar for alerts. Multiple copies on a chart need distinct label names. The page explains display and configuration behavior but supplies no performance evidence, entry or exit rules, or risk controls, so the signal should not be treated as a validated standalone strategy.

Key ideas

  • The indicator displays higher-timeframe X2MA trend direction through colored chart backgrounds.
  • Pale background colors indicate continuation, while brighter colors flag trade signals.
  • Users can configure the instrument, timeframe, smoothing methods, session display, and alerts.
  • Signals on the current bar may change before the bar closes, so alerts tied to it can be unreliable.
  • The document describes indicator operation but offers no strategy performance evidence.

Tags

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