Skip to content
All library documents

Average Trading Range by Period, Price Basis, and Display Mode

Article MQL5 code base

Summary

The APR indicator displays the average price range for a selected period and timeframe. Users can define the range using either the high and low prices or the open and close prices. Results can be shown as absolute values or as relative percentages, giving users two ways to view the same range calculation.

Its inputs specify the timeframe, the period to summarize, the applied price basis, and the calculation mode. The examples describe viewing a daily range on an H4 chart and an H12 range on an H4 chart, illustrating that the measurement timeframe can differ from the chart timeframe. The document provides no formula details, numerical results, interpretation guidance, or evidence that the indicator predicts future movement. It is a configurable range display for examining historical price variation, and the source description alone does not establish how its outputs should inform a trading decision.

Key ideas

  • APR summarizes the average range over a selected period and timeframe.
  • The range can use high and low prices or open and close prices.
  • Values can be displayed in absolute units or as percentages.
  • The examples show range measurements on a chart with a different timeframe.

Tags

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