OPEN-SOURCE SCRIPT
Rolling Pivot Points

The "Rolling Pivot Points" indicator, built in Pine Script (version 6) for TradingView, overlays dynamic pivot levels on a price chart. It calculates a 24-hour lookback period (length = 1440 / (timeframe.in_seconds() / 60)) using the prior period’s high, low, and close to determine a Pivot Point (vPP) and three resistance (vR1, vR2, vR3) and support (vS1, vS2, vS3) levels. Plotted lines include vPP (yellow), vR1 (red), and vS1 (blue) in a cross style, with a customizable reset time (default: 8 AM) to refresh levels daily.
The indicator updates at the specified resetTime (minute = 0), otherwise retaining prior levels, making it ideal for intraday traders. The averageDays input (default: 5) is present but unclear in function. Suited for identifying key price zones, it adapts across timeframes, offering a concise, color-coded tool for technical analysis on TradingView.
The indicator updates at the specified resetTime (minute = 0), otherwise retaining prior levels, making it ideal for intraday traders. The averageDays input (default: 5) is present but unclear in function. Suited for identifying key price zones, it adapts across timeframes, offering a concise, color-coded tool for technical analysis on TradingView.
Open-source script
In true TradingView spirit, the creator of this script has made it open-source, so that traders can review and verify its functionality. Kudos to the author! While you can use it for free, remember that republishing the code is subject to our House Rules.
For quick access on a chart, add this script to your favorites — learn more here.
Disclaimer
The information and publications are not meant to be, and do not constitute, financial, investment, trading, or other types of advice or recommendations supplied or endorsed by TradingView. Read more in the Terms of Use.
Open-source script
In true TradingView spirit, the creator of this script has made it open-source, so that traders can review and verify its functionality. Kudos to the author! While you can use it for free, remember that republishing the code is subject to our House Rules.
For quick access on a chart, add this script to your favorites — learn more here.
Disclaimer
The information and publications are not meant to be, and do not constitute, financial, investment, trading, or other types of advice or recommendations supplied or endorsed by TradingView. Read more in the Terms of Use.