Skip to content
All library documents

Calculating Intraday Pivot Levels from a Chosen Time Window

Article ProRealCode

Summary

This document presents an intraday pivot indicator built from the high, low, and closing price observed during a user-defined time window. The start and end hour and minute can be changed. After the window, the calculation uses its price range and average of the high, low, and close to derive a pivot point, then projects resistance and support levels using multiples of that range. The levels are intended as reference points for intraday chart analysis.

The material is a code example attributed to a forum contributor, with no backtest, trading rules, or performance evidence. It does not explain how to enter or exit trades at the levels, and the chosen window, market session, instrument, and chart timeframe can affect the outputs. Users should also verify the implementation in their platform: the displayed logic contains an apparent inconsistent variable name in one support calculation, and session-boundary behavior is not discussed. The indicator alone does not establish that these levels predict price reactions.

Key ideas

  • The indicator captures the high, low, and close within configurable start and end times.
  • It calculates a central pivot from those prices and derives support and resistance levels using the observed range.
  • The levels are reference values; the document supplies no entry, exit, or risk-management rules.
  • The example includes no historical testing or evidence of predictive performance.
  • The code should be checked for implementation and session-boundary issues before use.

Tags

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