Accumulation/Distribution (AD) update. moneyFlowMultiplier = ((close - low) - (high - close)) / (high - low) moneyFlowVolume = moneyFlowMultiplier * volume AD = previousAD + moneyFlowVolume
High price.
Low price.
Close price.
Volume.
Previous AD seed (0.0 if none).
Updated AD value.
Relative Vigor Index (RVI) over the full window. Uses 4-sample weights on close-open and high-low differences, then a central model (SMA/EMA/etc.) on numerator and denominator and returns their ratio.
Opening prices.
Highs.
Lows.
Closes.
Central model for smoothing numerator/denominator.
RVI value.
Generic Volume Index update step (used by PVI/NVI). change = (currentClose - previousClose)/previousClose If previousIndex == 0: return change + change^2 Else: return previousIndex + (change * previousIndex)
Single-value strength indicators. Volume- and price-based measures of trend/conviction.