gb50k

SPY/VXX/TLT RSI crisscross

Are treasuries moving with VIX or are they correlated with equities?
Who's changing faster, VXX or SPY?

The indicator displays the RSI's of SPY, VXX and TLT so you can see how they are moving relative to each other.
开源脚本

本着真正的TradingView精神,该脚本的作者将其开源发布,以便交易者可以理解和验证它。为作者喝彩!您可以免费使用它,但在出版物中重复使用此代码受网站规则的约束。 您可以收藏它以在图表上使用。

免责声明

这些信息和出版物并不意味着也不构成TradingView提供或认可的金融、投资、交易或其它类型的建议或背书。请在使用条款阅读更多信息。

想在图表上使用此脚本?

study("SPY/VXX/TLT RSI crisscross")

m1=input(25,"RSI length")
m0=input(4,"ema #1 smooth on raw")
m2=input(15,"ema #2 smooth of RSI's")


spy=ema(security("spy" ,period  , close ),m0)
vxx=ema(security("vxx" ,period  , close ),m0)
tlt=ema(security("tlt" ,period  , close ),m0)

s=ema(rsi(spy,m1),m2)
v=ema(rsi(vxx,m1),m2)
t=ema(rsi(tlt,m1),m2)

z1=hline(0)
z2=hline(100)
z50=hline(50)
z30=hline(30)
z70=hline(70)
fill(z30,z1,color=aqua,transp=95)
fill(z70,z2,color=aqua,transp=95)


splot_line=plot(s,color=blue,linewidth=2,title='SPY RSI')
vplot_line=plot(v,color=red,linewidth=2,title='VXX RSI')
tplot_line=plot(t,color=black,linewidth=2,title='TLT RSI')