Donchian Channel Breakout with Volatility Squeeze Filter
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
معاينة الكود المصدري
لأغراض تعليمية فقط. لا تستخدمه بأموال حقيقية. اختبر على حساب تجريبي فقط.
المميزات الرئيسية
معاملات الإدخال
تعليمات التثبيت
تحذير صريح: لأغراض تعليمية فقط
هذا المؤشر مخصص للأغراض التعليمية والاختبارية فقط. لا تستخدمه بأموال حقيقية. اختبره فقط على حساب تجريبي. التداول بأموال حقيقية ينطوي على مخاطر فقدان رأس المال. لا تشكل هذه الأداة نصيحة استثمارية.
مجتمع المستخدمين
الأسئلة الشائعة
إخلاء مسؤولية تعليمي
هذا المحتوى للأغراض التعليمية فقط ولا يُعد نصيحة مالية أو استثمارية. التداول ينطوي على مخاطر كبيرة وقد تفقد رأس مالك. استشر مستشارًا ماليًا مرخصًا قبل اتخاذ أي قرارات استثمارية.
سجّل دخولك للتحميل
التحميل متاح للأعضاء المسجلين. سجّل الدخول أو أنشئ حساباً مجانياً للوصول إلى الكود المصدري الكامل.
المواصفات
الأفضل لـ
مؤشرات ذات صلة
Supertrend ATR Trend Envelope
ATR-based dynamic trend envelope with auto-adapting bands that widen during volatility and tighten during calm periods.
VWAP (Volume-Weighted Average Price)
Session VWAP with deviation bands. Shows where the majority of volume traded — price above VWAP = bullish, below = bearish.
Volatility Squeeze (Bollinger + Keltner)
Detects volatility squeezes when Bollinger Bands contract inside Keltner Channels, then fires on breakout with expansion confirmation.