cmharkey

RSI_50_Line

94 0 19
RSI indicator with a persistent horizontal line drawn at the 50 pt marker.
This line is drawn every time I use the indicator, created the public pine script in order to add this to my "study chart" template for quick access.
Remove from Favorite Scripts Add to Favorite Scripts
study(title="Relative Strength Index", shorttitle="RSI")
src = close, len = input(14, minval=1, title="Length")
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=purple)
band1 = hline(70)
band2 = hline(50,color=teal)
band0 = hline(30)
fill(band1, band0, color=purple, transp=90)
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