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| Parameter | Type | Required | Description |
|---|---|---|---|
source | series float | yes | The series to measure. |
length | series int | yes | How many bars the window covers. |
biased | series bool | no | Optional 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.