stdev
forge.tafunctionSince Forge API 1
Signaturepython
forge.ta.stdev(source: ArrayLike,period: int = 20,method: str = 'sma') -> np.ndarrayStandard deviation of the last period values around their moving average at this bar.
Parameters
| Name | Type | Default |
|---|---|---|
| source | ArrayLike | |
| period | int | 20 |
| method | str | 'sma' |
method names the average: sma (the population deviation), ema, smma or
lwma. The divisor is period, not period - 1.