Bollinger Bands: How to Read the Bands, Set Them and Stop Misusing Them
Bollinger Bands explained from scratch: the formula (20-period SMA plus or minus 2 standard deviations) with a worked numeric example, %B and BandWidth, what band width tells you, walking the band in strong trends, why a band touch is not a signal, and when to change the 20/2 default.
Bollinger Bands are the indicator most people have on their chart and fewest people have actually read. Three lines, an easy rule that sounds like it works (price hits the top, sell; price hits the bottom, buy), and a lot of blown trades from believing it. This post is the foundation: the formula worked out on numbers you can check, what %B and BandWidth measure, what it looks like when price walks the band, why a touch is not a signal, and what the 20 and 2 in the default are actually doing.
Quick Answer
Bollinger Bands are volatility bands drawn around a moving average. The middle band is a 20-period simple moving average. The upper and lower bands sit 2 standard deviations above and below it, so they widen when price swings a lot and narrow when it is quiet. %B tells you where price sits inside the bands, and BandWidth tells you how wide they are. In a strong trend price can ride the upper band for many bars, so a touch of a band is a tag, not a signal. The with-trend read is price walking the upper band in an uptrend and pulling back toward the middle band. Betting against a band touch is the low-grade setup. The bands describe the last 20 closes. They do not predict the next one.
Everything below is either the arithmetic behind that paragraph or the places it gets misused.
How Bollinger Bands Are Calculated
The StockCharts ChartSchool article on Bollinger Bands gives the construction in three lines. The middle band is the 20-day simple moving average. The upper band is that average plus the 20-day standard deviation of price times 2. The lower band is the average minus the same amount. If the simple moving average itself is new to you, the simple moving average guide covers the middle line in full.
Middle band = SMA(20) of the close
Upper band = Middle band + 2 x (standard deviation of the last 20 closes)
Lower band = Middle band - 2 x (standard deviation of the last 20 closes)
Here it is on twenty hypothetical closes. They are made up so the arithmetic is easy to check, not market data. The 20 closes add to 2,046.8, so the middle band is 2,046.8 / 20 = 102.34. Next, each close's distance from that average, squared, as in the table. The squared distances add to 37.528, and dividing by 20 gives a variance of 1.8764. The square root of that is the standard deviation, 1.3698.
| Day | Close | Close minus 102.34 | Squared |
|---|---|---|---|
| 1 | 100.0 | -2.34 | 5.4756 |
| 2 | 100.6 | -1.74 | 3.0276 |
| 3 | 100.2 | -2.14 | 4.5796 |
| 4 | 101.0 | -1.34 | 1.7956 |
| 5 | 101.4 | -0.94 | 0.8836 |
| 6 | 101.0 | -1.34 | 1.7956 |
| 7 | 101.8 | -0.54 | 0.2916 |
| 8 | 102.2 | -0.14 | 0.0196 |
| 9 | 101.6 | -0.74 | 0.5476 |
| 10 | 102.4 | 0.06 | 0.0036 |
| 11 | 102.8 | 0.46 | 0.2116 |
| 12 | 102.2 | -0.14 | 0.0196 |
| 13 | 103.0 | 0.66 | 0.4356 |
| 14 | 103.4 | 1.06 | 1.1236 |
| 15 | 102.8 | 0.46 | 0.2116 |
| 16 | 103.6 | 1.26 | 1.5876 |
| 17 | 104.0 | 1.66 | 2.7556 |
| 18 | 103.4 | 1.06 | 1.1236 |
| 19 | 104.2 | 1.86 | 3.4596 |
| 20 | 105.2 | 2.86 | 8.1796 |
Now the bands. Two standard deviations is 2.74, so the upper band is 102.34 + 2.74 = 105.08 and the lower band is 102.34 - 2.74 = 99.60. The last close, 105.2, is above the upper band. That is what a band tag looks like: price finishing a little outside a line drawn from its own last 20 closes, while the whole series has been climbing.
A note on the divide-by-20 step. This example divides the squared distances by n (the population standard deviation). Dividing by n minus 1 gives a slightly larger sample standard deviation, here 1.4054 instead of 1.3698, which would put the upper band at 105.15 instead of 105.08. I am not claiming which version any particular charting platform uses. If your bands are a hair different from a hand calculation, check that first.
Because the standard deviation is built from squared distances, one big move pushes the bands out faster than a lot of small ones, and the bands snap back inward only once that bar leaves the 20-bar window. In plain terms, the bands widen when volatility rises and contract when it falls.
%B, BandWidth and What the Width Tells You
Two derived numbers turn the picture into something you can read off a value. Both are on the same bands, and they answer different questions.
%B: where is price inside the bands?
StockCharts defines %B as (price minus lower band) divided by (upper band minus lower band). It is above 1 when price is above the upper band and below 0 when price is below the lower band. Price on the middle band reads 0.5. On the worked series, the last close gives (105.2 - 99.60) / (105.08 - 99.60) = 1.02, a hair over 1.
BandWidth: how wide are the bands?
StockCharts defines BandWidth as (upper band minus lower band) divided by the middle band, times 100. It is the band gap as a percentage of the average, so you can compare it across prices and across time. On the worked series it is (105.08 - 99.60) / 102.34 x 100 = 5.35%. StockCharts notes that falling BandWidth reflects decreasing volatility and rising BandWidth reflects increasing volatility.
To see what the width is actually measuring, take two charts that both average exactly 100 over 20 bars. One alternates between 99.5 and 100.5, the other between 98 and 102.
| Chart | 20 closes | Std dev | Lower to upper | BandWidth |
|---|---|---|---|---|
| Quiet chart | alternating 99.5 and 100.5 | 0.50 | 99.00 to 101.00 | 2.00% |
| Fast chart | alternating 98.0 and 102.0 | 2.00 | 96.00 to 104.00 | 8.00% |
Same center line, four times the width. That is the whole message of the band gap: it measures recent volatility, nothing about direction. Wide bands say price has been moving a lot over the last 20 bars. Narrow bands say it has been quiet. Neither says which way the next move goes. The narrow case is the one traders call a squeeze, which StockCharts describes as volatility falling to a low level. We give it its own page, so here it is in two sentences: a squeeze is the BandWidth reading low relative to its own history, and the open question is the direction and the quality of the breakout that follows. How to size up that setup, and where the false starts come from, is in the Bollinger Band squeeze guide.
Illustrative only: price walking the upper band, then pulling back to the middle band
Walking the Band and the With-Trend Read
This is the part the beginner rule gets backwards. StockCharts, relaying Bollinger, says that in a strong uptrend it is common for price to walk the band, with numerous touches of the upper band, and that in an uptrend it is also common for price to never reach the lower band. The diagram above is a hypothetical series built to show it. After sixteen quiet bars, price trends up. From bar 20 to bar 27 (eight bars in a row) the close finishes above the upper band, with %B between 1.00 and 1.22. An entry rule that sold the first tag of the upper band would have been fighting the move for eight bars.
The with-trend read uses the same three lines the other way round. In an uptrend, the upper band tells you the trend is strong (price keeps reaching it), and the middle band is the place to watch for a pullback. In the series, price falls from 110.8 on bar 27 to 105.9 on bar 31, against a middle band of 104.73, a %B of 0.58. The lower band never comes into play: the lowest %B in the whole stretch is 0.58. Then the series resumes up and %B climbs back toward 1.
That pullback is a place to look, not a buy button. Whether it holds depends on the same things any pullback depends on: a higher low against the prior swing, volume drying up on the way down and returning on the bounce, and room to the next level. The support and resistance guide covers the levels, and the EMA day trading strategy post covers the faster averages that traders commonly use for the same job on intraday charts. The bands add one thing those lines do not: a width that scales with how fast the move has been.
| Bar | Close | Lower | Middle | Upper | %B |
|---|---|---|---|---|---|
| 20 | 103.9 | 98.23 | 100.55 | 102.87 | 1.22 |
| 24 | 107.4 | 96.68 | 101.79 | 106.90 | 1.05 |
| 27 | 110.8 | 95.98 | 103.26 | 110.53 | 1.02 |
| 31 | 105.9 | 97.55 | 104.73 | 111.91 | 0.58 |
| 36 | 112.0 | 101.21 | 107.18 | 113.15 | 0.90 |
| 40 | 116.1 | 103.21 | 109.62 | 116.03 | 1.01 |
Price tagging the upper band tells you it is stretched. It does not tell you whether the pullback you are about to buy is holding.
Upload the screenshot and SnapPChart grades that single image as a momentum continuation setup: structure, levels, EMAs, VWAP and the volume bars in frame, then an entry, a stop with its reasoning, targets and the reward-to-risk they imply. A stretched C-grade chart is still a C.
Grade this chartWhy a Band Touch Is Not a Signal
StockCharts puts it in one line: moves that touch or exceed the bands are not signals, they are tags. It also relays Bollinger's figure that the bands should contain 88 to 89 percent of price action, which is why a close outside them stands out. Standing out is not the same as reversing. In the worked series, price was outside the upper band for eight straight bars and the thing that followed was more of the same.
The tempting shortcut is the band fade: buy when price tags the lower band, sell when it tags the upper band, on the theory that price returns to the middle. That bets against the move, and in a trend the move keeps going. It is the low-grade setup, and this post does not recommend it as an entry. A tag of the lower band in a downtrend is price continuing down, the mirror image of the diagram. Entries in the direction of the trend, taken on a pullback, are the better-graded version of the same chart. The band only tells you what the market looks like. It does not give you the reason to enter.
Bands are one of several envelope-style indicators, and they are not interchangeable. The Keltner channel guide covers the version built from average true range, and the Donchian channel guide covers the one built from the highest high and lowest low with no volatility maths at all. Momentum oscillators such as RSI answer a different question, and the RSI trading strategy post covers the oscillator side. For where bands sit among the other tools, see the roundup of indicators for day trading.
The 20/2 Default and When to Change It
The default is 20 periods and 2 standard deviations, and StockCharts lists that as the standard configuration. Twenty is a window of roughly a month of daily bars. On an intraday chart the same 20 means a much shorter stretch of time, so the first decision is the window you want the bands to describe, not the number.
If you do change the period, StockCharts relays Bollinger's advice to adjust the multiplier in small increments, for example 2.1 for a 50-period average and 1.9 for a 10-period one.
| Setting | What it does |
|---|---|
| 20 periods, 2 standard deviations | The default. StockCharts lists it as the standard configuration, a 20-period SMA with bands 2 standard deviations away. |
| Shorter period, for example 10, multiplier 1.9 | A faster middle line and a tighter band. StockCharts relays Bollinger's suggestion of 1.9 for a 10-period SMA. |
| Longer period, for example 50, multiplier 2.1 | A slower middle line and a wider band. StockCharts relays Bollinger's suggestion of 2.1 for a 50-period SMA. |
| Changing the multiplier a lot, for example 3 | Widens the bands so price touches them less often. That changes how rare a tag looks, not what a tag means. Bollinger's advice as relayed is small increments only. |
| Same period on a different timeframe | 20 bars on a 5-minute chart is about the last 100 minutes. 20 bars on a daily chart is about four weeks of sessions. Same name, very different window. |
So what are the best Bollinger Bands settings for day trading? No source used here shows that one set beats another, and this post does not claim it. A faster setting reacts sooner and touches the bands more often, which means more tags that mean nothing. A slower setting is calmer and later. Pick the window that matches how long you hold, keep the multiplier near 2, and judge the chart by structure and volume rather than by whether a band got touched.
Bollinger Bands on a Screenshot
The precise version, since this is easy to oversell. SnapPChart reads one chart screenshot you upload. Bollinger Bands are not among the fields it extracts, and it does not compute them. Its instructions name EMAs, VWAP, MACD and volume as the indicators to read. If you plot the bands before you take the screenshot, they are in the image, but nothing in the grader's instructions tells it to read them, and it never calculates a band or signals off a tag.
It also grades momentum continuations only: a long is a pullback in an established uptrend, a short is a rally in an established downtrend, and it does not take reversal or counter-trend setups. That is why a band fade is not something it grades as a trade. The with-trend read in this post, a pullback in a trend that has been walking the band, is the shape of chart it is built for. A neutral description of what a single screenshot read covers is on the AI chart analysis page.
Bands = SMA(20) plus and minus 2 standard deviations. %B is where price sits in the bands, BandWidth is how wide they are as a percent of the middle band. Width measures recent volatility and says nothing about direction. In a strong trend price walks the band, so a touch is a tag, not a signal. Read the with-trend version: strength at the upper band in an uptrend, and a pullback toward the middle band as a place to watch. Treat band fades as the low-grade setup. Keep 20 and 2 unless you have a reason, and change the multiplier in small steps if you change the period.
Frequently Asked Questions
What are Bollinger Bands in simple terms?
Three lines drawn over price. The middle line is a 20-period simple moving average. The upper and lower lines sit 2 standard deviations above and below it. Because standard deviation measures how spread out recent closes are, the bands widen when price is moving a lot and narrow when it is quiet. They describe recent volatility around an average. They do not say which way price goes next.
Is touching the upper Bollinger Band a sell signal?
No. StockCharts, describing John Bollinger's approach, calls moves that touch or exceed the bands tags, not signals, and notes that in a strong uptrend price commonly walks the upper band with many touches. In the worked series in this post, eight closes in a row finished above the upper band while price kept rising. A touch tells you price is stretched relative to the last 20 closes, which is a fact about the past, not a reason to bet against the move.
What are the best Bollinger Bands settings for day trading?
There is no setting that is best in the abstract, and nothing here claims one beats another. The default is a 20-period average with 2 standard deviations. StockCharts relays Bollinger's advice to change only the multiplier, in small steps, if you change the period, for example 2.1 for a 50-period average or 1.9 for a 10-period one. The more useful question is what window in time you want the bands to describe on your chart, then set the period to match and leave the multiplier near 2.
How is %B different from BandWidth?
%B tells you where price is inside the bands: (price minus lower band) divided by (upper band minus lower band). Above 1 means above the upper band, below 0 means below the lower band, and 0.5 is the middle band. BandWidth tells you how wide the bands are: (upper minus lower) divided by the middle band, times 100. One is a position, the other is a width.
Does SnapPChart calculate Bollinger Bands?
No. SnapPChart reads only the screenshot you upload, and Bollinger Bands are not one of the fields it extracts. If you plot them before you take the screenshot, the bands are in the image, but nothing in the grader's instructions tells it to read them, and it does not compute them and it does not signal off a band tag. It also grades momentum continuation setups only, so a counter-trend band fade is not something it takes.
This article is for educational and informational purposes only and is not investment, financial or trading advice. The Bollinger Bands construction, the %B and BandWidth definitions, the default settings, the description of walking the band, the statement that moves outside the bands are tags rather than signals, and the suggested multiplier adjustments are as described by the cited StockCharts ChartSchool pages and are reproduced as their published descriptions, not as rules endorsed here. Every worked example, including the twenty-close standard deviation table, the quiet and fast width comparison and the forty-bar walk-the-band series, is a hypothetical construction built so the arithmetic can be checked; none is a real security or session. The diagram is illustrative and computed from made-up closes, not market data. No win rate, success rate or backtest is claimed for any band setting or signal, and none is implied. Bollinger Bands describe price that has already traded and do not predict direction. Day trading carries a substantial risk of loss and is not suitable for every investor. SnapPChart grades a static chart screenshot you upload and returns a setup grade, entry, stop, targets and reasoning for that single image; it grades momentum continuation setups only, does not calculate Bollinger Bands or signal off band touches, does not take reversal or counter-trend setups, and does not use live data. Do your own analysis, size positions so that being wrong is survivable, and consider speaking to a licensed financial professional about your own circumstances before trading.
Writes about AI-assisted day trading, technical analysis, and the systems traders actually use to stay disciplined.
The bands show you how stretched price is. They do not tell you whether your entry is any good.
Upload the chart screenshot and SnapPChart grades that one image as a momentum continuation setup, reading the structure, levels, EMAs, VWAP and volume bars in frame, then returns a setup grade, an entry, a stop with the reasoning behind its level, targets, and the reward-to-risk they imply. One skipped chase of an extended chart covers it.