anmpatel

Just Nifty RSI(9) v2

338 3 35
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
United States
United Kingdom
India
Deutschland
España
France
Italia
Polska
Brasil
Россия
Türkiye
Indonesia
Malaysia
日本
한국
简体
繁體
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 Priority Support Feature Request Blog & News FAQ Help & Wiki Twitter
Profile Profile Settings Account and Billing Priority Support Ideas Published Followers Following Private Messages Chat Sign Out