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')