When You need to compare different security RSi.. If there's something strange In your neighborhood Who you gonna call?
study(title="RSI-Compare", shorttitle="RSI-Compare") src = close, len = input(100, minval=1, title="Length") sym1 = input(title="Symbol", type=symbol, defval="EURUSD") sym = input(title="Symbol", type=symbol, defval="DXY") up = rma(max(change(src), 0), len) down = rma(-min(change(src), 0), len) rsi = down == 0 ? 100 : up == 0 ? 0 : 100 - (100 / (1 + up / down)) plot(rsi, color=blue, transp=0, linewidth=2) band1 = hline(49.5) band0 = hline(50.5) banmx = hline(60) banmn = hline(40) fill(band1, band0, color=red, transp=80) EURRSI = security(sym1, period,rsi) DXYRSI = security(sym, period,rsi) plot(EURRSI, color=green, transp=0) plot(DXYRSI, color=red, transp=0)