OPEN-SOURCE SCRIPT

Günlük İşlem Stratejisi - Güncellenmiş

//version=5
indicator("Günlük İşlem Stratejisi - Güncellenmiş", overlay=true)

// Parametreler
rsiLength = input.int(14, title="RSI Periyodu")
rsiOverbought = input.int(70, title="RSI Aşırı Alım")
rsiOversold = input.int(30, title="RSI Aşırı Satım")
macdShortTerm = input.int(12, title="MACD Kısa Vadeli MA")
macdLongTerm = input.int(26, title="MACD Uzun Vadeli MA")
macdSignalTerm = input.int(9, title="MACD Signal Periyodu")
bbLength = input.int(20, title="Bollinger Band Periyodu")
bbStdDev = input.float(2.0, title="Bollinger Band Std Dev")

// RSI Hesaplaması
rsi = ta.rsi(close, rsiLength)

// MACD Hesaplaması
[macdLine, signalLine, _] = ta.macd(close, macdShortTerm, macdLongTerm, macdSignalTerm)

// Bollinger Bands Hesaplaması
[bbUpper, bbMiddle, bbLower] = ta.bb(close, bbLength, bbStdDev)

// Alım (Long) ve Satış (Short) Sinyalleri
longSignal = (rsi < rsiOversold) and (macdLine > signalLine) and (close < bbLower)
shortSignal = (rsi > rsiOverbought) and (macdLine < signalLine) and (close > bbUpper)

// Alım ve Satış İşlem Sinyalleri Gösterimi
plotshape(longSignal, title="Long (Alış) Sinyali", location=location.belowbar, color=color.green, style=shape.labelup, text="BUY")
plotshape(shortSignal, title="Short (Satış) Sinyali", location=location.abovebar, color=color.red, style=shape.labeldown, text="SELL")

// İşlem Sinyali İçin Sesli Uyarı
alertcondition(longSignal, title="Long Sinyali", message="Alım Sinyali")
alertcondition(shortSignal, title="Short Sinyali", message="Satış Sinyali")
Bill Williams IndicatorsBreadth Indicators

Script open-source

Dans le plus pur esprit TradingView, l'auteur de ce script l'a publié en open-source, afin que les traders puissent le comprendre et le vérifier. Bravo à l'auteur! Vous pouvez l'utiliser gratuitement, mais la réutilisation de ce code dans une publication est régie par nos Règles. Vous pouvez le mettre en favori pour l'utiliser sur un graphique.

Vous voulez utiliser ce script sur un graphique ?

Clause de non-responsabilité