anmpatel

Just Nifty RSI(9) v2

265 3 27
study(title="Just Nifty             RSI (9)", shorttitle="RSI9")
src = close, len             = input(9, minval=9, title="Length")
up = sma (max(change(src), 0), len             )
down = sma (-min(change(src), 0), len             )
rsi = down == 0 ? 100 : up == 0 ? 0 : 100 - (100 / (1 + up / down))
plot( rsi , color=blue)
band1 = hline(80)
band0 = hline(20)
fill(band1, band0, color=purple, transp=100)
plot( sma ( rsi ,9))
plot( sma ( rsi ,9) , color=red)
Remove from Favorite Scripts Add to Favorite Scripts
study(title="Just Nifty RSI(9)", shorttitle="RSI9")
src = close, len = input(9, minval=9, title="Length")
up = sma(max(change(src), 0), len)
down = sma(-min(change(src), 0), len)
rsi = down == 0 ? 100 : up == 0 ? 0 : 100 - (100 / (1 + up / down))
plot(rsi, color=blue)
band1 = hline(80)
band0 = hline(20)
fill(band1, band0, color=purple, transp=100)
plot(sma(rsi,9))
plot(sma (rsi,9) , color=red)
ChrisitneLcs
3 months ago
can you further explain the rsi setting? My graph cannot show like yours when I put ris (9). Thanks a lot
Reply
anmpatel ChrisitneLcs
3 months ago
I use sma in stead of rma in calculatiin.
Pl compare the pine scripts, u will easily got it.
Reply
adinwhittondb
3 months ago
Is it possible to get a colour alert on a crossover?
Reply
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