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).
نص برمجي مفتوح المصدر
بروح TradingView الحقيقية، قام مبتكر هذا النص البرمجي بجعله مفتوح المصدر، بحيث يمكن للمتداولين مراجعة وظائفه والتحقق منها. شكرا للمؤلف! بينما يمكنك استخدامه مجانًا، تذكر أن إعادة نشر الكود يخضع لقواعد الموقع الخاصة بنا.
إخلاء المسؤولية
لا يُقصد بالمعلومات والمنشورات أن تكون، أو تشكل، أي نصيحة مالية أو استثمارية أو تجارية أو أنواع أخرى من النصائح أو التوصيات المقدمة أو المعتمدة من TradingView. اقرأ المزيد في شروط الاستخدام.
نص برمجي مفتوح المصدر
بروح TradingView الحقيقية، قام مبتكر هذا النص البرمجي بجعله مفتوح المصدر، بحيث يمكن للمتداولين مراجعة وظائفه والتحقق منها. شكرا للمؤلف! بينما يمكنك استخدامه مجانًا، تذكر أن إعادة نشر الكود يخضع لقواعد الموقع الخاصة بنا.
إخلاء المسؤولية
لا يُقصد بالمعلومات والمنشورات أن تكون، أو تشكل، أي نصيحة مالية أو استثمارية أو تجارية أو أنواع أخرى من النصائح أو التوصيات المقدمة أو المعتمدة من TradingView. اقرأ المزيد في شروط الاستخدام.