Skip to content
All library documents

Moving Average from Rolling High and Low Prices

Article MQL5 code base

Summary

The indicator draws a moving-average line based on the lowest and highest prices within a rolling bar window. For each bar, the referenced range runs from the current bar back through the specified period, so the line reflects recent price extremes rather than a single applied price alone.

It has two inputs: the period length and an applied-price selection. The description does not include the displayed formula, so the precise way the rolling minimum and maximum are combined cannot be confirmed from the text. It also supplies no chart examples, performance evidence, or trading rules. This is a description of a technical indicator, not evidence that its output forecasts prices or supports a profitable strategy.

Key ideas

  • The indicator plots a moving average derived from high and low prices.
  • Its rolling range covers the current bar and the preceding bars within the selected period.
  • The user chooses both the period and the applied price.
  • The description omits the actual formula, examples, and performance evidence.

Tags

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