gb50k

2symbol RSI crisscross

Plots RSI of 2 tickers at once. Red line is average between the 2.
Remove from Favorite Scripts Add to Favorite Scripts

study("2symbol RSI crisscross")
bsym=input('spy', "Blue")
//rsym=input('vxx', "Red")
blsym=input('tlt', "Black")
//gsym=input('', "Green")


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



rblue=ema(rsi(ema(security(bsym ,period  , close ),m0),m1),m2)
//rred=ema(rsi(ema(security(rsym ,period  , close ),m0),m1),m2)
rblack=ema(rsi(ema(security(blsym ,period  , close ),m0),m1),m2)
//rgreen=ema(rsi(ema(security(blsym ,period  , close ),m0),m1),m2)

rred=(rblue+rblack)/2

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

bplot_line=plot(rblue,color=blue,linewidth=1)
rplot_line=plot(rred,color=red,linewidth=3)
blplot_line=plot(rblack,color=black,linewidth=1)
//gplot_line=plot(rgreen,color=black,linewidth=2)

United States
United Kingdom
India
España
France
Italia
Polska
Brasil
Россия
Türkiye
Indonesia
日本
한국
Home Stock Screener Forex Signal Finder Economic Calendar How It Works Chart Features House Rules Moderators For the WEB Widgets Stock Charting Library Priority Support Feature Request Blog & News FAQ Help & Wiki Twitter
Private Messages Chat Ideas Published Followers Following Priority Support Public Profile Profile Settings Account and Billing Sign Out