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)

สคริปต์โอเพนซอร์ซ

ด้วยเจตนารมณ์หลักของ TradingView ผู้เขียนสคริปต์นี้ได้เผยแพร่เป็นโอเพนซอร์ส เพื่อให้เทรดเดอร์สามารถเข้าใจและตรวจสอบได้ ต้องขอบคุณผู้เขียน! ที่ให้คุณใช้ได้ฟรี แต่การนำโค้ดนี้ไปใช้ในการเผยแพร่ซ้ำจะต้องอยู่ภายใต้ กฎระเบียบการใช้งาน คุณสามารถตั้งเป็นรายการโปรดเพื่อใช้บนชาร์ตได้

ต้องการที่จะใช้สคริปต์นี้บนชาร์ตใช่ไหม?

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