ดัชนี BIST 100
เพิ่มขึ้น

Deep Reversal

//version=5
indicator("Dipten Dönüş İndikatörü", overlay=true)

// RSI Ayarları
rsiLength = input.int(14, "RSI Uzunluğu")
rsiOversold = input.int(30, "Aşırı Satım Seviyesi")
rsiValue = ta.rsi(close, rsiLength)

// MACD Ayarları
macdFast = input.int(12, "MACD Hızlı EMA")
macdSlow = input.int(26, "MACD Yavaş EMA")
macdSignal = input.int(9, "MACD Sinyal Hattı")
[macdLine, signalLine, _] = ta.macd(close, macdFast, macdSlow, macdSignal)
macdDivergence = macdLine - signalLine

// Hareketli Ortalama Ayarları
shortMaLength = input.int(10, "Kısa MA Uzunluğu")
longMaLength = input.int(50, "Uzun MA Uzunluğu")
shortMa = ta.sma(close, shortMaLength)
longMa = ta.sma(close, longMaLength)

// Dipten Dönüş Koşulları
rsiCondition = rsiValue < rsiOversold
macdCondition = ta.crossover(macdLine, signalLine) and macdDivergence > 0
maCondition = ta.crossover(shortMa, longMa)

// Dipten Dönüş Sinyali
diptenDonus = rsiCondition and macdCondition and maCondition
plotshape(series=diptenDonus, location=location.belowbar, color=color.green, style=shape.labelup, title="Dipten Dönüş Sinyali")

// Grafik Çizimi
plot(shortMa, color=color.blue, linewidth=1, title="Kısa MA")
plot(longMa, color=color.red, linewidth=1, title="Uzun MA")
Chart PatternsFundamental AnalysisTechnical Indicators

คำจำกัดสิทธิ์ความรับผิดชอบ