Skip to content
All library documents

Using Two-Timeframe Moving-Average Clouds to Show Trend Direction

Article MQL5 code base

Summary

The document describes an indicator that plots two ColorX2MA lines calculated on separate, selectable timeframes and fills the space between them with a cloud. The cloud color is intended to represent the prevailing trend direction. Its inputs allow users to choose each timeframe, smoothing method, smoothing depth, method-specific parameters, applied price, and horizontal or vertical shifts. The provided defaults use hourly and four-hour charts, close prices, and different averaging methods and lengths.

This is an indicator description and parameter excerpt, not a complete trading strategy. It does not define explicit entry or exit rules, explain how cloud color is determined, or provide backtest evidence. The text notes that the underlying ColorX2MA indicator must be installed for this indicator to operate. No market, chart performance, or robustness assessment is included, so the cloud should be treated as a visual trend aid whose behavior requires independent evaluation.

Key ideas

  • The indicator compares ColorX2MA lines calculated from two configurable timeframes.
  • A filled cloud between the lines uses color to indicate trend direction.
  • Users can configure smoothing methods, lengths, price input, and chart shifts.
  • The described indicator depends on a separately installed ColorX2MA component.
  • No entry rules or evidence of trading performance are provided.

Tags

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