diff --git a/vix_vix3m_ratio.pine b/vix_vix3m_ratio.pine new file mode 100644 index 0000000..35614ba --- /dev/null +++ b/vix_vix3m_ratio.pine @@ -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) \ No newline at end of file