搜索
产品
社区
市场
新闻
经纪商
更多
CN
开始
社区
/
指标和策略
/
Donchian Channels + Fibonacci Bands+ma200
OPEN-SOURCE SCRIPT
Donchian Channels + Fibonacci Bands+ma200
由mohammadrezaali2114提供
关注
关注
已更新
前天
1
0
添加到收藏
添加到收藏
3天前
//
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")
前天
版本注释
//
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 Channels
multitimeframe
开源脚本
本着真正的TradingView精神,此脚本的作者已将其开源,以便交易者可以理解和验证它。向作者致敬!您可以免费使用它,但在出版物中重复使用此代码受
网站规则
约束。 您可以收藏它以在图表上使用。
想在图表上使用此脚本?
添加到收藏
mohammadrezaali2114
关注
免责声明
这些信息和出版物并不意味着也不构成TradingView提供或认可的金融、投资、交易或其它类型的建议或背书。请在
使用条款
阅读更多信息。