anmpatel

Just Nifty RSI(9) v2

365 3 41
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)
Is it possible to get a colour alert on a crossover?
Reply
can you further explain the rsi setting? My graph cannot show like yours when I put ris (9). Thanks a lot
Reply
anmpatel ChrisitneLcs
I use sma in stead of rma in calculatiin.
Pl compare the pine scripts, u will easily got it.
Reply
English
English (UK)
English (IN)
Deutsch
Français
Español
Italiano
Polski
Türkçe
Русский
Português
Bahasa Indonesia
Bahasa Melayu
ภาษาไทย
Tiếng Việt
日本語
한국어
简体中文
繁體中文
Home Stock Screener Forex Signal Finder Cryptocurrency Signal Finder Economic Calendar How It Works Chart Features House Rules Moderators Website & Broker Solutions Widgets Stock Charting Library Feature Request Blog & News FAQ Help & Wiki Twitter
Profile Profile Settings Account and Billing My Support Tickets Contact Support Ideas Published Followers Following Private Messages Chat Sign Out