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

受保護腳本

該腳本是閉源發佈的,您可以自由使用。您可以把它加入到常用以在圖表上使用它。您無法查看或修改其原始碼。

想在圖表上使用此腳本?

免責聲明