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

Script open-source

In pieno spirito TradingView, l'autore di questo script lo ha pubblicato open-source, in modo che i trader possano comprenderlo e verificarlo. Un saluto all'autore! È possibile utilizzarlo gratuitamente, ma il riutilizzo di questo codice in una pubblicazione è regolato dal nostro Regolamento. Per aggiungerlo al grafico, mettilo tra i preferiti.

Vuoi usare questo script sui tuoi grafici?

Declinazione di responsabilità