OPEN-SOURCE SCRIPT
Aggiornato X HL Range

dynamically maps high-low range boxes for custom time-bucket intervals without relying on security() calls. Each defined timeframe (e.g., 15-minute, 60-minute, or any user-selected value) produces a visual “range block” that captures the extremes (H/L) of price activity for that session bucket.
This tool is engineered to be lightweight, precise, and session-aware, avoiding repaint characteristics that can occur when referencing higher-timeframe candles directly. It builds the range locally in real-time, ensuring that traders always see authentic structure as it developed on the chart — not delayed or back-filled values.
The indicator can display one or both timeframes independently, with configurable display depth, color logic, and visual emphasis through fill and border toggles.
🎯 Key Features
Feature Description
Multi-timeframe bucket logic Builds range blocks locally using time calculations, not security()
Directional coloring Automatically adjusts based on up/down close of the completed range
Independent display controls Turn TF buckets on/off without affecting the other
Visual style management Independent fill + border toggles and opacity-aware color output
Historical depth control Automatically prunes oldest blocks to maintain visual clarity
Non-repainting Values are locked at bucket close and never adjusted backward
💡 Primary Use Cases
1️⃣ Intraday Structure Mapping
Traders who value intrablock liquidity zones, swing sweeps, or stop hunt regions can instantly see where price respected — or violated — previous time-based range extremes.
2️⃣ Volatility & Regime Shift Detection
Rapid compression or expansion across sequential blocks can be used to identify:
Transition from balance → imbalance
Trend exhaustion and reversal
The start of new initiative moves
3️⃣ Confluence Layering with:
VWAP (session, anchored, rolling)
Market profile / volume nodes
Opening range breakout systems
Session order flow frameworks
Mean-reversion and ATR-based models
Stacking multiple intervals (e.g., 15-min micro-range + 60-min macro-range) can highlight nested liquidity pockets, similar to structural mapping seen in professional execution models.
This tool is engineered to be lightweight, precise, and session-aware, avoiding repaint characteristics that can occur when referencing higher-timeframe candles directly. It builds the range locally in real-time, ensuring that traders always see authentic structure as it developed on the chart — not delayed or back-filled values.
The indicator can display one or both timeframes independently, with configurable display depth, color logic, and visual emphasis through fill and border toggles.
🎯 Key Features
Feature Description
Multi-timeframe bucket logic Builds range blocks locally using time calculations, not security()
Directional coloring Automatically adjusts based on up/down close of the completed range
Independent display controls Turn TF buckets on/off without affecting the other
Visual style management Independent fill + border toggles and opacity-aware color output
Historical depth control Automatically prunes oldest blocks to maintain visual clarity
Non-repainting Values are locked at bucket close and never adjusted backward
💡 Primary Use Cases
1️⃣ Intraday Structure Mapping
Traders who value intrablock liquidity zones, swing sweeps, or stop hunt regions can instantly see where price respected — or violated — previous time-based range extremes.
2️⃣ Volatility & Regime Shift Detection
Rapid compression or expansion across sequential blocks can be used to identify:
Transition from balance → imbalance
Trend exhaustion and reversal
The start of new initiative moves
3️⃣ Confluence Layering with:
VWAP (session, anchored, rolling)
Market profile / volume nodes
Opening range breakout systems
Session order flow frameworks
Mean-reversion and ATR-based models
Stacking multiple intervals (e.g., 15-min micro-range + 60-min macro-range) can highlight nested liquidity pockets, similar to structural mapping seen in professional execution models.
Note di rilascio
clean up TF overs 1HScript open-source
Nello spirito di TradingView, l'autore di questo script lo ha reso open source, in modo che i trader possano esaminarne e verificarne la funzionalità. Complimenti all'autore! Sebbene sia possibile utilizzarlo gratuitamente, ricordiamo che la ripubblicazione del codice è soggetta al nostro Regolamento.
Declinazione di responsabilità
Le informazioni e le pubblicazioni non sono intese come, e non costituiscono, consulenza o raccomandazioni finanziarie, di investimento, di trading o di altro tipo fornite o approvate da TradingView. Per ulteriori informazioni, consultare i Termini di utilizzo.
Script open-source
Nello spirito di TradingView, l'autore di questo script lo ha reso open source, in modo che i trader possano esaminarne e verificarne la funzionalità. Complimenti all'autore! Sebbene sia possibile utilizzarlo gratuitamente, ricordiamo che la ripubblicazione del codice è soggetta al nostro Regolamento.
Declinazione di responsabilità
Le informazioni e le pubblicazioni non sono intese come, e non costituiscono, consulenza o raccomandazioni finanziarie, di investimento, di trading o di altro tipo fornite o approvate da TradingView. Per ulteriori informazioni, consultare i Termini di utilizzo.