OPEN-SOURCE SCRIPT
Period Range Visualizer

Period Range Visualizer is a Pine Script v6 overlay indicator that visualizes higher-period market structure directly on the chart.
It shows the active period high, low, open, bar-change value, bullish/bearish range boxes, labels, sweep markers, sweep candle coloring, current big candle projection, and previous candle projections.
Auto Timeframe Alignment:
1m chart → 15m period
5m chart → 1h period
15m chart → 4h period
1h chart → 1D period
Other chart timeframes use the manual period setting.
Key Features:
- Current period range boxes
- High, low, open, and bar-change value lines
- Previous high/low extension into the active period
- Previous high sweep and previous low sweep detection
- Sweep candle overlay coloring
- Current big candle projection
- Previous candle projections with weekday labels
- Customizable labels, colors, line styles, widths, and candle settings
This indicator is designed for traders who want a clean visual read of higher-period range behavior, liquidity sweeps, and active-period structure without manually switching timeframes.
It shows the active period high, low, open, bar-change value, bullish/bearish range boxes, labels, sweep markers, sweep candle coloring, current big candle projection, and previous candle projections.
Auto Timeframe Alignment:
1m chart → 15m period
5m chart → 1h period
15m chart → 4h period
1h chart → 1D period
Other chart timeframes use the manual period setting.
Key Features:
- Current period range boxes
- High, low, open, and bar-change value lines
- Previous high/low extension into the active period
- Previous high sweep and previous low sweep detection
- Sweep candle overlay coloring
- Current big candle projection
- Previous candle projections with weekday labels
- Customizable labels, colors, line styles, widths, and candle settings
This indicator is designed for traders who want a clean visual read of higher-period range behavior, liquidity sweeps, and active-period structure without manually switching timeframes.
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.
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.
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.