OPEN-SOURCE SCRIPT

Combined Signal Indicator

//version=5
indicator("Combined Signal Indicator", overlay=true)

// Ayarlar
rsiLength = input.int(14, title="RSI Length")
macdFast = input.int(12, title="MACD Fast Length")
macdSlow = input.int(26, title="MACD Slow Length")
macdSignal = input.int(9, title="MACD Signal Length")
stochLength = input.int(14, title="Stochastic RSI Length")
stochD = input.int(3, title="Stochastic D")
emaLength = input.int(50, title="EMA Length")

// İndikatör Hesaplamaları
rsiValue = ta.rsi(close, rsiLength)
[macdLine, signalLine, _] = ta.macd(close, macdFast, macdSlow, macdSignal)
stochKValue = ta.stoch(close, high, low, stochLength) // 4 argüman
stochDValue = ta.sma(stochKValue, stochD)
emaValue = ta.ema(close, emaLength)

// AL ve SAT Sinyalleri
buySignal = (rsiValue < 30 and macdLine > signalLine and close > emaValue)
sellSignal = (rsiValue > 70 and macdLine < signalLine and close < emaValue)

// Sinyal Görselleştirme
plotshape(buySignal, title="Buy Signal", location=location.belowbar, color=color.new(color.green, 0), style=shape.labelup, text="BUY")
plotshape(sellSignal, title="Sell Signal", location=location.abovebar, color=color.new(color.red, 0), style=shape.labeldown, text="SELL")
Breadth IndicatorsCandlestick analysisChart patterns

Open-source script

In true TradingView spirit, the author of this script has published it open-source, so traders can understand and verify it. Cheers to the author! You may use it for free, but reuse of this code in publication is governed by House rules. You can favorite it to use it on a chart.

Want to use this script on a chart?

Disclaimer