Balance of Power (BOP)
Calculate the Balance of Power (BOP) indicator for a given price series.
The Balance of Power (BOP) indicator measures the strength of buyers versus sellers in the market. It relates the price change to the change in the asset’s trading range.
The formula is as follows:
\[\text{BOP} = (\text{Close} - \text{Open}) / (\text{High} - \text{Low})\]Also known as: BOP, bull bear power.
Balance of Power (BOP) in Python or via the MCP
Install the Finance Toolkit with:
pip install financetoolkit -U
Then call get_balance_of_power as shown below.
from financetoolkit import Toolkit
toolkit = Toolkit(
tickers=["^FTSE"],
api_key="FINANCIAL_MODELING_PREP_KEY",
start_date="2021-01-01",
end_date="2025-12-31",
)
toolkit.technicals.get_balance_of_power().tail(5)
Or, after setting up the Finance Toolkit MCP, ask:
Did buyers or sellers control the trading days of the FTSE 100 from 24 to 31 December 2025, measured by the Balance of Power?
Which returns:
| Date | ^FTSE | Benchmark |
|---|---|---|
| 2025-12-24 | -0.5953 | 0.802 |
| 2025-12-26 | -0.3466 | -0.1381 |
| 2025-12-29 | -0.1212 | 0.099 |
| 2025-12-30 | 0.7846 | -0.2222 |
| 2025-12-31 | -0.279 | -0.9239 |
Parameters
get_balance_of_power accepts the following parameters.
| Parameter | Type | Description | Example |
|---|---|---|---|
period | str | The time period to consider for historical data. Can be “intraday”, “daily”, “weekly”, “monthly”, “quarterly” or “yearly”. Defaults to “daily”. | "weekly" |
close_column | str | The column name for closing prices in the historical data. Defaults to “Adj Close”, in which case the open, high and low prices are adjusted for dividends in the same way. | "Close" |
rounding | int | None | The number of decimals to round the results to. Defaults to None, which uses the rounding of the Toolkit (4 unless set otherwise). | 2 |
growth | bool | Whether to calculate the growth of the BOP. Defaults to False. | True |
lag | int | list[int] | The lag to use for the growth calculation. Defaults to 1. | 4 |
standardize | bool | Whether to standardize (Z-Score) the result. When combined with growth=True, standardizes the growth values instead of the raw values. Defaults to False. | True |