OnBalanceVolume
class backtide.indicators.OnBalanceVolume()
On-Balance Volume (OBV).
A cumulative volume indicator that adds volume on up-close days and subtracts it on down-close days. Rising OBV confirms an uptrend; falling OBV confirms a downtrend. Useful for confirming price trends with volume and spotting divergences between price and volume momentum.
Formula:
\[OBV_t = \begin{cases} OBV_{t-1} + V_t & \text{if } C_t > C_{t-1} \\ OBV_{t-1} - V_t & \text{if } C_t < C_{t-1} \\ OBV_{t-1} & \text{otherwise} \end{cases}\]
Read more on Wikipedia.
| Attributes |
Short ticker-style acronym.
name : str
Human-readable indicator name.
|
See Also
MovingAverageConvergenceDivergence
Moving Average Convergence Divergence (MACD).
Relative Strength Index (RSI).
Volume-Weighted Average Price (VWAP).
Methods
| compute | Compute the indicator on a dataset. |
| description | Short explanation of what the indicator measures. |
method backtide.indicatorscompute(data)
Compute the indicator on a dataset.
method backtide.indicatorsdescription()
Short explanation of what the indicator measures.
| Returns |
str
The description.
|