Bollinger Bands are a moving average with a band drawn a set number of standard deviations above and below it. The bands widen when price is volatile and narrow when it is quiet. The usual setting is a 20 period average with bands two standard deviations away.
On AUDUSD, EURUSD, GBPUSD, XAUUSD and BTCUSD hourly bars (signal matrix v2), no Bollinger Bands rule held on data it had not seen after costs on any of the five markets, and the only ones that held at all, on XAUUSD and BTCUSD, held before costs only. In the older v1 test of the textbook rule (a close back inside the band), 5 of 30 cases averaged above zero after costs and 0 were beyond chance in the winning direction. The band touch showed no reliable edge. Past results, not a forecast.
Last updated 27 Nov 2026. Reviewed by the Custom Trading Platform education desk. Worked figures are sample arithmetic, shown in full. Test figures are results from our own tests on past data, with their cases, period and cost.
A period of 5 and K of 2 are used so the working fits on a page. Five closes: 10, 11, 12, 11 and 13. The middle band is the average, 11.4. The deviations from it are minus 1.4, minus 0.4, 0.6, minus 0.4 and 1.6, and their squares add to 5.2. The variance is 5.2 divided by 5, which is 1.04, and the standard deviation is 1.0198. The upper band is 11.4 plus 2 times 1.0198, which is 13.44, and the lower band is 11.4 minus 2.0396, which is 9.36. Percent B at the close of 13 is (13 minus 9.36) divided by (13.44 minus 9.36), which is 0.892. Bandwidth is (13.44 minus 9.36) divided by 11.4, which is 0.358.
| Window of 5 closes | Middle | Standard deviation | Upper | Lower | Close | Percent B | Bandwidth |
|---|---|---|---|---|---|---|---|
| 10, 11, 12, 11, 13 | 11.4 | 1.0198 | 13.44 | 9.36 | 13 | 0.892 | 0.358 |
| 11, 12, 11, 13, 11 | 11.6 | 0.8 | 13.2 | 10.0 | 11 | 0.3125 | 0.276 |
Between the two windows the close fell back from 13 to 11, the bands narrowed (bandwidth from 0.358 to 0.276) and percent B dropped from 0.892 to 0.3125. Check your own closes with the volatility calculator.
Engine and question: signal matrix v2 asks which rules held on data they had not seen. Each rule was chosen on the first 70 of every 100 bars and counted on the rest, with a gap of 50 bars: from 2 January 2024 on AUDUSD, 12 February 2024 on EURUSD, 12 February 2024 on GBPUSD, 2 February 2024 on XAUUSD, 21 May 2024 on BTCUSD, hourly bars. A clear move is at least half the usual move over that many bars, and a smaller drift counts as flat. Costs are included: for AUDUSD, EURUSD, GBPUSD and XAUUSD the spread measured from real ticks at the hour the trade opens plus commission both ways, and for BTCUSD the median spread recorded on each bar with no commission, because there is no tick sample. Swap is excluded and real fills can be worse. The rules were chosen before the results, and every one is shown, including those that did not hold. These are results from past data and they do not predict what will happen.
| Rule | AUDUSD | EURUSD | GBPUSD | XAUUSD | BTCUSD |
|---|---|---|---|---|---|
| price crosses above the upper band | does not hold | does not hold | does not hold | does not hold | does not hold |
| price crosses back below the upper band | does not hold | does not hold | does not hold | does not hold | does not hold |
| price crosses below the lower band | does not hold | does not hold | does not hold | does not hold | holds before costs only |
| price crosses back above the lower band | does not hold | does not hold | does not hold | does not hold | does not hold |
| price is above the upper band | does not hold | does not hold | does not hold | does not hold | does not hold |
| price is below the lower band | does not hold | does not hold | does not hold | does not hold | holds before costs only |
| price crosses above the middle line | does not hold | does not hold | does not hold | does not hold | does not hold |
| price crosses below the middle line | does not hold | does not hold | does not hold | does not hold | does not hold |
| percent B in its lowest 5 of every 100 readings | does not hold | does not hold | does not hold | holds before costs only | does not hold |
| percent B in its highest 5 of every 100 readings | does not hold | does not hold | does not hold | does not hold | does not hold |
| band width in its lowest 10 (a squeeze) | does not hold | does not hold | does not hold | does not hold | does not hold |
| band width in its highest 10 | does not hold | does not hold | does not hold | does not hold | does not hold |
The rules that held, with their clear move figures.
| Market | Rule | Verdict | Way | Horizon (bars) | Clear move the rule's way, of every 100 unseen cases | Flat | Clear move against | Unseen cases (n) | Net per trade after costs |
|---|---|---|---|---|---|---|---|---|---|
| XAUUSD | percent B in its lowest 5 of every 100 readings | holds before costs only | up | 1 | 49.4 | 11.8 | 38.8 | 330 | 0.0181 of one percent |
| BTCUSD | price crosses below the lower band | holds before costs only | up | 1 | 40.2 | 28.5 | 31.3 | 520 | minus 0.0248 of one percent |
| BTCUSD | price is below the lower band | holds before costs only | up | 1 | 40.7 | 27.8 | 31.5 | 550 | minus 0.0201 of one percent |
In the wider set of rules tested, only EURUSD held more often than luck alone would give, and the other markets held less often, so every rule that held is a hypothesis, not a finding.
Engine: signal matrix v1 (what happened after the textbook rule, over all history). The rule is a 20 period, 2 deviation band: when a close comes back inside the band after closing outside it, the trade is taken the opposite way to the breach, at the next open, and the move is measured 4, 12, 24, 50, 72 and 168 bars later. Events are counted only when they do not overlap. The unseen data check is the last 730 days against the earlier years, and the luck check is the beyond chance column. The v1 and v2 results answer different questions and are never added together.
| Market | Horizon (bars) | Cases (n) | Average move before costs | Cost | Average move after costs | Share ending ahead after costs | Earlier years, after costs | Last 730 days, after costs | Beyond chance? |
|---|---|---|---|---|---|---|---|---|---|
| AUDUSD hourly | 4 | 3,389 | minus 0.03 | 1.17 | minus 1.2 | 47 | minus 1.01 | minus 1.97 | no (t minus 0.1) |
| AUDUSD hourly | 12 | 2,519 | 0.29 | 1.17 | minus 0.88 | 48.6 | minus 0.55 | minus 2.17 | no (t 0.48) |
| AUDUSD hourly | 24 | 1,752 | 1.22 | 1.17 | 0.05 | 49.7 | 0.1 | minus 0.07 | no (t 1.22) |
| AUDUSD hourly | 50 | 1,008 | 0.76 | 1.17 | minus 0.41 | 48.1 | 0.52 | minus 3.58 | no (t 0.4) |
| AUDUSD hourly | 72 | 742 | 1.61 | 1.17 | 0.44 | 49.9 | minus 0.34 | 5.29 | no (t 0.6) |
| AUDUSD hourly | 168 | 345 | minus 6.77 | 1.17 | minus 7.94 | 48.1 | minus 8.35 | 3.8 | no (t minus 1.15) |
| EURUSD hourly | 4 | 3,529 | minus 0.02 | 1.119 | minus 1.14 | 47 | minus 0.77 | minus 2.64 | no (t minus 0.05) |
| EURUSD hourly | 12 | 2,536 | minus 0.14 | 1.119 | minus 1.25 | 48.9 | minus 0.75 | minus 3.23 | no (t minus 0.2) |
| EURUSD hourly | 24 | 1,820 | minus 0.36 | 1.119 | minus 1.48 | 49.4 | minus 0.68 | minus 4.73 | no (t minus 0.32) |
| EURUSD hourly | 50 | 1,019 | 1.23 | 1.119 | 0.11 | 51.3 | 0.01 | minus 1.69 | no (t 0.54) |
| EURUSD hourly | 72 | 759 | 8.22 | 1.119 | 7.1 | 53.6 | 5.42 | 13.51 | no (t 2.6) |
| EURUSD hourly | 168 | 349 | minus 4.17 | 1.119 | minus 5.29 | 50.1 | minus 2.51 | minus 8.64 | no (t minus 0.61) |
| GBPUSD hourly | 4 | 3,512 | 0.31 | 1.241 | minus 0.94 | 47.6 | minus 0.6 | minus 2.31 | no (t 0.57) |
| GBPUSD hourly | 12 | 2,501 | minus 0.15 | 1.241 | minus 1.39 | 49.3 | minus 1.2 | minus 2.17 | no (t minus 0.16) |
| GBPUSD hourly | 24 | 1,832 | 0.74 | 1.241 | minus 0.5 | 50.6 | minus 0.5 | minus 0.48 | no (t 0.48) |
| GBPUSD hourly | 50 | 1,019 | minus 1.78 | 1.241 | minus 3.02 | 48.2 | minus 2.92 | minus 3.45 | no (t minus 0.55) |
| GBPUSD hourly | 72 | 756 | minus 0.87 | 1.241 | minus 2.11 | 48.8 | minus 2.14 | minus 3.93 | no (t minus 0.21) |
| GBPUSD hourly | 168 | 348 | minus 6.35 | 1.241 | minus 7.6 | 45.7 | minus 19.7 | 25.56 | no (t minus 0.61) |
| XAUUSD hourly | 4 | 3,122 | minus 2.57 | 1.773 | minus 4.34 | 48.6 | minus 2.91 | minus 10 | no (t minus 1.11) |
| XAUUSD hourly | 12 | 2,347 | minus 6.35 | 1.773 | minus 8.12 | 48.7 | minus 5.86 | minus 17.04 | no (t minus 1.42) |
| XAUUSD hourly | 24 | 1,639 | minus 7.92 | 1.773 | minus 9.7 | 49.5 | minus 6.1 | minus 24.19 | no (t minus 0.97) |
| XAUUSD hourly | 50 | 943 | minus 11.6 | 1.773 | minus 13.37 | 49.3 | minus 8.53 | minus 32.56 | no (t minus 0.87) |
| XAUUSD hourly | 72 | 694 | minus 9.6 | 1.773 | minus 11.37 | 50.4 | minus 2.32 | minus 47.82 | no (t minus 0.44) |
| XAUUSD hourly | 168 | 325 | minus 70.46 | 1.773 | minus 72.23 | 45.8 | 15.25 | minus 454.45 | no (t minus 1.71) |
| BTCUSD hourly | 4 | 3,763 | minus 0.6 | 1 | minus 1.6 | 45.5 | minus 1.75 | minus 1.16 | no (t minus 2.45) |
| BTCUSD hourly | 12 | 2,774 | minus 0.58 | 1 | minus 1.58 | 46.6 | minus 1.53 | minus 1.7 | no (t minus 1.22) |
| BTCUSD hourly | 24 | 1,941 | minus 0.6 | 1 | minus 1.6 | 50.6 | minus 1.81 | minus 0.99 | no (t minus 0.74) |
| BTCUSD hourly | 50 | 1,122 | minus 0.63 | 1 | minus 1.63 | 50.6 | minus 1.63 | minus 1.48 | no (t minus 0.4) |
| BTCUSD hourly | 72 | 830 | minus 3.8 | 1 | minus 4.8 | 50.5 | minus 5.89 | minus 1.24 | no (t minus 1.79) |
| BTCUSD hourly | 168 | 388 | 2.88 | 1 | 1.88 | 54.1 | 4.24 | 6.72 | no (t 0.55) |
How to read the table. A pip is 0.0001 for AUDUSD, EURUSD and GBPUSD, 0.1 dollar for XAUUSD and 0.1 of one percent of the price for BTCUSD, so move sizes are not comparable across markets, only the sign and the share ending ahead are. Cost per round trip, in the same pips: AUDUSD 1.17, EURUSD 1.119, GBPUSD 1.241 (measured average spread plus 0.4 slippage plus 0.7 commission), XAUUSD 1.773 and BTCUSD 1.0 (assumptions, and a tick level spread read would refine them). Swap is not included. A row is beyond chance when its t statistic is larger than the 95th percentile of the best result found by shuffling event dates (AUDUSD 3.74, EURUSD 3.98, GBPUSD 3.75, XAUUSD 4.09, BTCUSD 3.85). The v1 tests used a flat cost per market and have not been checked independently by a second person.
Bands describe how far price is from its recent average in units of recent volatility. They do not say which way price goes next. In a trend a band touch can repeat many times, and in a range it can fail often. Different settings (a 10 or 50 period, a K of 1.5 or 2.5) give different bands, and the tests used the usual 20 and 2.
Worked figures are sample arithmetic, shown in full, as of 27 Nov 2026, and each row was recomputed by a second method before it was kept. The v2 figures come from the signal matrix v2 requests of 27 Nov 2026 on hourly bars, and the v1 figures from the copy run of 26 Nov 2026. How we check numbers is on the methodology page, the people behind the site are on the about page, and corrections go through contact.
We will recompute both window rows in a second spreadsheet, repeat with a period of 20 and K of 2 on a second set of sample closes, recalculate the v2 and v1 tables, and repeat after the next data update. Last tested: not yet, results pending.
What are Bollinger Bands? A moving average with bands a set number of standard deviations above and below it, which widen and narrow with volatility.
How do you calculate Bollinger Bands? Take the simple average of the last 20 closes, add and subtract 2 times their standard deviation.
What do Bollinger Bands tell you? How far price is from its recent average, measured in recent volatility. They do not say which way price goes.
What are the best Bollinger Bands settings? The usual setting is a period of 20 and 2 deviations. In our tests the band touch rules did not hold on unseen data on four of five markets.
What is a Bollinger squeeze? Bands that have narrowed to a low width. It shows a quiet market. It does not say which way the move will go.
What is percent B? Where the close sits between the bands: 0 at the lower band, 1 at the upper.
Do Bollinger Bands work? In our tests a band touch alone did not show a reliable edge on five markets.
Glossary, Bollinger Bands test, RSI guide, exponential moving average, volatility, volatility calculator, stop loss calculator, position size calculator, disclaimer.
Start free: create a free account to get the weekly note on tools and tests.
Education only. Nothing here is financial advice or a signal.
The exact rule and how we test it: Bollinger Bands test page.
More: all indicator guides, guides.
See also: Best RSI settings.
© 2026 Custom Trading Platform
Nothing here is financial advice, a signal or an offer. Trading can lose money, and on some products more than you put in. Past results describe the past.