rolling
forge.seriesfunctionSince Forge API 1
Signaturepython
forge.series.rolling(x: ArrayLike,window: int,how: Literal['mean', 'sum', 'min', 'max', 'std']) -> np.ndarrayThe how of the last window values ending at each bar, NaN until window values
exist.
Parameters
| Name | Type |
|---|---|
| x | ArrayLike |
| window | int |
| how | Literal['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.