variance

forge.tafunctionSince Forge API 1
Functionpython
forge.ta.variance(source: ArrayLike, period: int = 20) -> np.ndarray

Variance: the mean squared distance of the last period values from their average.

Parameters

NameTypeDefault
sourceArrayLike
periodint20

Indicator: Variance

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

The square of the standard deviation over a period.

Inputs

NameTypeDefaultRange
sourcesourceclose
periodint201 to 5000

The mean squared distance of the last period values from their simple average.