CapnOscar

RSI-Compare

262 0 23
When You need to compare different security RSi .. If there's something strange In your neighborhood Who you gonna call?
Remove from Favorite Scripts Add to Favorite Scripts
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)


Ideas Scripts Chart
United States
United Kingdom
India
España
Italia
Brasil
Россия
Türkiye
日本
한국
Home Stock Screener 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 Billing Sign Out