BOP
BOP
Summary
Balance Of Power compares where the close sits relative to the open, normalized by the bar's high-low range. A per-bar oscillator with no smoothing. Positive: close above open (buyers dominated); negative: sellers dominated.
Formula
BOP = (Close - Open) / (High - Low)
Inputs
inOpen— Open price of each barinHigh— High price of each barinLow— Low price of each barinClose— Close price of each bar
Outputs
outReal— Balance of Power value per bar
Properties
Numerical Stability: Start-Independent
| Display Flags |
|---|
| ☐ Overlap Input |
| ✅ Independent Y-Axis i |
| ☐ Candlestick |
Implementation
TA-Lib Definition: bop.c · bop.yaml
| Native | File |
|---|---|
| C | ta_BOP.c |
| Rust | bop.rs |
| Java | Core_BOP.java |
TA-Lib is also available for Python, R and more using a wrapper.
Aliases
Balance Of Power, Balance of Power