Pular para o conteúdo

Bollinger Bands

Este conteúdo não está disponível em sua língua ainda.

IndicatorsFrom Pro

  • Value
Bollinger Bands

20 candles · width 2

  • Upper
  • Middle
  • Lower
This is how the node looks on the board: inputs on the left, outputs on the right.

A corridor that breathes: the bands widen when the price swings hard and narrow when it is calm. Mostly the price stays inside; a step outside is unusual.

Channel of the usual price swings. Draws a band around the average of the last candles. It widens when the price swings a lot and narrows when things are calm. Most of the time the price stays inside. Example: when the price drops below the lower band, it has fallen unusually far for its normal swings. A very narrow band shows an unusually quiet phase.

BTC/USDT price with Bollinger BandsThe price mostly stays inside the band; dots mark where it drops below the lower band.Price BTC/USDT82,00084,00086,000Oct 7Oct 8Oct 9
  • Price (close of each candle)
  • Band (20 candles, width 2)
  • Middle
  • drops below the lower band
BTC/USDT with Bollinger Bands over 20 candles and width 2. The price mostly stays inside the band. At the dots it drops below the lower band, as “Price crosses below lower band” would report.

Properties of the Bollinger Bands node: the chart of the last 150 candles with price, middle and band, dots at the touches and two handles at the right edge, below it the Width field with the amount in dollars next to it.

In the properties, a chart shows the last 150 candles with the middle and the band, computed with your settings. Drag an edge to change the width in standard deviations (σ), or type it; next to it you see how far the band reaches in dollars at the last candle. Dots mark where a candle’s high or low touches the band, the top line shows how often.

More under Chart above the price.

The settings appear on the right under “Properties” once you click the node on the board. Below each field you find the same explanation as here.

Default: 20 · from 2 to 500, whole number

How many candles the average and the swings are measured over. 20 is the usual value.

Default: 2 σ · from 0.1 to 10 σ

How far the bands sit from the average, measured in standard deviations. With the usual value 2 the price stays inside most of the time. Larger values like 2.5 or 3 only let very strong moves out.

Notifies you when the price drops below the lower Bollinger Band.

Example chain: Candle, Bollinger Bands, Compare A/B, PushConnections: Candle → Bollinger Bands, Candle → Compare A/B, Bollinger Bands → Compare A/B, Compare A/B → Push.CandleBTC/USDT · 1hBollinger Bands20 candles · width 2Compare A/BPrice crosses below lowerbandPushat most every 4 h

How to connect the nodes:

  1. Candle (Price) → Bollinger Bands (Value)
  2. Candle (Price) → Compare A/B (A)
  3. Bollinger Bands (Lower) → Compare A/B (B)
  4. Compare A/B (true/false) → Push (Trigger)

On the board it reads: 20 candles · width 2

Chain as JSON

To try it, copy it and paste it in the editor under “Import”. Importing creates a new chain.

bb.json
{
"name": "Example: Bollinger Bands",
"version": 1,
"nodes": [
{ "id": "c1", "type": "core.candle", "position": { "x": 40, "y": 40 }, "settings": { "pair": "BTC/USDT", "timeframe": "1h" } },
{ "id": "b1", "type": "core.bb", "position": { "x": 260, "y": 40 }, "settings": {} },
{ "id": "k1", "type": "core.compare-ab", "position": { "x": 480, "y": 40 }, "settings": { "operator": "crossesBelow" } },
{ "id": "p1", "type": "core.push", "position": { "x": 700, "y": 40 }, "settings": {} }
],
"edges": [
{ "from": "c1.close", "to": "b1.in" },
{ "from": "c1.close", "to": "k1.a" },
{ "from": "b1.lower", "to": "k1.b" },
{ "from": "k1.out", "to": "p1.in" }
]
}

Only matching types connect: number series to number series (round pin), signal to signal (square), message to message (diamond).

Direction Pin Type Note
Input Value Number series required
Output Upper Number series in the unit of the input
Output Middle Number series in the unit of the input
Output Lower Number series in the unit of the input
  • In messages the values are called “upper band”, “middle band”, “lower band”.
  • Warm-up with the default settings: 20 candles (this many extra candles are loaded by the replay before the value is reliable).
  • Search also finds it under: volatility, band, squeeze, standard deviation.
  • More on this, with ready-made templates and their test results: Bollinger Bands alerts.

SMA in the middle, bands at width times the (population) standard deviation; the same formula as ta.bb in TradingView.

  • Type in the chain: core.bb · Version 1.0.0 · Category key ind
  • Settings in the chain: length (Candles), mult (Width)
  • Pins in the chain: Input in · Output upper, middle, lower
  • Reference tests in the manifest: 1 (with fixed price data: 500 candles of 1h)
  • How a node is built

Versão 2026.11.29.15 · Changelog