0% found this document useful (0 votes)
2K views1 page

Advanced RSI Indicator

A trading indicator for trading view

Uploaded by

Revanth Shalon
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as TXT, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
2K views1 page

Advanced RSI Indicator

A trading indicator for trading view

Uploaded by

Revanth Shalon
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as TXT, PDF, TXT or read online on Scribd

//@version=5

strategy(title='RSI MA V1.0', shorttitle='RSI MA V1.0', format=[Link],


precision=2)
len = [Link](14, minval=1, title='RSI')

src = input(close, 'Source')


_rsi = [Link](src, len)
_rsi2 = [Link](src, 2)
SMA_RSI_9 = [Link](_rsi, input(9, title='SMA on RSI'))
long = false
h_50 = plot(input(50, title='Middle Line'), color=[Link](255, 255, 255),
style=plot.style_linebr, linewidth=1, title='Line - 50')
h_80 = plot(input(80, title='Over Bought Upper Limit'),
color=[Link]([Link], 0), style=plot.style_linebr, linewidth=1,
title='Overbought Upper Limit')
h_70 = plot(input(70, title='Over Bought Lower Limit'),
color=[Link]([Link], 0), style=plot.style_linebr, linewidth=1,
title='Overbought Lower Limit')
fill(h_80, h_70, [Link]([Link], 90), title='Overbought Zone')
h_30 = plot(input(30, title='Oversold Upper Limit'), color=[Link]([Link], 0),
style=plot.style_linebr, linewidth=1, title='Oversold Upper Limit')
h_20 = plot(input(20, title='Oversold Lower Limit'), color=[Link]([Link], 0),
style=plot.style_linebr, linewidth=1, title='Oversold Lower Limit')
fill(h_30, h_20, [Link]([Link], 90), title='Oversold Zone')
p_rsi = plot(_rsi, color=[Link](255, 255, 255), style=plot.style_line,
linewidth=1, title='RSI - Plot')
h_60 = plot(input(60, title='Trend Continuation Upper Limit'),
color=[Link]([Link], 0), style=plot.style_linebr, linewidth=1, title='Trend
Continuation Upper Limit')
h_40 = plot(input(40, title='Trend Continuation Lower Limit'),
color=[Link]([Link], 0), style=plot.style_linebr, linewidth=1, title='Trend
Continuation Lower Limit')
fill(h_60, h_40, [Link]([Link], 90), title='Oversold Zone')

h_90 = plot(input(90, title='Over Bought Lower Limit'), color=[Link](226, 139,


222), style=plot.style_linebr, linewidth=1, title='Overbought Lower Limit')
h_10 = plot(input(10, title='Over Bought Lower Limit'), color=[Link](226, 139,
222), style=plot.style_linebr, linewidth=1, title='Overbought Lower Limit')

color Bullish = input([Link], 'Bullish')


color Bearish = input([Link], 'Bearish')

p_sma = plot(SMA_RSI_9, color=[Link]([Link], 0), style=plot.style_line,


linewidth=2, title='Price')
plot(_rsi2, 'RSI2', [Link](226, 139, 222), 1, plot.style_line)

color fill_color = [Link](_rsi > SMA_RSI_9 ? Bullish : Bearish, 50)

fill(p_rsi, p_sma, color=fill_color)

You might also like