The FXB.ta.BearBull class calculates one candle value minus an average of another candle value. It is normally used to calculate "bull power", the high minus an average of closes, or "bear power", the low minus an average of closes, but can be used with any pair of candle properties. It is a bar-based calculation, and requires candle data as an input. Parameters are as follows:
| Parameter | Description |
| member | Member of each candle to use - normally either h for the high (for "bull power") or l for the low (for "bear power"), but can be any candle data including derived prices |
| averageOf | Member of each candle from which to calculate an average. Defaults to the close (c) |
| period | Rolling period for the average |
| maType | Type of moving average. Defaults to an exponential moving average (ema / 1). |