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.
Mã nguồn mở
Theo đúng tinh thần TradingView, tác giả của tập lệnh này đã công bố nó dưới dạng mã nguồn mở, để các nhà giao dịch có thể xem xét và xác minh chức năng. Chúc mừng tác giả! Mặc dù bạn có thể sử dụng miễn phí, hãy nhớ rằng việc công bố lại mã phải tuân theo Nội quy.
Thông báo miễn trừ trách nhiệm
Thông tin và các ấn phẩm này không nhằm mục đích, và không cấu thành, lời khuyên hoặc khuyến nghị về tài chính, đầu tư, giao dịch hay các loại khác do TradingView cung cấp hoặc xác nhận. Đọc thêm tại Điều khoản Sử dụng.
Mã nguồn mở
Theo đúng tinh thần TradingView, tác giả của tập lệnh này đã công bố nó dưới dạng mã nguồn mở, để các nhà giao dịch có thể xem xét và xác minh chức năng. Chúc mừng tác giả! Mặc dù bạn có thể sử dụng miễn phí, hãy nhớ rằng việc công bố lại mã phải tuân theo Nội quy.
Thông báo miễn trừ trách nhiệm
Thông tin và các ấn phẩm này không nhằm mục đích, và không cấu thành, lời khuyên hoặc khuyến nghị về tài chính, đầu tư, giao dịch hay các loại khác do TradingView cung cấp hoặc xác nhận. Đọc thêm tại Điều khoản Sử dụng.