OPEN-SOURCE SCRIPT

Volatility Rainbow [Nic]

Updated
What is this
The volatility rainbow tracks divergences in a security and its volatility index. This can be used to identify periods of heightened implied (future) risk.

About Volatility
The volatility is calculated by looking at put / call ratios. When VIX goes up it means that puts are outpacing calls. This is a bearish signal.

About Correlation
When the security goes up while the VIX goes up, the divergence on the plot will increase and turn a color. This should be a warning.

Colors

RED - DIA
BLUE - SPX
GREEN - IWM
GOLD - GLD
YELLOW - QQQ
ORANGE - TLT
White- VVIX

Related
Volatility Prism [Nic]
Release Notes
Added background colors
Release Notes
Code cleanup
Volatility

Open-source script

In true TradingView spirit, the author of this script has published it open-source, so traders can understand and verify it. Cheers to the author! You may use it for free, but reuse of this code in publication is governed by House rules. You can favorite it to use it on a chart.

Want to use this script on a chart?

Disclaimer