Search
Products
Community
Markets
News
Brokers
More
IN
Get started
Community
/
Scripts
/
Aarika RSI
PROTECTED SOURCE SCRIPT
Aarika RSI
By kawal30
Follow
Follow
Jan 6, 2022
7
Add to favorites
Add to favorites
Jan 6, 2022
// This source code is subject to the terms of the Mozilla Public License 2.0 at
mozilla.org/MPL/2.0/
// © hlsolanki
//
version
=5
indicator('Aarika RSI', shorttitle='Aarika RSI', overlay=false)
src = close
len = input.int(1, minval=1, title='Length')
up = ta.rma(math.max(ta.change(src), 0), len)
down = ta.rma(-math.min(ta.change(src), 0), len)
rsi = down == 0 ? 100 : up == 0 ? 0 : 100 - 100 / (1 + up / down)
basis = ta.rsi(close, input(14))
rma = ta.rma(basis, input(5))
sma = ta.sma(basis, input(80))
crossover = ta.crossover(rma, sma)
crossunder = ta.crossunder(rma, sma)
h0 = hline(80)
h1 = hline(50)
h2 = hline(20)
fill(h0, h1, color=color.new(color.purple, 90))
plot(rma, title='RMA', style=plot.style_line, color=color.new(color.white, 0))
plot(sma, title='SMA', style=plot.style_line, color=color.new(color.white, 0))
plotshape(crossover, title='up', style=shape.triangleup, location=location.bottom, size=size.tiny, color=color.new(color.green, 0))
plotshape(crossunder, title='down', style=shape.triangledown, location=location.bottom, size=size.tiny, color=color.new(color.red, 0))
Oscillators
Protected script
This script is published closed-source and you may privately use it freely.
Want to use this script on a chart?
Add to favorites
kawal30
Follow
Disclaimer
The information and publications are not meant to be, and do not constitute, financial, investment, trading, or other types of advice or recommendations supplied or endorsed by TradingView. Read more in the
Terms of Use
.