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

开源脚本

本着真正的TradingView精神,此脚本的作者已将其开源,以便交易者可以理解和验证它。向作者致敬!您可以免费使用它,但在出版物中重复使用此代码受网站规则约束。 您可以收藏它以在图表上使用。

想在图表上使用此脚本?

免责声明