Standard deviation

stdevvolatilityForge API 1

How far values spread around their average over a period.

Inputs

NameTypeDefaultRange
sourcesourceclose
periodint201 to 5000
methodma_methodsma

Outputs

NameTypeRequiredDescription
stdevvalueOptionalcolor theme.accent, style line, width 1
Warm-up
period - 1 bars (19 at the defaults)
Repaints
No
Parity
TA-Lib, within 1e-9

Formula

The square root of the mean squared distance of the last period values from the chosen average at the current bar

The divisor is period, not period - 1.