PROTECTED SOURCE SCRIPT

Aarika RSI

// 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

保護スクリプト

このスクリプトは保護スクリプトとして公開されており、個人利用として利用することは可能です。

チャートでこのスクリプトを利用したいですか?

免責事項