Runbot Documentation
How it worksIndicatorsTriggers BoxesNFTs
  • Introduction
  • Interactive Tutorial
  • HOW IT WORKS
    • Box synergies
    • Signal list
      • Long/Short signal
      • Cancel signal
      • Stop signal
      • Custom signal
    • Glossary
  • Parimutuels Markets
  • Strategy Boxes
    • Strategy list
    • Strategy management (Backtest box)
    • Signals Box
    • Selectors Box
    • Indicators box
      • Offset Candle
      • Signal creation
      • Signal duration rule
  • Indicators
    • Basic triggers
    • Runbot Indicators
      • RSI
      • Candle
      • MACD
      • MA
      • Stochastic
      • Streak
      • ATR
      • Bollinger Bands
      • Funding (8h Rates)
      • Orderflow
      • Liquidations
      • Pivot Points
      • ATR Bands
      • Fibonacci
      • CHOP
      • Potential Cumulative Liquidations
      • Open Interest
      • Volume Profile
      • Ichimoku
      • SAR
      • TD9
      • VWAP/MVWAP
      • Calendar
      • SuperTrend
      • CCI
      • Fear & Greed Index
      • MA Bands
      • Volume Anomaly
      • Orderbook
      • AI News Sentiment
    • #AI Indicators: Harmonia
    • VeloData Indicators
      • Aggregated Datas
        • Premium Index
        • Volume Index
      • Options Markets
        • Options Premium Index
        • Option Volume
        • Option Skew
        • Implied Volatility
        • Delta
        • Vega
        • Gamma
  • Triggers Boxes
    • Entry in position rules
      • Majority of signals
      • Unanimity of signals
      • Equality
      • Minimum number of signals
      • Maximum number of signals
      • No previous trade
    • Exit position rules
      • Stop %/ATR
      • Confirmation stop %/ATR
      • TP ATR %/ATR
      • TP/SL signal
      • Trailing %/ATR
      • Decaying TP %/ATR
      • Magnetic TP %/ATR
      • Stop candle %/ATR
      • TP Candle %/ATR
      • Number of candles
      • Opposite trade
    • Adjust position rules
      • Increase/Decrease order size
      • Delay between two triggers
      • Signals occurs
      • Max position size
  • Risk management Boxes
    • Position size
      • Leverage
      • Constant USD
      • Orderbook
      • Risk % capital per %/ATR
      • Risk constant USD per %/ATR
      • Candle distance
    • Entry in position methods
      • Market order
      • Slippage market
      • Sequential Market
      • Pyramid orders
      • Delay
  • Runbot NFTs
    • Connect your Web3 Wallet
    • Strategy NFTs
    • Mint Open-Source NFT
    • Mint Rental NFT
    • Community NFTs Indicators
      • Black Flamingo Indicators
      • Harmonia Indicators
      • VeloData Indicators
    • FAQ Marketplace & NFTs
  • Webhooks (Trading Bots)
    • BingX (free bots)
    • Bitget (free bots)
    • Phemex (free bots)
    • Blofin (free bots)
    • OKX
    • Bybit
    • Tealstreet
    • Mizar
    • WunderTrading
    • Alertatron
    • Zignaly
    • Discord
    • Custom URL
  • Advanced Tools
    • Strategies Composer
    • Strategy Optimiser
      • Random Search
      • Simulated annealing
      • Combinatorial
      • Tips to Optimize your strategy
  • 🧠 AI Agent Optimiser
  • Free plan and Credits
Powered by GitBook
On this page
  • Calculation
  • Interpretation
  • Indiciator Triggers:
  • Price cross up/down the band
  • Price touch up/down the band
  • Price cross up/down the % band level
  • Bollinger Band Distance
  • Option : Includes price reversal into the candle wick
  • Notes :

Was this helpful?

  1. Indicators
  2. Runbot Indicators

Bollinger Bands

Overview

Bollinger Bands are a technical analysis tool developed by John Bollinger in the 1980s for trading in the financial markets. They are statistical chart boundaries used to measure the 'highness' or 'lowness' of the price relative to previous trades and are associated with the volatility of the market.

Calculation

Bollinger Bands consist of:

  • A middle band being an N-period simple moving average (SMA)

  • An upper band at K times an N-period standard deviation above the middle band (SMA + Kσ)

  • A lower band at K times an N-period standard deviation below the middle band (SMA - Kσ)

Where:

  • N and K are usually 20 and 2, respectively.

  • σ is the standard deviation.

Interpretation

Bollinger Bands are interpreted as follows:

  • When the bands come close together (constrict), it denotes low market volatility and may be a precursor to sharp price movements.

  • When the bands move apart (expand), it signifies high market volatility.

  • Prices are considered high when touching the upper band and low when touching the lower band.

Indiciator Triggers:

You cant select 3 levels to trade for the Bollinger Bands indicator, upper, mid and lower band, which are described in the image below:

Price cross up/down the band

We consider only body closes for this trigger. If the price cross up/down the band (wick), but the candle body close is in the bands, no signal is triggered.

Price touch up/down the band

This trigger is almost like the same as described above, but it is not necessary to wait for a body close. As soon as the price touch/wick the band, a signal is triggered.

Price cross up/down the % band level

You can also trade the Bollinger Bands within a % range.

Bollinger Band Distance

You can trade a specific distance of the price against the lower, upper or middle band.

This trigger works exactly the same way with the distance ATR.

Option : Includes price reversal into the candle wick

If this option is deactivated, the touch is triggered only if the opening of the candle is in the correct zone (touch up = opening below the trigger price).

With this option activated, even if we start above the trigger price (in the case of a touch up), if during the candle the price dumps below the trigger price and then reverses above, then we trigger at the moment of the internal touch up.

Note : for now, whether it's ON or OFF it only triggers once per candle max (duration of the trigger for the rest of the candle).

Example with this option OFF :

Example with this option ON :

Notes :

Identifying Overextended Prices:

  • Spotting Reversals: Bollinger Bands consist of a middle band (which is a moving average, typically the 20-period SMA) and two outer bands (standard deviations away from the middle band). When the price touches or crosses the upper Bollinger Band, the market may be considered overbought; conversely, when it touches or crosses the lower band, it may be considered oversold.

  • Trade Setup: You can use these instances as signals to enter a mean reversion trade—selling near the upper band and buying near the lower band, with the expectation that the price will revert back to the middle band.

Breakouts and Continuations:

  • Band Breakouts: When the price breaks through the upper Bollinger Band strongly, it can signal the start of an upward trend. Similarly, a strong break below the lower band may indicate the beginning of a downward trend. Ensure the breakout is accompanied by increased volume for additional confirmation.

  • Riding the Bands: In a strong trend, prices can "walk the band," consistently touching or staying near the outer band. You can enter trades in the direction of the trend when the price bounces off the outer bands and aim to exit when it touches the opposite band or shows signs of weakening momentum.

PreviousATRNextFunding (8h Rates)

Last updated 5 months ago

Was this helpful?

Place a short signal when the price cross up the upper band
The price cross up the upper band and closed above, a short signal is triggered.
Place a short signal when the price touch up the upper band.
At the red arrow candle, the price touched the upper band. A short signal is immediatly triggered even before the current candle closes.
Place a long signal if the price cross down the level -25% of the Bollinger Bands %.
The Bollinger % cross down the level -25 at the green arrow, a long signal is triggered.
Place a short signal as soon as the Lower band is under the price at a distance between 8 and 10%.
The Lower band enter the zone distance of [8%-10%] away from the price, a short signal is triggered.
Feature available on some bands / line indicators
Deactivated feature Includes price reversal into the candle wick
Activated feature Includes price reversal into the candle wick