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の精神に則り、このスクリプトの作者は、トレーダーが理解し検証できるようにオープンソースで公開しています。作者に敬意を表します!無料で使用することができますが、このコードを投稿で再利用するには、ハウスルールに準拠する必要があります。 お気に入りに登録してチャート上でご利用頂けます。

チャートでこのスクリプトを利用したいですか?

免責事項