OPEN-SOURCE SCRIPT

RSI CAPITAL CRYPTO

//version=5
indicator("RSI with Arrows", overlay=true)

// Configuração do RSI
rsiLength = 14
rsiSource = close
rsiValue = ta.rsi(rsiSource, rsiLength)

// Condições para as setas
arrowDown = rsiValue > 85
arrowUp = rsiValue < 20

// Plotando setas no gráfico
plotshape(arrowDown, style=shape.labeldown, location=location.abovebar, color=color.red, size=size.small, text="↓")
plotshape(arrowUp, style=shape.labelup, location=location.belowbar, color=color.green, size=size.small, text="↑")

// Plotando o RSI
hline(80, "Overbought", color=color.red)
hline(30, "Oversold", color=color.green)
plot(rsiValue, "RSI", color=color.blue)
Breadth IndicatorsBTCmiliondollaryearOscillatorsrsi_divergencesmcconceptsstatistics

開源腳本

在真正的TradingView精神中,這個腳本的作者以開源的方式發佈,這樣交易員可以理解和驗證它。請向作者致敬!您可以免費使用它,但在出版物中再次使用這段程式碼將受到網站規則的約束。 您可以收藏它以在圖表上使用。

想在圖表上使用此腳本?

免責聲明