OPEN-SOURCE SCRIPT
已更新 Symbol Volatility Mapper

# Symbol Volatility Mapper
## Overview
Symbol Volatility Mapper automatically selects and plots the corresponding volatility index for the active chart symbol.
The script is designed to simplify cross-asset volatility analysis by linking major equity indices and selected commodity futures to their commonly referenced implied volatility benchmarks. This allows traders to monitor the relevant volatility regime directly from the underlying chart without manually switching between symbols.
## Supported Mappings
- **SPX / ES** -> `CBOE:VIX`
- **NDX / NQ** -> `CBOE:VXN`
- **RUT / RTY** -> `CBOE:RVX`
- **DAX / FDAX** -> `EUREX:VDAX-NEW`
- **Gold / GC** -> `CBOE:GVZ`
- **Crude Oil / CL** -> `CBOE:OVX`
## Features
- Automatic symbol recognition using `syminfo.ticker` and `syminfo.root`
- Dynamic mapping of the active chart to its corresponding volatility index
- Clean volatility plot in a separate pane
- On-chart label showing the currently active symbol mapping
- Graceful fallback when no supported mapping is available
## How It Works
The indicator checks the active chart symbol and determines whether it matches one of the supported index or futures roots. Once a valid match is found, the script requests the `close` data of the corresponding volatility index and plots it in real time.
This approach makes it easier to compare price action in the underlying market with its associated implied volatility measure, which can be useful for context, regime identification, and discretionary decision-making.
## Typical Use Cases
- Monitoring implied volatility alongside major equity indices
- Tracking sentiment shifts in SPX, NDX, and RUT through VIX, VXN, and RVX
- Observing volatility conditions in Gold and Crude Oil markets
- Keeping the relevant volatility benchmark visible without manually changing symbols
## Notes
This script is intended for use in a separate pane (`overlay=false`).
Mapped symbols must be available through your TradingView data feed. Depending on the exchange or subscription plan, some volatility indices may not be accessible for all users.
## Release Notes
### Version 1.0.0
Initial public release.
- Added automatic volatility index mapping based on the active chart symbol
- Added support for SPX / VIX
- Added support for NDX / VXN
- Added support for RUT / RVX
- Added support for DAX / VDAX-NEW
- Added support for Gold / GVZ
- Added support for Crude Oil / OVX
- Added an on-chart label displaying the active mapping
## Disclaimer
This indicator is provided for informational and educational purposes only. It does not constitute financial advice, investment guidance, or a recommendation to buy or sell any instrument.
## Overview
Symbol Volatility Mapper automatically selects and plots the corresponding volatility index for the active chart symbol.
The script is designed to simplify cross-asset volatility analysis by linking major equity indices and selected commodity futures to their commonly referenced implied volatility benchmarks. This allows traders to monitor the relevant volatility regime directly from the underlying chart without manually switching between symbols.
## Supported Mappings
- **SPX / ES** -> `CBOE:VIX`
- **NDX / NQ** -> `CBOE:VXN`
- **RUT / RTY** -> `CBOE:RVX`
- **DAX / FDAX** -> `EUREX:VDAX-NEW`
- **Gold / GC** -> `CBOE:GVZ`
- **Crude Oil / CL** -> `CBOE:OVX`
## Features
- Automatic symbol recognition using `syminfo.ticker` and `syminfo.root`
- Dynamic mapping of the active chart to its corresponding volatility index
- Clean volatility plot in a separate pane
- On-chart label showing the currently active symbol mapping
- Graceful fallback when no supported mapping is available
## How It Works
The indicator checks the active chart symbol and determines whether it matches one of the supported index or futures roots. Once a valid match is found, the script requests the `close` data of the corresponding volatility index and plots it in real time.
This approach makes it easier to compare price action in the underlying market with its associated implied volatility measure, which can be useful for context, regime identification, and discretionary decision-making.
## Typical Use Cases
- Monitoring implied volatility alongside major equity indices
- Tracking sentiment shifts in SPX, NDX, and RUT through VIX, VXN, and RVX
- Observing volatility conditions in Gold and Crude Oil markets
- Keeping the relevant volatility benchmark visible without manually changing symbols
## Notes
This script is intended for use in a separate pane (`overlay=false`).
Mapped symbols must be available through your TradingView data feed. Depending on the exchange or subscription plan, some volatility indices may not be accessible for all users.
## Release Notes
### Version 1.0.0
Initial public release.
- Added automatic volatility index mapping based on the active chart symbol
- Added support for SPX / VIX
- Added support for NDX / VXN
- Added support for RUT / RVX
- Added support for DAX / VDAX-NEW
- Added support for Gold / GVZ
- Added support for Crude Oil / OVX
- Added an on-chart label displaying the active mapping
## Disclaimer
This indicator is provided for informational and educational purposes only. It does not constitute financial advice, investment guidance, or a recommendation to buy or sell any instrument.
版本注释
Add Rank & Percentile开源脚本
秉承TradingView的精神,该脚本的作者将其开源,以便交易者可以查看和验证其功能。向作者致敬!您可以免费使用该脚本,但请记住,重新发布代码须遵守我们的网站规则。
免责声明
这些信息和出版物并非旨在提供,也不构成TradingView提供或认可的任何形式的财务、投资、交易或其他类型的建议或推荐。请阅读使用条款了解更多信息。
开源脚本
秉承TradingView的精神,该脚本的作者将其开源,以便交易者可以查看和验证其功能。向作者致敬!您可以免费使用该脚本,但请记住,重新发布代码须遵守我们的网站规则。
免责声明
这些信息和出版物并非旨在提供,也不构成TradingView提供或认可的任何形式的财务、投资、交易或其他类型的建议或推荐。请阅读使用条款了解更多信息。