WHY do we need them?
Price alone doesn't tell you if a move is "normal" or "extreme" for that stock. A ₹50 move means nothing for a ₹10,000 stock but is huge for a ₹200 stock. Bollinger Bands adapt to each stock's personality by measuring volatility, not just price.
WHAT are they measuring?
Statistical standard deviation from a moving average. 95% of "normal" price action stays within ±2 standard deviations if returns are normally distributed. When price hits the bands, it's in the outer5% of recent behavior—potentially extreme.
Let's derive from scratch. We want to know: "Is today's price normal or unusual compared to recent history?"
Step 1: Define "normal" as the average price over recent days
→ This gives us the middle band MBt=N1∑Pt−i
Step 2: Measure how much prices typically deviate from this average
→ For each historical price, compute deviation: Pt−i−MBt
→ Square them (so negative deviations don't cancel positive ones): (Pt−i−MBt)2
→ Average these squared deviations: N1∑(Pt−i−MBt)2
→ Take square root to get back to price units: σt=variance
WHY this measures volatility? If prices swing wildly, deviations are large → σ is large → bands are wide. If prices barely move, σ is small → bands are narrow.
Step 3: Create boundaries at "typical extreme" levels
→ Statistics tells us: for a normal distribution, ≈95% of data falls within ±2σ
→ So we place bands at MB±2σ to capture "normal" range
WHY derive these?
Bandwidth makes squeezes quantifiable: BW < 0.10 (or historical low) signals a squeeze
%B normalizes position: now we can compare a₹100 stock to a ₹5000 stock using the same 0-1 scale
The Physics Analogy: Think of volatility as energy. Low volatility = energy stored (potential energy). High volatility = energy released (kinetic energy). Energy cannot stay compressed forever—it must release.
WHAT triggers a squeeze?
Consolidation after a trend
Uncertainty before major news (earnings, policy)
Tight trading range where buyers and sellers are balanced
HOW to identify?
Calculate Bandwidth for last 6months
Current BW is in the lowest 5-10% of that range
Alternative: Use Bollinger Band Width indicator (most platforms have it)
Confirmation: Low volume often accompanies squeezes
WHAT happens after?
Volatility mean-reverts: low volatility → high volatility
Price breaks out of the range (direction uncertain)
Imagine you're tracking how wild your pupy's behavior is. Some days he's calm, sleeping near his bed. Other days he's running around the whole house.
You put down a bed (that's the middle line—where he usually is). Then you imagine two zones: one on each side showing "okay, he's still acting normal even if he's a bit far from his bed." Those zones are the Bollinger Bands.
When your puppy is super calm for days (barely leaving his bed), the zones get really narrow—that's a "squeeze." After being calm for so long, you KNOW a crazy zoomie session is coming soon. You just don't know if he'll zoom to the kitchen or the living room!
Stock prices are the same. When the bands get super narrow (squeeze), the price is being calm. But calm doesn't last—a big move is coming. The bands tell you WHEN something big will happen, not WHERE it'll go.
Question: What are the three components of Bollinger Bands and what does each represent? :: 1) Middle Band = N-period SMA (the average/center), 2) Upper Band = MB + k×σ (upper boundary of "normal"), 3) Lower Band = MB - k×σ (lower boundary of "normal"). Standard is 20-period SMA with k=2 (2 standard deviations).
Question: Derive the formula for standard deviation σ used in Bollinger Bands from first principles.
Start with deviations from mean: (P - MB). Square them to avoid cancellation: (P - MB)². Average the squared deviations: Σ(P - MB)²/N. Take square root to return to price units: σ = √[Σ(P - MB)²/N]. This measures typical deviation size.
Question: What is Bandwidth and why is it useful?
Bandwidth = (UB - LB)/MB =2kσ/MB. It normalizes band width relative to price, making squeezes comparable across different price levels and stocks. Low BW (bottom 5-10% historically) signals a squeeze.
Question: What is %B and how do you interpret its values?
%B = (Price - LB)/(UB - LB). It shows where price sits within the bands on a 0-1 scale. %B=1 means price at upper band, %B=0 means lower band, %B=0.5 means middle band. %B>1 or<0 means price outside bands (extreme).
Question: What is a Bollinger Squeeze and what does it predict?
A squeeze occurs when Bandwidth contracts to historically low levels, indicating very low volatility. It predicts that volatility will expand (mean revert) soon, leading to a breakout. Direction is unknown—could break up or down.
Question: Why does the squeeze strategy NOT predict direction?
Because a squeeze only measures volatility compression, not directional bias. Low volatility = market indecision/equilibrium. The breakout direction depends on which side (bulls or bears) wins when the squeeze releases, requiring volume confirmation.
Question: In a strong uptrend, should you sell when price touches the upper band? Why or why not?
No. In trending markets, price can "walk the bands" for extended periods. Upper band touch in uptrend shows strength, not exhaustion. Better to buy pullbacks to the middle band. Only fade bands in confirmed ranging markets.
Question: What's the mathematical reason2σ bands capture "most" price action?
For a normal distribution, ±1σ captures ≈68% of data, ±2σ captures ≈95%, ±3σ captures ≈99.7%. Using 2σ means only 5% of price action should be outside bands in normal conditions—making band touches statistically significant.
Question: How do you confirm a squeeze breakout is valid vs. a false breakout?
1) Volume spike (2-3x average) on breakout bar, 2) Close outside the band (not just awick), 3) Follow-through on next bar, 4) Breakout in direction of higher timeframe trend increases probability.
Question: Why would you adjust k from 2.0 to 2.5 or 1.5?
3.4.01-MovingAverages-SMA-EMA|Moving Averages: Middle band is a simple moving average—understanding SMA is prerequisite
3.4.03-RSI-and-Stochastic-Oscillators|RSI: Combine with BB for confluence—RSI divergence + band touch = stronger signal
Average True Range: Both measure volatility; ATR is absolute, BB is relative to price
Volume Analysis: Essential for confirming breakouts from squeezes
Support & Resistance: Bands act as dynamic support/resistance, but not static levels
2.5.03-Standard-Deviation-and-Volatility|Standard Deviation: Core statistical concept—BB visualizes σ in price domain
Trend Following: Walking-the-bands strategy works in trending markets
Range Trading: Mean-reversion at bands works in ranging markets
#flashcards/stock-market
Question: What are the three components of Bollinger Bands and what does each represent?
1) Middle Band = N-period SMA (the average/center), 2) Upper Band = MB + k×σ (upper boundary of "normal"), 3) Lower Band = MB - k×σ (lower boundary of "normal"). Standard is 20-period SMA with k=2 (2 standard deviations).
Question: Derive the formula for standard deviation σ used in Bollinger Bands from first principles.
Start with deviations from mean: (P - MB). Square them to avoid cancellation: (P - MB)². Average the squared deviations: Σ(P - MB)²/N. Take square root to return to price units: σ = √[Σ(P - MB)²/N]. This measures typical deviation size.
Question: What is Bandwidth and why is it useful?
Bandwidth = (UB - LB)/MB = 2kσ/MB. It normalizes band width relative to price, making squeezes comparable across different price levels and stocks. Low BW (bottom 5-10% historically) signals a squeeze.
Question: What is %B and how do you interpret its values?
%B = (Price - LB)/(UB - LB). It shows where price sits within the bands on a 0-1 scale. %B=1 means price at upper band, %B=0 means lower band, %B=0.5 means middle band. %B>1 or <0 means price outside bands (extreme).
Question: What is a Bollinger Squeeze and what does it predict?
A squeeze occurs when Bandwidth contracts to historically low levels, indicating very low volatility. It predicts that volatility will expand (mean revert) soon, leading to a breakout. Direction is unknown—could break up or down.
Question: Why does the squeeze strategy NOT predict direction?
Because a squeeze only measures volatility compression, not directional bias. Low volatility = market indecision/equilibrium. The breakout direction depends on which side (bulls or bears) wins when the squeeze releases, requiring volume confirmation.
Question: In a strong uptrend, should you sell when price touches the upper band? Why or why not?
No. In trending markets, price can "walk the bands" for extended periods. Upper band touch in uptrend shows strength, not exhaustion. Better to buy pullbacks to the middle band. Only fade bands in confirmed ranging markets.
For a normal distribution, ±1σ captures ≈68% of data, ±2σ captures ≈95%, ±3σ captures ≈99.7%. Using 2σ means only 5% of price action should be outside bands in normal conditions—making band touches statistically significant.
Question: How do you confirm a squeeze breakout is valid vs. a false breakout?
1) Volume spike (2-3x average) on breakout bar, 2) Close outside the band (not just a wick), 3) Follow-through on next bar, 4) Breakout in direction of higher timeframe trend increases probability.
Question: Why would you adjust k from 2.0 to 2.5 or 1.5?
Bollinger Bands ko samajhna stock market mein bohot zaroori hai, kyunki yeh tumhe bata hai ki price "normal" move kar raha hai ya "extreme" move kar raha hai. Socho agar tum ek rubber band koek ball ke around lagao—jab ball zor se bounce karti hai, rubber band stretch hota hai wide. Jab ball barely move karti hai, rubber band tight ho jata hai. Bollinger Bands exactly yahi kaam karta hai.
Teen lines hain: middle band (yeh simple moving average hai, matlab pichle 20 din ka average price), upper band (middle se +2 standard deviations door), aur lower band (middle se -2 standard deviations neeche). Jab price upper ya lower band ko touch karta hai, matlab woh 95% normal behavior se bahar hai—yeh rare event hai, statistically speaking. Traders yeh dekhte hain ki "price itna extreme gaya hai, ab wapas middle ki taraf ayega" (mean reversion).
Sabse important concept hai "squeeze." Jab bands bohot narrow ho jate hain—matlab market bilkul shant hai, koi bhi volatility nahi—toh yeh signal hai ki jald hi bada move ane wala hai. Jaise spring ko dabao toh energy store hota hai, phir release hota hai toh zor se bounce karta hai. Squeeze ka matlab hai market indecision, aur indecision kabhi zyada time tak nahi rehta. Breakout hoga, sirf direction pata nahi (upar ya neeche).
Trading strategy simple hai: agar ranging market hai, toh bands ko support-resistance ki tarah use karo—lower band pe buy, upper band pe sell (ya target). Agar squeeze dikh raha hai, toh wait karo breakout ke liye—jab price band se bahar close ho with high volume, tab entry lo breakout direction mein. Ek bohot common mistake hai ki log sochte hain "upper band pe price = overbought, sell karo." Wrong! Agar strong uptrend chal raha hai, toh price upper band ko walk karega weeks tak. Bands volatility measure karte hain, not overbought/oversold directly. Isliye hamesha trend check karo pehle, phir bands use karo confirmation ke liye.