accdist
forge.tafunctionSince Forge API 1
Functionpython
forge.ta.accdist(high: ArrayLike,low: ArrayLike,close: ArrayLike,volume: ArrayLike) -> np.ndarrayAccumulation and distribution: a running total of volume weighted by the close's position.
Parameters
| Name | Type |
|---|---|
| high | ArrayLike |
| low | ArrayLike |
| close | ArrayLike |
| volume | ArrayLike |
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) -> NoneVolume weighted by where the close sits in the bar.
Inputs
| Name | Type | Default |
|---|---|---|
| volume | volume | tick |
The running total of ((close - low) - (high - close)) / (high - low) * volume
A bar with no range adds 0.