P
PipsGrowth

Donchian Channel Breakout with Volatility Squeeze Filter

#06 · Breakout غير معاد الرسم EA Readable لوحة تنبيهات

The Donchian Volatility Breakout indicator combines the classic Donchian Channel (N-bar high/low) with a volatility squeeze filter. It detects coiling periods when the channel is abnormally narrow relative to ATR, then only takes breakouts that confirm with sufficient channel expansion. This filters out false breakouts from low-volatility periods and catches genuine momentum moves.

كيف يعمل

Upper = highest high over N closed bars, Lower = lowest low over N closed bars. Channel_Width = Upper - Lower. Width_Ratio = Channel_Width / ATR. Squeeze: Width_Ratio < Squeeze_Threshold (coiling). Expansion: Width_Ratio > Expansion_Threshold (real move). BUY when close > Upper[i-1] and not in squeeze. SELL when close < Lower[i-1] and not in squeeze.

إشارات الدخول

  • BUY: Close > Upper[i-1] (closed above previous channel high) AND not in squeeze
  • SELL: Close < Lower[i-1] (closed below previous channel low) AND not in squeeze
  • No-Trade: Channel in squeeze state → wait for expansion confirmation

إشارات الخروج

  • TP: Price reaches entry ± (TP_ATR_Mult × ATR)
  • Reversal: Price closes back inside channel
  • Expiry: Signal_Expiry_Bars passed

مرشحات التداول

  • Squeeze Filter: Width_Ratio < Squeeze_Threshold → no trade
  • Volume Surge: Require above-average volume on breakout bar
  • Session: Outside session hours → no signal
  • Spread: Spread > Max_Spread_Points → no signal
  • Cooldown: Last signal < Cooldown_Bars ago → no signal
  • ATR Regime: Extreme volatility → no signal

معاينة الكود المصدري

أول 50 سطر من 799
PG_06_Donchian_VolBreakout.mq5
MQL5
//+------------------------------------------------------------------+
//| PipsGrowth_Donchian_VolBreakout_Indicator_v1.mq5 |
//| Copyright 2025, Pipsgrowth.com |
//| https://www.pipsgrowth.com |
//+------------------------------------------------------------------+
#property copyright "Copyright 2025, Pipsgrowth.com"
#property link "https://www.pipsgrowth.com"
#property version "1.00"
#property indicator_chart_window
#property indicator_buffers 13
#property indicator_plots 6
#property indicator_label1 "BUY Entry"
#property indicator_type1 DRAW_COLOR_ARROW
#property indicator_color1 clrLime
#property indicator_width1 2
#property indicator_label2 "SELL Entry"
#property indicator_type2 DRAW_COLOR_ARROW
#property indicator_color2 clrRed
#property indicator_width2 2
#property indicator_label3 "Exit"
#property indicator_type3 DRAW_COLOR_ARROW
#property indicator_color3 clrAqua,clrOrange,clrGray
#property indicator_width3 2
#property indicator_label4 "Upper Channel"
#property indicator_type4 DRAW_LINE
#property indicator_color4 clrDodgerBlue
#property indicator_style4 STYLE_SOLID
#property indicator_width4 1
#property indicator_label5 "Lower Channel"
#property indicator_type5 DRAW_LINE
#property indicator_color5 clrDodgerBlue
#property indicator_style5 STYLE_SOLID
#property indicator_width5 1
#property indicator_label6 "Mid Channel"
#property indicator_type6 DRAW_LINE
#property indicator_color6 clrDimGray
#property indicator_style6 STYLE_DOT
#property indicator_width6 1
//--- Inputs
input group "Core"
input int Channel_Period = 20; // Donchian channel lookback
input double Squeeze_Threshold = 1.5; // Width/ATR ratio below = squeeze
input double Expansion_Threshold = 3.0; // Width/ATR ratio above = expansion

لأغراض تعليمية فقط. لا تستخدمه بأموال حقيقية. اختبر على حساب تجريبي فقط.

المميزات الرئيسية

Volatility-gated breakout entries
Squeeze detection (coiling periods)
Expansion confirmation filter
Channel width / ATR ratio analysis
False breakout filtering
Visual squeeze/expansion markers

معاملات الإدخال

Channel_Period
الافتراضي: 20
Donchian channel lookback
Squeeze_Threshold
الافتراضي: 1.5
Width/ATR ratio below = squeeze
Expansion_Threshold
الافتراضي: 3.0
Width/ATR ratio above = expansion
SL_ATR_Mult
الافتراضي: 1.5
Stop loss in ATR multiples
TP_ATR_Mult
الافتراضي: 2.0
TP in ATR multiples
Cooldown_Bars
الافتراضي: 3
Bars between signals

تعليمات التثبيت

1حمّل ملف .mq5 من زر التحميل
2افتح MetaTrader 5 ← File ← Open Data Folder
3اذهب إلى MQL5 ← Indicators
4انسخ ملف .mq5 إلى مجلد Indicators
5افتح MetaEditor (F4) واضغط F5 للترجمة
6المؤشر سيظهر في Navigator تحت Indicators
7اسحب المؤشر إلى الرسم البياني
8اختبر على حساب تجريبي أولاً

تحذير صريح: لأغراض تعليمية فقط

هذا المؤشر مخصص للأغراض التعليمية والاختبارية فقط. لا تستخدمه بأموال حقيقية. اختبره فقط على حساب تجريبي. التداول بأموال حقيقية ينطوي على مخاطر فقدان رأس المال. لا تشكل هذه الأداة نصيحة استثمارية.

مجتمع المستخدمين

سجّل دخولك للمشاركةتسجيل الدخول

الأسئلة الشائعة

اختراقات Donchian معروفة بالاختراقات الكاذبة — يمكن للسعر أن يكسر ويغلق فوق القناة، يُطلق الإشارة، ثم ينعكس فورًا. هذا شائع بشكل خاص في الأسواق المتقلبة حيث يتأرجح السعر حول القناة. الإصلاح: استخدم فلتر قفزة الحجم (مُفعّل افتراضيًا — لا تعطّله) واشترط أن يحدث الاختراق بعد 8-10 شموع على الأقل من ضغط حقيقي. ضغط بشمعة واحدة متبوعًا باختراق ليس مثل ضغط 15 شمعة متبوعًا باختراق. الصبر هو الميزة الرئيسية هنا.
آخر تحديث: ١١ يوليو ٢٠٢٦

إخلاء مسؤولية تعليمي

هذا المحتوى للأغراض التعليمية فقط ولا يُعد نصيحة مالية أو استثمارية. التداول ينطوي على مخاطر كبيرة وقد تفقد رأس مالك. استشر مستشارًا ماليًا مرخصًا قبل اتخاذ أي قرارات استثمارية.

سجّل دخولك للتحميل

التحميل متاح للأعضاء المسجلين. سجّل الدخول أو أنشئ حساباً مجانياً للوصول إلى الكود المصدري الكامل.

المواصفات

الفئةBreakout
الصعوبةIntermediate
الإصدارv1.0
الإطاراتM5, M15, M30, H1
إعادة الرسملا
EAقابل

الأفضل لـ

Breakout tradersMomentum strategiesM15-H1 timeframesForex majors and XAUUSD
Donchian Channel Breakout with Volatility Squeeze Filter | مؤشر MT5 مجاني