anmpatel

Just Nifty RSI(9) v2

429 3 48
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
EN English
EN English (UK)
EN English (IN)
DE Deutsch
FR Français
ES Español
IT Italiano
PL Polski
SV Svenska
TR Türkçe
RU Русский
PT Português
ID Bahasa Indonesia
MS Bahasa Melayu
TH ภาษาไทย
VI Tiếng Việt
JA 日本語
KO 한국어
ZH 简体中文
ZH 繁體中文
AR العربية
Home Stock Screener Forex Screener Crypto Screener 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