accdist

forge.tafunctionSince Forge API 1
Functionpython
forge.ta.accdist(high: ArrayLike,low: ArrayLike,close: ArrayLike,volume: ArrayLike) -> np.ndarray

Accumulation and distribution: a running total of volume weighted by the close's position.

Parameters

NameType
highArrayLike
lowArrayLike
closeArrayLike
volumeArrayLike

Indicator: Accumulation/distribution

Each bar adds ((close - low) - (high - close)) / (high - low) * volume, and 0 when the bar has no range. After a missing bar the total starts again.

Classpython
forge.ta.AccDist(**inputs: Any) -> None

Volume weighted by where the close sits in the bar.

Inputs

NameTypeDefault
volumevolumetick

The running total of ((close - low) - (high - close)) / (high - low) * volume

A bar with no range adds 0.