OPEN-SOURCE SCRIPT

Gelişmiş Destek/Direnç, Fibonacci ve Al/Sat Sinyalleri

//version=5
indicator("Gelişmiş Destek/Direnç, Fibonacci ve Al/Sat Sinyalleri", overlay=true)

// Parametreler
smaLength = input.int(50, "SMA Uzunluğu", minval=1)
atrLength = input.int(14, "ATR Uzunluğu", minval=1)
lookback = input.int(20, "Destek/Direnç Aralığı", minval=1)
volumeThreshold = input.float(1.5, "Hacim Eşik Değeri", minval=1)

// Ortalama Gerçek Aralık (ATR) ile Destek/Direnç Seviyeleri
atr = ta.atr(atrLength)
highestHigh = ta.highest(high, lookback)
lowestLow = ta.lowest(low, lookback)
upperBand = highestHigh + atr
lowerBand = lowestLow - atr

// Fibonacci Seviyeleri
fib_0 = lowestLow
fib_236 = lowestLow + (highestHigh - lowestLow) * 0.236
fib_382 = lowestLow + (highestHigh - lowestLow) * 0.382
fib_50 = lowestLow + (highestHigh - lowestLow) * 0.5
fib_618 = lowestLow + (highestHigh - lowestLow) * 0.618
fib_100 = highestHigh

// SMA Hesaplama
sma = ta.sma(close, smaLength)

// Al/Sat Sinyalleri - Fiyat SMA'nın Üzerinde ve Hacim Yüksek Olmalı
isBullish = ta.crossover(close, sma) and volume > ta.sma(volume, 20) * volumeThreshold
isBearish = ta.crossunder(close, sma) and volume > ta.sma(volume, 20) * volumeThreshold

// Grafik Üzerine Çizim
plot(sma, color=color.blue, linewidth=2, title="50 Günlük SMA")

// Dinamik Destek ve Direnç Çizgileri
var line upperLine = na
var line lowerLine = na

if (bar_index > lookback)
line.delete(upperLine)
line.delete(lowerLine)
upperLine := line.new(x1=bar_index-lookback, y1=upperBand, x2=bar_index, y2=upperBand, color=color.red, width=1, style=line.style_dotted)
lowerLine := line.new(x1=bar_index-lookback, y1=lowerBand, x2=bar_index, y2=lowerBand, color=color.green, width=1, style=line.style_dotted)

// Fibonacci Çizgileri
line.new(bar_index - lookback, fib_0, bar_index, fib_0, color=color.purple, width=1, style=line.style_solid)
line.new(bar_index - lookback, fib_236, bar_index, fib_236, color=color.purple, width=1, style=line.style_dotted)
line.new(bar_index - lookback, fib_382, bar_index, fib_382, color=color.purple, width=1, style=line.style_dotted)
line.new(bar_index - lookback, fib_50, bar_index, fib_50, color=color.purple, width=1, style=line.style_dotted)
line.new(bar_index - lookback, fib_618, bar_index, fib_618, color=color.purple, width=1, style=line.style_dotted)
line.new(bar_index - lookback, fib_100, bar_index, fib_100, color=color.purple, width=1, style=line.style_solid)

// Al ve Sat İşaretleri
plotshape(series=isBullish, location=location.abovebar, color=color.green, style=shape.labelup, text="AL")
plotshape(series=isBearish, location=location.belowbar, color=color.red, style=shape.labeldown, text="SAT")
Weighted Moving Average (WMA)

Open-source Skript

Ganz im Sinne von TradingView hat dieser Autor sein/ihr Script als Open-Source veröffentlicht. Auf diese Weise können nun das Script auch andere Trader verstehen und prüfen. Vielen Dank an den Autor! Sie können das Script kostenlos verwenden. Die Nutzung dieses Codes in einer Veröffentlichung wird in unseren Hausregeln reguliert. Sie können es als Favoriten auswählen, um es in einem Chart zu verwenden.

Möchten Sie dieses Skript auf einem Chart verwenden?

Haftungsausschluss