Whistle AI

Coming soon

How to set a Bollinger band alert

Bollinger bands draw a channel around a price that widens when the price is jumpy. Here is what a close outside a band says, and how to be told of one.

Most of the time a price stays inside its Bollinger bands. That is what they are for: they mark out the range the price has lately been moving in. The bar that closes outside them is the unusual one, and it is the one worth being told about.

What Bollinger bands are

John Bollinger introduced them in the 1980s. There are three lines.

  • The middle band is a 20-bar simple moving average of the close.
  • The upper band is the middle band plus two standard deviations of those same 20 closes.
  • The lower band is the middle band minus two.

The standard deviation is a measure of how spread out the closes have been. When the price has been jumpy the bands stand far apart. When it has been quiet they draw in. So "outside the band" is not a fixed distance. It means far from the average by the stock's own recent measure.

20 bars and 2 deviations are the settings on nearly every chart, and the ones Whistle AI uses unless a sentence says otherwise.

The sentence

Tell me when Apple closes below its lower Bollinger band

Tell me when Tesla closes above its upper Bollinger band

Each is read as a close outside the band, with 20 bars and 2 deviations. Neither names a bar, so you pick one before saving: 15 minutes, 30 minutes, an hour or a day. Or say it:

Alert me when Nvidia closes below its lower Bollinger band on hourly bars

You do not need the name. The same thing said as arithmetic is read as the same alert:

Tell me when Microsoft is more than 2 standard deviations above its 20-day average

What a close outside a band says

It says the price is a long way from its recent average, by its own recent standard. It does not say the price will come back.

There are two readings among traders, and they point opposite ways. One treats a close below the lower band as stretched and likely to return toward the middle. The other treats a close above the upper band as strength, the start of a move and not the end of one. Both have plenty of charts to show for themselves. A signal is a fact about a price, not a forecast.

In a strong trend a price can close outside a band many bars in a row, riding it. Whistle AI tells you when that begins, and not again on every bar it lasts.

With a second condition

Because a close outside a band can mean two things, people often ask for it together with something else. With the RSI, for a fall that both measures call stretched:

Tell me when Bitcoin closes below its lower Bollinger band and its RSI is under 30

There is more on the RSI in the guide to RSI alerts. Volume is another common second condition, and it is covered in the guide to unusual volume.

As a rule with a buy and a sell

The two bands make a pair:

Buy Amazon below the lower Bollinger band, sell above the upper band

Then the alert gives a buy signal at a close under the lower band and, later, a sell signal at a close over the upper one. The pair is among the ready-made signals in the app, under the name Bollinger bounce. Whistle AI places neither trade. It tells you when your rule says so, and what you do then is yours to decide, at your own broker.

Things to know before you rely on one

  • It goes by the close. A bar that pokes through a band and closes back inside has not set the alert off.
  • The bands move. The band a price closes outside today is not where it was last week. An alert on a band is not an alert on a level.
  • The bar size changes everything. A close outside the band on a 15-minute chart happens many times a week. On a daily chart it is much rarer.
  • Alerts can be late or missing. Prices come from outside providers, and any service can fail. For something that matters, do not make one alert your only way of following it.

Questions people ask

What settings do the bands use?

20 bars and 2 standard deviations, the standard ones, unless the sentence gives others.

Is a close below the lower band a buy signal?

Some traders read it that way and others read it as weakness. What it is, strictly, is a close far below the recent average. Whether to act is your own decision.

Does the alert fire when the price touches the band?

No. It goes by the close of the bar, not by a touch during it.

Will I be told again while the price stays outside the band?

No. You are told when it gets there.

Keep reading