StockHero Guide
  • Setting Up Your Stock Trading Bot
  • Quick Start Bots
  • Video Gallery
  • Major Updates
    • Achieving ISO27001 Certification
    • StockHero Version 3
    • StockHero V2, The Best Is Not Enough
      • StockHero V2.5
    • StockHero Release Notes
  • Getting started
    • Paper Trading
    • Backtesting
    • Dashboard
    • Portfolio
    • Bots and Deals
    • Bots Processing Priority
    • Strategy Marketplace
    • Deploying A Marketplace Bot
    • SMS Notifications
  • Futures Trading
  • Bot Settings
    • Strategies
    • Trading Parameters
    • Entry / Exit Conditions
    • Advanced Bots
    • DCA Bots
    • Exit Bot
    • Price Bot
    • Grid Bot
    • Sell Bot
    • Momentum Bot
    • Trailing Stoploss
    • Trailing Take Profit
    • Bot's Performance Stats
    • Strategy Designer
  • Technical Indicators
    • Bollinger Band
    • EMA
    • RSI
    • Stoch RSI
    • MACD
    • Volume
    • TradingView
    • Mandatory Indicators
  • Connecting Your Brokerage
    • Supported Brokerages
    • Trading Account Connection
    • TradeStation
    • Webull
  • Wealthsimple
  • FAQ
    • Terminology
    • Frequently Asked Questions
  • Housekeeping
    • Release Notes
    • Terms of Use
    • Official Communities
Powered by GitBook
On this page
  1. Technical Indicators

Bollinger Band

PreviousStrategy DesignerNextEMA

Last updated 11 months ago

The Bollinger Bands (BB) were created in the early 1980s by financial analyst and trader John Bollinger. Bollinger Bands work as oscillators. It indicates whether the market has high or low volatility, as well as overbought or oversold conditions.

StockHero Bollinger Band: a buy signal is generated when the candlestick data reaches an oversold region, and a sell signal is generated when it reaches an overbought region.

The core concept behind the BB indicator is to highlight how prices are dispersed around an average value. More specifically, it is composed of an upper band (red), a lower band (yellow), and a middle band (blue), also known as the middle moving average line. The two sidelong bands react to the market price action, expanding when the volatility is high, moving away from the middle line, and contracting when the volatility is low, moving towards the middle line.

Middle line = (SMA, n)
Upper band = (SMA, n) + (20-day standard deviation * y)
Lower band = (SMA, n) - (20-day standard deviation * y)

Where: 
n = Time Period
y = standard deviation multiplier

The standard Bollinger Bands formula sets the middle line as an X-day Simple Moving Average (SMA), while the upper and lower bands are calculated based on market volatility in relation to the SMA, which is referred to as the standard deviation.