OPEN-SOURCE SCRIPT

RSI + SMA Indicator

//version=5
indicator("RSI + SMA Indicator", overlay=true)

// Parametreler
rsiLength = input(14, title="RSI Length")
smaLength = input(50, title="SMA Length")
rsiOverbought = input(70, title="RSI Overbought Level")
rsiOversold = input(30, title="RSI Oversold Level")

// RSI hesaplama
rsi = ta.rsi(close, rsiLength)

// SMA hesaplama
sma = ta.sma(close, smaLength)

// Al/Sat koşulları
buySignal = rsi < rsiOversold and close > sma
sellSignal = rsi > rsiOverbought and close < sma

// Al/Sat oklarını grafiğe çiz
plotshape(buySignal, title="Buy Signal", location=location.belowbar, color=color.green, style=shape.labelup, text="BUY")
plotshape(sellSignal, title="Sell Signal", location=location.abovebar, color=color.red, style=shape.labeldown, text="SELL")

// SMA'yı grafiğe ekle
plot(sma, color=color.blue, title="SMA")
Bands and ChannelsChart patterns

開源腳本

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

想在圖表上使用此腳本?

免責聲明