OPEN-SOURCE SCRIPT

Period Range Visualizer

3 218
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.

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.