Skip to content

Indicator Description

BBI (Bull and Bear Index) is a technical indicator that judges the market's bull and bear trend by averaging multiple moving averages of different periods.

Function Information

  • Function Name: BBI
  • Input Parameters: Open
  • Parameter Settings: timeperiod1 (default: 5), timeperiod2 (default: 8), timeperiod3 (default: 13), timeperiod4 (default: 21)
  • Output: BBI value

Calculation Principle

BBI is calculated using the following formula:

BBI = (MA(Close, timeperiod1) + MA(Close, timeperiod2) + MA(Close, timeperiod3) + MA(Close, timeperiod4)) / 4

Where MA is the moving average.

Usage Scenarios

  1. Trend judgment
  2. Bull-bear dividing line
  3. Trading signal generation
  4. Support and resistance judgment