OPEN-SOURCE SCRIPT

Correlation overlay

By sl-wk
Updated
The script is intended to indicate when the correlation between VIX and VVIX gets below 0, on the selecteted security chart. It makes sense to plot it on indicies. This aims to present how the chart of a security looked like when the divergance between VIX and VVIX happened.
Release Notes
Added some improvements - the main change was to detect a situation when VVIX was falling while VIX rising and exclude such cases from calc. This would cause the correlation to break but that's not the alarming market environment. It is the opposite case - when implied vol of VIX is rising (VVIX) while VIX is resting.
correlationVIX CBOE Volatility IndexVolatilityVVIX

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