PROTECTED SOURCE SCRIPT

Aarika RSI

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

Script protetto

Questo script è pubblicato con codice protetto, ma puoi comunque usarlo gratuitamente. Mettendolo tra i preferiti potrai applicarlo al grafico, senza però la possibilità di visualizzare o modificare il codice sorgente.

Vuoi usare questo script sui tuoi grafici?

Declinazione di responsabilità