VIX / VIX3M indicator, credit to @kerberos007
This commit is contained in:
parent
79da67ddd0
commit
6171301cf1
14
vix_vix3m_ratio.pine
Normal file
14
vix_vix3m_ratio.pine
Normal 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)
|
Loading…
Reference in New Issue
Block a user