Variance

variancevolatilityForge API 1

The square of the standard deviation over a period.

Inputs

NameTypeDefaultRange
sourcesourceclose
periodint201 to 5000

Outputs

NameTypeRequiredDescription
variancevalueOptionalcolor 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 mean squared distance of the last period values from their simple average.