volumes

forge.tafunctionSince Forge API 1
Functionpython
forge.ta.volumes(volume: ArrayLike) -> dict[str, np.ndarray]

The volume of each bar, and whether it is above the previous bar's.

Parameters

NameType
volumeArrayLike

Indicator: Volumes

direction is +1 where the volume is above the previous bar's and -1 where it is equal or lower (MetaTrader 5's two column colours). The first bar has a volume and no direction, and a bar next to a missing one has none either.

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

Volume per bar, tick or real as the feed carries it.

Inputs

NameTypeDefault
volumevolumetick

The volume of the bar

direction = 1 when the volume is above the previous bar's, else -1

On forex the feed carries tick volume.