النقاط الرئيسية
ارتداد نطاقات بولينجر
تستخدم نطاقات بولينجر لتحديد انحراف السعر عن متوسطه، مع الدخول في صفقات تتوقع عودة السعر إلى المتوسط (النطاق الأوسط).
سيكولوجية السوق
Bollinger Bands measure volatility and price deviation. When price touches the outer bands, it has statistically moved 2 standard deviations from average, often creating mean reversion opportunities.
📈Strategy Visualization
Price touches lower band then reverses to middle
دليل الاستراتيجية المفصّل
Bollinger Bands are a volatility indicator consisting of a middle band (usually a 20-period SMA) and two outer bands set at 2 standard deviations above and below. The bands automatically widen during volatile periods and contract during calm markets.
Mean reversion with Bollinger Bands works because price statistically spends most time near the mean. When price touches an outer band, it has moved 2 standard deviations from average - a statistically significant move that often reverses.
The Bollinger Band Squeeze is one of the most powerful setups. When bands narrow to their tightest in 6+ months, a large move is coming. Traders position for breakouts when the squeeze releases.
Walking the bands occurs in strong trends when price repeatedly touches or exceeds one band. This is NOT a reversal signal - the trend is strong. Only trade mean reversion in ranging, oscillating markets.
أمثلة البرمجة
import pandas as pd
def bollinger_bands(df, period=20, std_dev=2):
df['bb_middle'] = df['close'].rolling(period).mean()
df['bb_std'] = df['close'].rolling(period).std()
df['bb_upper'] = df['bb_middle'] + (df['bb_std'] * std_dev)
df['bb_lower'] = df['bb_middle'] - (df['bb_std'] * std_dev)
df['bb_width'] = (df['bb_upper'] - df['bb_lower']) / df['bb_middle']
# Mean reversion signals
df['bb_signal'] = 0
df.loc[df['close'] < df['bb_lower'], 'bb_signal'] = 1
df.loc[df['close'] > df['bb_upper'], 'bb_signal'] = -1
return dfThis function calculates Bollinger Bands and generates mean reversion signals when price touches the outer bands.
int CheckBollingerSignal()
{
double upper = iBands(_Symbol, PERIOD_H1, 20, 0, 2, PRICE_CLOSE, MODE_UPPER);
double lower = iBands(_Symbol, PERIOD_H1, 20, 0, 2, PRICE_CLOSE, MODE_LOWER);
double close = Close[0];
if(close < lower) return 1; // Buy at lower band
if(close > upper) return -1; // Sell at upper band
return 0;
}This MQL5 function returns buy/sell signals when price touches Bollinger Band extremes.
📚مكتبات Python الموصى بها
📥 قواعد الدخول
Wait for price to touch or pierce the outer band
Look for rejection candlestick pattern
Confirm RSI is in overbought/oversold territory
Enter on reversal candle close back inside the bands
📤 قواعد الخروج
Primary target is the middle band (20 SMA)
Second target is the opposite band
Exit if momentum continues beyond bands
Use the middle band as trailing stop reference
🛡️ إدارة المخاطر
Band Width
Narrow bands = low volatility, potential breakout ahead
Stop Loss
Place stops beyond the band extreme with ATR buffer
Trend Awareness
Price can walk the bands in strong trends
المؤشرات المستخدمة
Bollinger Bands (20, 2)
Primary tool for mean reversion signals
RSI
Confirm overbought/oversold at band touches
Volume
Identify exhaustion vs continuation
أفضل الإطارات الزمنية
أفضل ظروف السوق
الأخطاء الشائعة التي يجب تجنبها
نصائح احترافية
إخلاء مسؤولية تعليمي
هذا المحتوى للأغراض التعليمية فقط ولا يُعد نصيحة مالية أو استثمارية. التداول ينطوي على مخاطر كبيرة وقد تفقد رأس مالك. استشر مستشارًا ماليًا مرخصًا قبل اتخاذ أي قرارات استثمارية.
الأسئلة الشائعة
استراتيجيات ذات صلة
تداول الدعم والمقاومة
استراتيجية أساسية تحدد مستويات الأسعار الأفقية التي كان ضغط البيع أو الشراء قوياً بما يكفي لعكس اتجاه السعر تاريخياً.
استراتيجية مذبذب RSI
تستخدم مؤشر القوة النسبية لتحديد حالات التشبع الشرائي والبيعي، والدخول في انعكاسات عندما يتحرك السوق بعيداً وبسرعة كبيرة.
تداول القنوات
تحدد قنوات السعر الموازية التي يتأرجح فيها السعر بانتظام، مع الشراء عند الحد السفلي والبيع عند الحد العلوي للقناة.