Skip to content
All library documents

Displaying an M2 Moving Average on a Selected Timeframe

Article MQL5 code base

Summary

This document describes a higher-timeframe variant of the M2_MA indicator for MetaTrader 5. Its input setting lets the user select the timeframe whose indicator values should be displayed, with a four-hour period shown as the default example. This can let a trader view a moving average calculated from a different chart interval.

The note identifies a dependency on the M2_MA indicator file and gives its required placement in the platform's indicators directory. It provides no formula, chart example, trading rules, or performance evidence, so it explains configuration rather than how to use the indicator profitably. The description also does not specify how values align across chart timeframes or address any risks of using higher-timeframe data.

Key ideas

  • The indicator adds a selectable timeframe input to an M2 moving average.
  • A four-hour timeframe is given as the default setting.
  • The underlying M2_MA indicator file must be installed for the higher-timeframe variant to work.
  • The document gives configuration details but no strategy or performance results.

Tags

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