rolling

forge.seriesfunctionSince Forge API 1
Signaturepython
forge.series.rolling(x: ArrayLike,window: int,how: Literal['mean', 'sum', 'min', 'max', 'std']) -> np.ndarray

The how of the last window values ending at each bar, NaN until window values exist.

Parameters

NameType
xArrayLike
windowint
howLiteral['mean', 'sum', 'min', 'max', 'std']

how is "mean", "sum", "min", "max" or "std" (the population standard deviation). A NaN inside a window gives NaN for it.