TradingView
anmpatel
18 de Ago de 2016 18:16

Just Nifty RSI(9) v2 

Nifty 50 IndexNSE

Descrição

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)
Comentários
shashi101kant
sir pls share how to use it
ChrisitneLcs
can you further explain the rsi setting? My graph cannot show like yours when I put ris (9). Thanks a lot
anmpatel
I use sma in stead of rma in calculatiin.
Pl compare the pine scripts, u will easily got it.
TUSHG9
This indicator is stock divided by nifty fifty + SMA.. right?
adinwhittondb
Is it possible to get a colour alert on a crossover?
Mais