Skip to content
All library documents

Overlaying Higher-Timeframe Moving Averages on a Chart

Article MQL5 code base

Summary

The document describes an indicator that displays a moving average calculated from a selected timeframe on a chart using the current timeframe. This lets a trader view a broader timeframe’s moving-average level alongside the finer-grained chart, providing context across timeframes.

A second moving average can be enabled through an external parameter, allowing the chart to show the two averages together and their intersection. The description does not specify the averaging method, period settings, signal rules, or how crossovers should be interpreted. It offers no performance evidence or trading results, so the indicator is best understood as a charting aid rather than a validated strategy. Any use as an entry or exit signal would require separate testing and clear rules for timeframe selection and crossover confirmation.

Key ideas

  • The indicator plots a moving average from a selected timeframe on the current chart.
  • An optional second average can be activated to display intersections between the averages.
  • The description provides no periods, signal rules, or performance evidence.

Tags

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