OPEN-SOURCE SCRIPT
Customizable Range Box

📦 Customizable Range Box (with Dynamic Chart Placement)
Description:
The Customizable Range Box is a versatile tool for visualizing candle range dynamics directly on the chart, now positioned at the top of the visible price area for better readability and reduced clutter.
🔍 Features:
📊 Real-Time Range Analysis:
Displays the current candle’s range
Compares to the average range over a set lookback period
Shows ATR, 1.5× ATR, and 2× ATR thresholds for volatility context
🎯 Dynamic Chart-Top Label Positioning:
Automatically floats the label above the chart’s visible price range
Keeps the label unobstructed regardless of zoom or bar size
🎨 Customizable Appearance:
Toggle label position: Top, Middle, or Bottom of candle (if desired)
Choose left/right label alignment
Set label text size: Small → Huge
Customize text color and background box color
🛠️ Ideal Use Cases:
Spotting volatility spikes or compressed bars
Comparing candles to historical range behavior
Identifying bars likely to trigger breakouts or traps
Enhancing discretionary entries with quantified context
Description:
The Customizable Range Box is a versatile tool for visualizing candle range dynamics directly on the chart, now positioned at the top of the visible price area for better readability and reduced clutter.
🔍 Features:
📊 Real-Time Range Analysis:
Displays the current candle’s range
Compares to the average range over a set lookback period
Shows ATR, 1.5× ATR, and 2× ATR thresholds for volatility context
🎯 Dynamic Chart-Top Label Positioning:
Automatically floats the label above the chart’s visible price range
Keeps the label unobstructed regardless of zoom or bar size
🎨 Customizable Appearance:
Toggle label position: Top, Middle, or Bottom of candle (if desired)
Choose left/right label alignment
Set label text size: Small → Huge
Customize text color and background box color
🛠️ Ideal Use Cases:
Spotting volatility spikes or compressed bars
Comparing candles to historical range behavior
Identifying bars likely to trigger breakouts or traps
Enhancing discretionary entries with quantified context
Script open-source
In pieno spirito TradingView, il creatore di questo script lo ha reso open-source, in modo che i trader possano esaminarlo e verificarne la funzionalità. Complimenti all'autore! Sebbene sia possibile utilizzarlo gratuitamente, ricorda che la ripubblicazione del codice è soggetta al nostro Regolamento.
Bullish above, bearish below. No thinking.
Declinazione di responsabilità
Le informazioni ed i contenuti pubblicati non costituiscono in alcun modo una sollecitazione ad investire o ad operare nei mercati finanziari. Non sono inoltre fornite o supportate da TradingView. Maggiori dettagli nelle Condizioni d'uso.
Script open-source
In pieno spirito TradingView, il creatore di questo script lo ha reso open-source, in modo che i trader possano esaminarlo e verificarne la funzionalità. Complimenti all'autore! Sebbene sia possibile utilizzarlo gratuitamente, ricorda che la ripubblicazione del codice è soggetta al nostro Regolamento.
Bullish above, bearish below. No thinking.
Declinazione di responsabilità
Le informazioni ed i contenuti pubblicati non costituiscono in alcun modo una sollecitazione ad investire o ad operare nei mercati finanziari. Non sono inoltre fornite o supportate da TradingView. Maggiori dettagli nelle Condizioni d'uso.