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