Skip to content
All library documents

Matching Moving Average Periods Across Chart Timeframes

Article MQL5 code base

Summary

This short note describes calculating a moving average in relation to the timeframe currently displayed, so that averages on different chart intervals can represent comparable spans of market activity. Its example compares an exponential moving average of closing prices with a period of 16 on a 15-minute chart and a period of 48 on a 5-minute chart. The author says the resulting averages correspond to similar market structure across those views.

The practical idea is to scale the moving-average period with the ratio between chart intervals when seeking a comparable smoothing horizon. The document offers an illustrative comparison, not a formal derivation, chart data, or performance test. It does not discuss how the approach handles session gaps, irregular bars, or platform-specific multi-timeframe calculations, and it gives no entry, exit, or risk rules. Traders should treat the example as a charting convention rather than evidence that the matched averages generate profitable signals.

Key ideas

  • A moving-average period can be scaled to approximate the same time span on charts with different bar intervals.
  • The example pairs a 16-period exponential average on a 15-minute chart with a 48-period average on a 5-minute chart.
  • The note frames the comparison as visual alignment with market structure across timeframes.
  • It provides no signal rules or evidence that the approach improves trading results.

Tags

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