OPEN-SOURCE SCRIPT

Donchian Channels + Fibonacci Bands+ma200

Güncellendi
//version=5
indicator("Donchian Channels + Fibonacci Bands", overlay=true)

// تنظیمات Donchian Channels
length = input(280, title="Donchian Channels Length")
offset = input(25, title="Donchian Channels Offset")

upper = ta.highest(high, length)
lower = ta.lowest(low, length)
middle = (upper + lower) / 2

plot(upper, color=color.blue, title="Donchian Upper Channel")
plot(lower, color=color.red, title="Donchian Lower Channel")
plot(middle, color=color.green, title="Donchian Middle Channel")

// تنظیمات Fibonacci Bands با MA200
ma_length = input(200, title="MA Length")
ma = ta.sma(close, ma_length)
fib1 = ma + (upper - lower) * 0.382
fib2 = ma + (upper - lower) * 0.618
fib3 = ma - (upper - lower) * 0.382
fib4 = ma - (upper - lower) * 0.618

plot(ma, color=color.yellow, title="Moving Average")
plot(fib1, color=color.orange, title="Fib Band 0.382")
plot(fib2, color=color.purple, title="Fib Band 0.618")
plot(fib3, color=color.orange, title="Fib Band -0.382")
plot(fib4, color=color.purple, title="Fib Band -0.618")
Sürüm Notları
//version=5
indicator("Ichimoku Cloud with Fibonacci Bands, MA200, Parabolic SAR, and Donchian Channels", overlay=true)

// تنظیمات ایچیموکو
conversionLinePeriod = input(9, title="Conversion Line Period")
baseLinePeriod = input(26, title="Base Line Period")
leadingSpanBPeriod = input(52, title="Leading Span B Period")
displacement = input(26, title="Displacement")

// محاسبه خطوط ایچیموکو
conversionLine = (ta.highest(high, conversionLinePeriod) + ta.lowest(low, conversionLinePeriod)) / 2
baseLine = (ta.highest(high, baseLinePeriod) + ta.lowest(low, baseLinePeriod)) / 2
leadSpanA = (conversionLine + baseLine) / 2
leadSpanB = (ta.highest(high, leadingSpanBPeriod) + ta.lowest(low, leadingSpanBPeriod)) / 2
laggingSpan = close[displacement]

// رسم خطوط ایچیموکو روی نمودار
plot(conversionLine, color=color.teal, title="Conversion Line")
plot(baseLine, color=color.maroon, title="Base Line")
p1 = plot(leadSpanA, color=color.green, title="Leading Span A")
p2 = plot(leadSpanB, color=color.red, title="Leading Span B")
fill(p1, p2, color=color.new(color.red, 50))
plot(laggingSpan, color=color.blue, offset=-displacement, title="Lagging Span")

// تنظیمات Fibonacci Bands
lengthFibonacci = input(20, title="Fibonacci Length")
fibFactor = input(0.618, title="Fibonacci Factor")
basis = ta.sma(close, lengthFibonacci)
upperFib = basis * (1 + fibFactor)
lowerFib = basis * (1 - fibFactor)

// رسم Fibonacci Bands روی نمودار
plot(upperFib, color=color.green, linewidth=2, title="Fibonacci Upper")
plot(lowerFib, color=color.orange, linewidth=2, title="Fibonacci Lower")

// تنظیمات MA200
lengthMA200 = 200
ma200 = ta.sma(close, lengthMA200)

// رسم MA200 روی نمودار
plot(ma200, color=color.red, linewidth=2, title="MA200")

// تنظیمات Parabolic SAR
sar_step = input(0.02, title="SAR Step")
sar_maxStep = input(0.2, title="SAR Max Step")
sar = ta.sar(sar_step, sar_maxStep, max=sar_maxStep)

// رسم Parabolic SAR روی نمودار
plot(sar, style=plot.style_cross, color=color.purple, title="Parabolic SAR")

// تنظیمات Donchian Channels
lengthDonchian = input(280, title="Donchian Length")
offsetDonchian = input(25, title="Donchian Offset")
upperDonchian = ta.highest(high, lengthDonchian)
lowerDonchian = ta.lowest(low, lengthDonchian)

// رسم Donchian Channels روی نمودار
plot(upperDonchian, color=color.blue, linewidth=2, title="Donchian Upper", offset=offsetDonchian)
plot(lowerDonchian, color=color.red, linewidth=2, title="Donchian Lower", offset=offsetDonchian)
Bands and Channelsmultitimeframe

Açık kaynak kodlu komut dosyası

Gerçek TradingView ruhuna uygun olarak, bu komut dosyasının yazarı komut dosyasını açık kaynak olarak yayınlamıştır, böylece yatırımcılar betiği anlayabilir ve doğrulayabilir. Yazar çok yaşa! Ücretsiz olarak kullanabilirsiniz, ancak bu kodun yayında yeniden kullanımı Ev kurallarına tabidir. Bir grafikte kullanmak için favorilere ekleyebilirsiniz.

Bu komut dosyasını bir grafikte kullanmak ister misiniz?

Feragatname