OPEN-SOURCE SCRIPT
Volatility Heatmap & ATR Pane

# Volatility Heatmap & Synchronized ATR Pane
This indicator provides a comprehensive view of multi-symbol volatility, displaying a dynamic heatmap table and a synchronized ATR (Average True Range) panel. It is designed to help traders identify periods of abnormal market activity or "volatility squeezes" across multiple assets simultaneously.
## Methodology & Calculation:
The core metric of this tool is **Relative Volatility (Rel. Vol %)**. It compares the current ATR to its historical baseline to determine if the current price movement is expanding or contracting relative to the norm.
The calculation logic is as follows:
1. **ATR Calculation:** We calculate the ATR over a user-defined period (default is 14).
2. **Baseline SMA:** We calculate a Simple Moving Average of that ATR (default is 50).
3. **Relative Percentage:**
$$Rel. Vol \% = (Current ATR / SMA(ATR)) * 100$$
## Key Features:
* **Multi-Symbol Dashboard:** Monitor up to 10 custom symbols (e.g., BINANCE:BTCUSDT, BINANCE:ETHUSDT) in a single table.
* **No-Repaint MTF Logic:** Uses `request.security()` with `lookahead = barmerge.lookahead_off` to ensure data integrity and prevent any historical rewriting.
* **Dynamic Status Alerts:**
* **SLEEPING (<70%):** Extremely low volatility.
* **NORMAL (100-130%):** Standard market movement.
* **EXTREME (>200%):** Significant volatility spike, often preceding trend exhaustion or breakouts.
* **Synchronized Pane:** The bottom panel displays the raw ATR and its average for the chart's current symbol, perfectly aligned with the dashboard's timeframe.
## How to Use:
1. Add the script to your chart.
2. In the settings, input your preferred symbols under the "Symbols 1-10" section.
3. Use the "Volatility Timeframe" input to lock the calculation to a specific timeframe (e.g., 1D) or leave it empty to sync with your current chart.
4. Watch the "Rel. Vol %" column to spot assets that are starting to "wake up" (moving from Blue/Low to Green/Rising).
This indicator provides a comprehensive view of multi-symbol volatility, displaying a dynamic heatmap table and a synchronized ATR (Average True Range) panel. It is designed to help traders identify periods of abnormal market activity or "volatility squeezes" across multiple assets simultaneously.
## Methodology & Calculation:
The core metric of this tool is **Relative Volatility (Rel. Vol %)**. It compares the current ATR to its historical baseline to determine if the current price movement is expanding or contracting relative to the norm.
The calculation logic is as follows:
1. **ATR Calculation:** We calculate the ATR over a user-defined period (default is 14).
2. **Baseline SMA:** We calculate a Simple Moving Average of that ATR (default is 50).
3. **Relative Percentage:**
$$Rel. Vol \% = (Current ATR / SMA(ATR)) * 100$$
## Key Features:
* **Multi-Symbol Dashboard:** Monitor up to 10 custom symbols (e.g., BINANCE:BTCUSDT, BINANCE:ETHUSDT) in a single table.
* **No-Repaint MTF Logic:** Uses `request.security()` with `lookahead = barmerge.lookahead_off` to ensure data integrity and prevent any historical rewriting.
* **Dynamic Status Alerts:**
* **SLEEPING (<70%):** Extremely low volatility.
* **NORMAL (100-130%):** Standard market movement.
* **EXTREME (>200%):** Significant volatility spike, often preceding trend exhaustion or breakouts.
* **Synchronized Pane:** The bottom panel displays the raw ATR and its average for the chart's current symbol, perfectly aligned with the dashboard's timeframe.
## How to Use:
1. Add the script to your chart.
2. In the settings, input your preferred symbols under the "Symbols 1-10" section.
3. Use the "Volatility Timeframe" input to lock the calculation to a specific timeframe (e.g., 1D) or leave it empty to sync with your current chart.
4. Watch the "Rel. Vol %" column to spot assets that are starting to "wake up" (moving from Blue/Low to Green/Rising).
Script open-source
Dans l'esprit TradingView, le créateur de ce script l'a rendu open source afin que les traders puissent examiner et vérifier ses fonctionnalités. Bravo à l'auteur! Bien que vous puissiez l'utiliser gratuitement, n'oubliez pas que la republication du code est soumise à nos Règles.
Clause de non-responsabilité
Les informations et publications ne sont pas destinées à être, et ne constituent pas, des conseils ou recommandations financiers, d'investissement, de trading ou autres fournis ou approuvés par TradingView. Pour en savoir plus, consultez les Conditions d'utilisation.
Script open-source
Dans l'esprit TradingView, le créateur de ce script l'a rendu open source afin que les traders puissent examiner et vérifier ses fonctionnalités. Bravo à l'auteur! Bien que vous puissiez l'utiliser gratuitement, n'oubliez pas que la republication du code est soumise à nos Règles.
Clause de non-responsabilité
Les informations et publications ne sont pas destinées à être, et ne constituent pas, des conseils ou recommandations financiers, d'investissement, de trading ou autres fournis ou approuvés par TradingView. Pour en savoir plus, consultez les Conditions d'utilisation.