Skip to content
All library documents

Displaying Moving Average Levels Across Six Chart Timeframes

Article MQL5 code base

Summary

This indicator overlays levels from six moving averages, each calculated on a selectable timeframe and displayed in the active chart window. The example defaults span short intraday intervals through daily data, allowing a trader to compare price with several horizons without changing charts. Each average can be enabled or hidden independently.

Users can configure the timeframe, moving-average method, period, applied price, and signal bar for each line. Display options include colors for rising, flat, and falling levels, as well as text placement, line style, width, and level length. The documented defaults use exponential averages with the same period, but the inputs permit other settings. The source describes a charting aid rather than an entry or exit strategy: it gives no trading rules, performance evidence, or guidance for interpreting disagreements among timeframes. It also does not establish that signals from the displayed levels predict future price movements.

Key ideas

  • The indicator displays moving average levels from six independently configurable timeframes on one active chart.
  • Each average can be shown or hidden and configured with its own period, method, applied price, and signal bar.
  • The example defaults use exponential averages across intraday and daily timeframes.
  • Visual settings include colors for directional states, text placement, line style, width, and display length.
  • The description provides no trading rules or evidence that the displayed levels predict returns.

Tags

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