talib.variance

Variance of source over length bars. An optional biased flag chooses between the biased and unbiased forms of the calculation. talib.stdev has no such flag.

talib.variance(series float source, series int length, series bool biased) → series float
ParameterTypeRequiredDescription
sourceseries floatyesThe series to measure.
lengthseries intyesHow many bars the window covers.
biasedseries boolnoOptional flag choosing between the biased and unbiased forms.

Returns series float — A series float.

indicator("Variance")
plot(talib.variance(close, 20))

See also talib.alma · talib.atr · talib.barssince

Part of the function index.

Ready to put this into practice?
Try GoCharting Premium
Unlock advanced orderflow, market profile, options desk, and real-time data — everything you just read about, live in your charts.
Upgrade