How It Works Chart Features House Rules Moderators For the WEB Widgets Stock Charting Library Feature Request FAQ Help & Wiki Twitter

# 2symbol RSI crisscross

171 0
Plots RSI of 2 tickers at once. Red line is average between the 2.
```
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