pub fn calculate_bop(df: &DataFrame) -> PolarsResult<Series>
Expand description
Calculates Balance of Power (BOP) Formula: (Close - Open) / (High - Low)
This oscillator measures the strength of buyers vs. sellers in the market. Values range typically between -1 and +1.
§Arguments
df
- DataFrame containing OHLC data (“open”, “high”, “low”, “close” columns)
§Returns
Returns a PolarsResult containing the BOP Series