Skip to content
All library documents

Using Intraday Session Ranges to Gauge Typical Price Movement

Article MQL5 code base

Summary

This indicator marks a chosen intraday session on historical charts, drawing a rectangle from that session’s high to its low. The user can set the session start and end times, including sessions that cross midnight. Across a selected lookback, it reports the average, minimum, maximum, and standard deviation of session ranges, offering a descriptive benchmark for how much prices have moved during that window.

The guidance suggests treating movement within one average intraday range as potentially ordinary fluctuation and movement beyond it as a possible sign of stronger momentum. It also explains a tradeoff in the lookback: shorter histories react more quickly to changing conditions, while longer histories produce steadier benchmarks. The document offers suggested short and longer lookback spans, but supplies no empirical validation, market-specific calibration, or evidence that these range comparisons predict continuation. The measure is descriptive and should be interpreted in the context of the instrument and changing volatility.

Key ideas

  • The indicator draws each selected session’s high-to-low range on the chart.
  • Users can define custom session hours, including periods that cross midnight.
  • It summarizes historical ranges with average, minimum, maximum, and standard deviation.
  • The suggested range comparison is a heuristic for distinguishing ordinary movement from possible momentum.
  • Longer lookbacks stabilize estimates but may adapt more slowly to regime changes.

Tags

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