VIX / VIX3M indicator, credit to @kerberos007

This commit is contained in:
moshferatu 2023-10-27 14:45:36 -07:00
parent 79da67ddd0
commit 6171301cf1

14
vix_vix3m_ratio.pine Normal file
View File

@ -0,0 +1,14 @@
// Credit to @kerberos007.
//@version=5
indicator("VIX / VIX3M", overlay = false)
vix = request.security("VIX", "D", close)
vix3m = request.security("VIX3M", "D", close)
vix_ratio = vix / vix3m
fastEMA = ta.ema(vix_ratio, 7)
slowEMA = ta.ema(vix_ratio, 12)
plot(fastEMA, color = color.green)
plot(slowEMA, color = color.red)