P
PipsGrowth

النقاط الرئيسية

الصعوبة:Beginner
الموثوقية:High
الفئة:volatility
الأطر الزمنية:15M, 1H, 4H

Bollinger Bands

volatility📊 15M, 1H, 4H, Daily

Consists of a middle band (SMA) and upper/lower bands set at standard deviations from the middle.

المعادلة

Code
Middle Band = 20-period SMA
Upper Band = Middle Band + (2 × Standard Deviation)
Lower Band = Middle Band - (2 × Standard Deviation)

شرح تفصيلي

Bollinger Bands, developed by John Bollinger, create dynamic channels around price based on volatility. They consist of three lines:

**Components:** - **Middle Band**: Simple Moving Average (typically 20) - **Upper Band**: Middle + (2 × Std Dev) - **Lower Band**: Middle - (2 × Std Dev)

**Key Signals:** - **Squeeze**: Bands contract before breakouts - **Walking the Bands**: Price hugging bands in trends - **Mean Reversion**: Price returning to middle band

المعاملات

Period
Default: 20
SMA period
Std Dev
Default: 2
Standard deviation multiplier

📈 إشارات صعودية

Price bounces off lower band, squeeze followed by upward breakout

📉 إشارات هبوطية

Price rejected at upper band, squeeze followed by downward breakout

تطبيق بايثون

Bollinger Bands with pandas-ta

Python
import pandas_ta as ta
bb = ta.bbands(df['close'], length=20, std=2)
df['BB_Upper'] = bb['BBU_20_2.0']
df['BB_Middle'] = bb['BBM_20_2.0']
df['BB_Lower'] = bb['BBL_20_2.0']
df['BB_Width'] = bb['BBB_20_2.0']

كود TradingView

JavaScript
//@version=5
indicator("Bollinger Bands", overlay=true)
[middle, upper, lower] = ta.bb(close, 20, 2)
plot(upper, "Upper", color=color.red)
plot(middle, "Middle", color=color.blue)
plot(lower, "Lower", color=color.green)
📊 استخدم TradingView للرسوم البيانية المتقدمة
أدوات تحليل احترافية مع أكثر من 100 مؤشر فني
احصل على TradingView Pro

كود MT5

C++
int bb_handle = iBands(_Symbol, _Period, 20, 0, 2, PRICE_CLOSE);
double upper[], middle[], lower[];
CopyBuffer(bb_handle, 0, 0, 3, middle);
CopyBuffer(bb_handle, 1, 0, 3, upper);
CopyBuffer(bb_handle, 2, 0, 3, lower);

أخطاء شائعة

Selling just because price touches upper band
Ignoring the squeeze as a volatility warning

إشارات التأكيد

RSI at extremes
Volume on breakout
Candlestick patterns

الأفضل لـ

Volatility measurementOverbought/oversoldBreakout identification

💡 نصائح احترافية

  • Band squeeze (narrow bands) often precedes strong moves
  • Price can "walk the band" in strong trends
  • Use with RSI for confirmation - RSI divergence at bands is powerful
آخر تحديث: ٢٩ ديسمبر ٢٠٢٤

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

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

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