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)) / 4Where MA is the moving average.
Usage Scenarios
- Trend judgment
- Bull-bear dividing line
- Trading signal generation
- Support and resistance judgment