VOLATILITY, DISPERSION & CANDLES
Variance
The spread of recent prices before the square root is taken — standard deviation's rawer twin, used where the squared scale is wanted.
spec id: variancelength (default 20)
What does Variance measure?
The spread of recent prices before the square root is taken — standard deviation's rawer twin, used where the squared scale is wanted.
How is Variance calculated?
Take the last 20 closes, work out how far each is from their average, square those distances, and average them.
Written by reading the engine’s real computation, not a textbook — where the two differ, the page describes what actually runs.
How do I use Variance in a bot?
In the builder, add an indicator of type variance (parameters: length, default 20). Its value becomes an operand you can compare in any entry or exit rule. The engine grades the whole rule honestly: real fills, no look-ahead, half the history held back.
Related indicators
- Z-scoreHow unusual today's price is, in standard deviations from its own recent average.
- Acceleration bandsA price envelope that breathes with the market.
- ATRHow much the stock typically moves in one candle — its temperament.
- Bollinger widthHow wide the Bollinger Bands are right now.
Or browse all 158 indicators in the full library.