Bollinger Bands¶
In the previous chapter, MACD told us about the direction and speed of a move. Bollinger Bands answer a different question: how much is the price moving around right now? That question matters a lot to an option trader, because the price of every option depends on expected movement, which is volatility. In this chapter you will see how the same bands can point to a mean-reversion trade, a trend trade or a volatility trade.
What you will learn
- What the three Bollinger Bands are and how they are calculated, with a worked example
- How to read band touches, band walks and squeezes on a chart
- Which settings suit Nifty and Bank Nifty intraday, swing trades and stocks
- How Bollinger Bands connect to historical volatility and implied volatility (IV)
- Three complete option trades: a bear call spread, a call buy after a squeeze, and a bull put spread that lost money
What Bollinger Bands are and what they measure¶
Bollinger Bands were created by John Bollinger in the 1980s. They are three lines drawn on the price chart:
| Line | What it is | Default |
|---|---|---|
| Middle band | A simple moving average of the close | 20-period SMA |
| Upper band | Middle band plus 2 standard deviations | SMA 20 + 2 × SD |
| Lower band | Middle band minus 2 standard deviations | SMA 20 - 2 × SD |
The standard deviation (SD) measures how far the closes are spread out around their average. You met it in Calculating Historical Volatility. When the closes are spread out, the SD is large and the bands move far apart. When the closes are bunched together, the SD is small and the bands come close together.
So the bands do two jobs at once. The middle band shows the short-term trend. The distance between the bands shows volatility.
Think of a highway with lanes painted on it. On a quiet day the lanes are narrow, and every car stays close to the centre. On a busy, chaotic day the lanes widen, because cars are swerving much more. Bollinger Bands repaint the lanes every day based on how much the price swerved in the last 20 days.
The formulas in plain text¶
Middle band = SMA(20) of closeUpper band = Middle band + 2 × SD(20) of closeLower band = Middle band - 2 × SD(20) of closeBandwidth (%) = (Upper band - Lower band) ÷ Middle band × 100%B = (Close - Lower band) ÷ (Upper band - Lower band)
Bandwidth turns the width of the bands into one number, so you can compare quiet and busy periods. %B tells you where the close is inside the bands: 0 means at the lower band, 1 means at the upper band, 0.5 means at the middle band. A %B above 1 means the close is outside the upper band.
A small worked calculation¶
Bollinger Bands use 20 closes, but the method is easier to see with 5. Suppose the last five Nifty closes are 23,010, 23,060, 22,980, 23,040 and 23,110.
| Close | Close - average | Square |
|---|---|---|
| 23,010 | -30 | 900 |
| 23,060 | +20 | 400 |
| 22,980 | -60 | 3,600 |
| 23,040 | 0 | 0 |
| 23,110 | +70 | 4,900 |
| Average 23,040 | Total 9,800 |
- Average (middle band) = 1,15,200 ÷ 5 = 23,040.
- Average of the squares = 9,800 ÷ 5 = 1,960.
- SD = square root of 1,960 = 44.27 points.
- Upper band = 23,040 + 2 × 44.27 = 23,128.54.
- Lower band = 23,040 - 2 × 44.27 = 22,951.46.
Bollinger Bands divide by N (here 5), not by N - 1, so the SD is a little smaller than the one in a statistics textbook. Your charting platform does this calculation for every bar.
On the last bar of the chart in the next section, the real 20-day numbers are: middle band 23,706.01, SD 50.85, upper band 23,807.71 and lower band 23,604.32. The close is 23,720. So %B = (23,720 - 23,604.32) ÷ (23,807.71 - 23,604.32) = 115.68 ÷ 203.39 = 0.57, a little above the middle. Bandwidth = 203.39 ÷ 23,706.01 × 100 = 0.86%.
How to read Bollinger Bands on a chart¶
The chart below shows an example of Nifty on a daily chart with Bollinger Bands (20, 2). The lower panel shows the bandwidth.

The chart shows three different behaviours.
- A range (April to June). The middle band is flat. Nifty swings from one band to the other, and each touch of a band is followed by a move back towards the middle. This is mean reversion: the price returns to its average.
- A squeeze (July and early August). Nifty moves in a very narrow range, and the bands come very close together. Bandwidth falls from about 3% to about 0.7%, its lowest level on the chart. Low volatility does not last forever, so a squeeze often comes before a big move.
- A band walk (mid-August to September). Nifty breaks out upwards. The bands open wide, and the closes stay at or near the upper band for many days. This is a band walk: in a strong trend, touching the upper band is a sign of strength, not a signal to sell.
About 90% of closes stay inside 2 SD bands over time. But the remaining 10% are not random: they cluster in strong trends and breakouts. That is why a touch of a band is never a trade signal by itself. You must first decide whether the market is in a range or in a trend.
Bollinger Bands and option volatility¶
The bands measure how much the price moved in the last 20 bars. That is realised volatility, the same idea as historical volatility. Option prices depend on implied volatility (IV), the movement the market expects in the future.
The two usually move together, because traders look at recent movement when they price options. This gives option traders a simple rule of thumb.
| Band condition | Realised volatility | IV and India VIX (usually) | What it means for options |
|---|---|---|---|
| Squeeze, bandwidth near its low | Low | Low | Options are cheap; buying options or debit spreads is attractive before a breakout |
| Bands opening fast after a breakout | Rising | Rising | Bought options gain from both direction and rising IV |
| Bands very wide after a sharp move | High | High | Options are expensive; selling premium (with a hedge) is more attractive as volatility calms |
Remember that a squeeze does not tell you the direction of the coming move. It only tells you that a bigger move is becoming more likely. Also, the 2 SD bands are not the same as the option market's expected move. The bands look back at 20 past closes, while IV looks forward to expiry. Compare the two with Realised vs Implied Volatility and India VIX.
Settings¶
The default setting on every platform is 20, 2: a 20-period SMA and bands 2 standard deviations away. John Bollinger suggested a slightly smaller multiplier for a shorter average and a slightly larger one for a longer average, for example 10 and 1.9, or 50 and 2.1.
| Use | Chart | Suggested setting | Comment |
|---|---|---|---|
| Nifty or Bank Nifty intraday | 5 minute | 20, 2 | 20 bars cover 100 minutes of trading; good for squeeze breakouts |
| Nifty or Bank Nifty intraday | 15 minute | 20, 2 | Fewer, cleaner signals; 20 bars cover most of a trading day |
| Swing trades (1 to 4 weeks) | Daily | 20, 2 | The classic setting for ranges, band walks and squeezes |
| Stocks, positional | Daily or weekly | 20, 2 or 50, 2.1 | A longer setting shows the bigger trend and fewer touches |
Some traders use 20, 2.5 on Bank Nifty or on volatile stocks, so that the bands are touched less often. A wider band gives fewer but stronger mean-reversion signals. Whatever you choose, keep it fixed and test it on past charts before you trade with money.
Signals¶
The main signals¶
| Market | Signal | What it suggests |
|---|---|---|
| Range (flat middle band) | A close outside the upper band, then a close back inside | The rise is stretched; a move back towards the middle band is likely |
| Range (flat middle band) | A close outside the lower band, then a close back inside | The fall is stretched; a bounce towards the middle band is likely |
| Trend (rising middle band) | Closes at or near the upper band, pullbacks to the middle band | Band walk: buy the pullbacks, do not sell the touches |
| Trend (falling middle band) | Closes at or near the lower band | Band walk down: sell the rallies, do not buy the touches |
| Squeeze | Bandwidth at its lowest level in months | A big move is likely; get ready for a breakout |
| Squeeze breakout | A close outside a band as the bands start to widen | The direction of the new move |
Notice the rule "close outside, then close back inside" for mean reversion. Waiting for the close back inside avoids selling into a band walk on the very first touch.
What Bollinger Bands are not good at¶
- Telling direction. A squeeze says "a move is coming", not "up" or "down". Use the breakout candle, or another indicator, for the direction.
- Fading strong trends. In a band walk, the price can touch the upper band ten days in a row. Selling calls at each touch in a strong trend leads to repeated losses.
- Fake breakouts. The first close outside a band after a squeeze is sometimes a "head fake" that reverses. Keep a stop just inside the old squeeze range.
- Exact targets. The bands move every day, so a target "at the upper band" keeps changing. Fix your target in points or premium when you enter.
Trade examples¶
Here are three complete trades. The first is a range trade on the daily chart, where mean reversion works best. The second is an intraday squeeze breakout on a 5-minute chart. The third is a range trade that failed when the range turned into a trend, so you can see a loss.
All premiums are calculated with the Black-Scholes model at the stated IV, rounded to the ₹0.05 tick. The results are before brokerage and taxes (see Trading Costs and Reading a Contract Note). The charts are examples with synthetic prices, not real history.
Example 1: Nifty in a range, upper band touch, bear call spread¶
The setup. Since July, Nifty had moved between about 22,650 and 23,250. The middle band was almost flat. On 3 November 2026, Nifty touched 23,293 and closed at 23,260, above the upper band (23,231.7). On 4 November it closed back inside the bands at 23,170. That close completed the mean-reversion signal: a close outside the upper band, then a close back inside.

The market view. Nifty should not rise above the range top in the next two to three weeks, and it may fall back towards the middle band near 22,900.
Why a bear call spread. The view is "not up", which fits an option seller. A bear call spread earns money if Nifty falls, stays flat or rises a little. Time decay works for us, and the bought call limits the loss if the range breaks upwards. The bandwidth was about 3%, a normal level, so option premiums were neither cheap nor expensive.
Strike and expiry. We use the 23 November 2026 monthly expiry, 19 days away, at IV 12.5%. The short strike 23400 sits above the range top and above the upper band.
| Leg | Contract | Premium | Cash flow for 1 lot (65) |
|---|---|---|---|
| Sell | NIFTY 23 NOV 23400 CE | ₹193.35 | Receive ₹12,567.75 |
| Buy | NIFTY 23 NOV 23600 CE | ₹124.60 | Pay ₹8,099.00 |
| Net | ₹68.75 credit | Receive ₹4,468.75 |
- Maximum profit = 68.75 × 65 = ₹4,468.75.
- Maximum loss = (200 - 68.75) × 65 = 131.25 × 65 = ₹8,531.25.
- Breakeven at expiry = 23,400 + 68.75 = 23,468.75.

The trade plan.
| Item | Rule |
|---|---|
| Entry | At the close of 4 November, after the close back inside the bands |
| Stop loss (chart) | A daily close above 23,320, which means the range is breaking |
| Stop loss (premium) | If Nifty closed at 23,320 two days later, the spread would cost about ₹84.35 to buy back, a loss of about ₹1,014 |
| Target | Nifty reaches the middle band, or 60% of the credit is earned |
| Time exit | Close the spread by 18 November in any case |
What happened. Nifty fell for the next few days. On 11 November it dropped to 22,831 during the day and touched the middle band near 22,925. The spread was bought back with Nifty at 22,925 and 12 days left. The 23400 CE was ₹61.10 and the 23600 CE was ₹29.95, so the cost to close was ₹31.15.
Profit for one lot = (68.75 - 31.15) × 65 = 37.60 × 65 = ₹2,444.
This is 55% of the maximum profit, earned in one week. Waiting until expiry for the last ₹2,000 would have meant 12 more days of risk.
Example 2: 5-minute squeeze breakout, buy a weekly call¶
The setup. On 11 November 2026, from about 10:10 am, Nifty moved in a narrow band between about 23,022 and 23,079. On the 5-minute chart, the Bollinger bandwidth fell to 0.106% at 11:25 am, its lowest level of the two days. At 11:35 am a strong green candle closed at about 23,083, above the upper band (23,073), and the bands began to open.

The market view. Bullish for the rest of the day. After a squeeze, the first strong close outside a band often starts a move of a few times the squeeze range.
Why buy a call. A squeeze breakout is a fast move, and we want the full benefit of it. An ATM call has a delta of about 0.5, so it gains about half a rupee for every point Nifty rises. After a quiet morning, IV is also low (we use 11.5%), so the call is cheap. If IV rises as the bands open, the call gains a little extra from vega. A credit spread would gain too slowly for a one-day breakout.
Strike and expiry. The nearest weekly expiry is Tuesday 17 November 2026, about 6 days away. The ATM strike is 23100. The NIFTY 17 NOV 23100 CE costs ₹140.75, with a delta of 0.51, a vega of about ₹11.96 and a theta of about -₹13.08 per day. One lot (65) costs 140.75 × 65 = ₹9,148.75.
The trade plan.
| Item | Rule |
|---|---|
| Entry | Buy at 11:40 am, after the 11:35 am candle closes above the upper band |
| Stop loss (chart) | A 5-minute close below 23,020, back below the squeeze low |
| Stop loss (premium) | At Nifty 23,020 the call would be worth about ₹110.55, a loss of about ₹1,963 for one lot |
| Trailing exit | Exit on the first 5-minute close below the middle band |
| Time exit | Exit by 3:15 pm in any case |
What happened. Nifty walked up the upper band. The bandwidth rose from 0.106% to 0.62% by 12:25 pm, which confirmed the volatility expansion. Nifty made a high of about 23,244 and its best close of 23,232 at 2:30 pm. At 3:00 pm a 5-minute candle closed at 23,201, below the middle band (23,205). The call was sold at 3:05 pm with Nifty at about 23,201, for ₹207.20.
Profit for one lot = (207.20 - 140.75) × 65 = 66.45 × 65 = ₹4,319.25.
At the best close of the day the call was worth about ₹227.90. The trailing exit gave back about ₹20 per unit, but it kept the trader in the trend for more than three hours without guessing the top.
Example 3: Bank Nifty lower band in a range, bull put spread (a loss)¶
The setup. Since July, Bank Nifty had moved between about 53,050 and 54,800. On 29 October 2026 it fell to 52,802 during the day and closed at 53,034, below the lower band (53,202). On 30 October it closed back inside the bands at 53,150. This was the mirror image of Example 1: a mean-reversion buy signal at the lower band.

The market view. Bank Nifty should hold the range bottom and move back towards the middle band, near 53,900.
Why a bull put spread. For a "not down" view, a bull put spread earns money if Bank Nifty rises, stays flat or falls only a little. The bought put limits the loss.
Strike and expiry. Bank Nifty has only monthly options, so we use the 23 November 2026 expiry, 24 days away, at IV 15%.
| Leg | Contract | Premium | Cash flow for 1 lot (30) |
|---|---|---|---|
| Sell | BANKNIFTY 23 NOV 52500 PE | ₹451.70 | Receive ₹13,551.00 |
| Buy | BANKNIFTY 23 NOV 52000 PE | ₹302.60 | Pay ₹9,078.00 |
| Net | ₹149.10 credit | Receive ₹4,473.00 |
- Maximum profit = 149.10 × 30 = ₹4,473.
- Maximum loss = (500 - 149.10) × 30 = 350.90 × 30 = ₹10,527.
- Breakeven at expiry = 52,500 - 149.10 = 52,350.90.
The trade plan.
| Item | Rule |
|---|---|
| Entry | At the close of 30 October, after the close back inside the bands |
| Stop loss (chart) | A daily close below 52,800, below the range bottom and the low of 29 October |
| Target | Bank Nifty reaches the middle band, or 60% of the credit is earned |
| Time exit | Close the spread by 18 November in any case |
What happened. Bank Nifty bounced only a little and closed at 53,265 on 4 November. It could not reach the middle band, which was itself falling. Then it slid lower, and on 11 November it closed at 52,700, below the stop level. The range had broken, and the market had turned into a band walk down.
At the stop, with 12 days left, IV had risen to 16.5% because of the fall. The 52500 PE was ₹487.10 and the 52000 PE was ₹303.30, so the cost to close was ₹183.80.
Loss for one lot = (149.10 - 183.80) × 30 = -34.70 × 30 = -₹1,041.
The rise in IV made the loss bigger: at an unchanged IV of 15%, the loss would have been about ₹838.50. Two days later Bank Nifty closed at 52,300, below the breakeven. Holding the spread there would have meant a loss of about ₹2,530, with a risk of up to ₹10,527.
Mean reversion stops working when a range becomes a trend
Band touches are good signals only while the middle band is flat. When the middle band starts to slope and closes keep hugging one band, the market has changed into a trend. Exit range trades quickly at that point, and never "average" a losing range trade.
Tips and common mistakes¶
Tips
- First decide: range, trend or squeeze. Then use the matching signal from the table above.
- In a range, wait for a close back inside the band before you sell premium.
- Use the bandwidth panel to spot squeezes. A bandwidth at a 6-month low on the daily chart is a strong squeeze.
- After a squeeze, prefer buying options or debit spreads: premium is usually cheap.
- After a big band expansion, prefer selling hedged premium: IV is usually high and may fall back.
- In a band walk, trail your exit with the middle band, as in Example 2.
Common mistakes
- Selling a call every time the price touches the upper band, even in a strong uptrend.
- Thinking a squeeze tells you the direction of the breakout.
- Buying options after the bands are already very wide, when IV is high and the move may be over.
- Placing a stop exactly at a band, which moves every day, instead of at a fixed price level.
- Ignoring the IV of the options: the same chart signal can be a good trade at low IV and a poor one at high IV.
Combining Bollinger Bands with other indicators¶
Bollinger Bands measure volatility, so combine them with a trend or momentum indicator.
| Combine with | Why |
|---|---|
| RSI | In a range, an upper band touch with RSI above 70 is a stronger mean-reversion signal |
| ADX | ADX below 20 confirms a range for band-touch trades; a rising ADX above 25 warns of a band walk |
| MACD | A MACD crossover in the direction of a squeeze breakout confirms the direction |
| Keltner Channels | Bollinger Bands inside Keltner Channels define the classic "squeeze" |
| Average True Range (ATR) | Size your stop in ATRs instead of placing it at a moving band |
| India VIX | A daily squeeze with VIX near its lows is a strong case for buying volatility |
We will build the full squeeze system with Keltner Channels in Keltner Channels and the Squeeze. In the next chapter, Average True Range (ATR), we learn another way to measure volatility, one that is perfect for stop losses and position sizing.
Key takeaways¶
- Bollinger Bands are a 20 SMA with bands 2 standard deviations above and below it.
- The width of the bands is a measure of realised volatility; bandwidth turns it into one number.
- In a range, a close outside a band followed by a close back inside is a mean-reversion signal.
- In a trend, the price walks along one band; touches are a sign of strength, not a reversal signal.
- A squeeze (very low bandwidth) warns of a big move but not its direction.
- Squeezes usually come with low IV (buy options or debit spreads); wide bands usually come with high IV (sell hedged premium).
- Always fix your stop and target at price levels or premiums, not at the moving bands.
Check your understanding¶
- The 20-day SMA of Nifty is 23,000 and the 20-day SD is 60 points. What are the upper and lower bands, and what is the bandwidth?
- Nifty closes at 23,090 with the bands from Question 1. What is %B, and what does it mean?
- Why is a touch of the upper band a poor reason to sell a call in a strong uptrend?
- The daily bandwidth of Nifty is at a 6-month low and India VIX is near 11. Which is more attractive: buying a straddle or selling a strangle?
- In Example 3, why did the bull put spread lose more than the price move alone would suggest?
Show answers
- Upper band = 23,000 + 2 × 60 = 23,120. Lower band = 23,000 - 2 × 60 = 22,880. Bandwidth = (23,120 - 22,880) ÷ 23,000 × 100 = 240 ÷ 23,000 × 100 = 1.04%.
- %B = (23,090 - 22,880) ÷ (23,120 - 22,880) = 210 ÷ 240 = 0.875. The close is in the upper part of the bands, close to the upper band but still inside.
- In a strong uptrend the price can walk along the upper band for many days. Each touch shows strength, so a short call can be tested again and again.
- Buying a straddle (or another long volatility trade) is more attractive. A squeeze warns of a bigger move, and low IV means options are cheap. Selling a strangle would collect little premium just before volatility is likely to rise.
- When Bank Nifty broke down, IV rose from 15% to 16.5%. The puts the trader was short became more expensive because of the higher IV, not only because of the lower price.
Test yourself¶
Take the quiz for this chapter: 14 multiple choice questions, each with an explanation.