Standard Deviation
Under the Hood
STDDEV calculates the standard deviation of price over a specified period (default 5), measuring the dispersion or volatility around the mean price. Higher standard deviation indicates greater price volatility and uncertainty; lower values suggest stable, consistent price action. The nb_dev parameter (default 1) acts as a multiplier, though STDDEV typically uses 1. Standard deviation is the square root of variance and forms the foundation of many volatility indicators like Bollinger Bands (which plot price ± 2 standard deviations from a moving average).
In Practice
Cryptocurrency traders use STDDEV to measure volatility and assess risk. Rising STDDEV indicates increasing volatility, often preceding major moves or breakouts. Falling STDDEV suggests consolidation and potential energy building for the next move. STDDEV is essential for constructing Bollinger Bands, calculating position sizes based on volatility, and building volatility-adaptive systems. Combined with moving averages to create custom volatility bands, or used as a regime filter (high STDDEV = trend, low = range), STDDEV provides crucial volatility quantification. It's popular among systematic traders, risk managers, and volatility-based strategy developers.
Build automated strategies using Standard Deviation and hundreds of other indicators. Connect to your favourite exchange and let the bot execute trades 24/7 — no code required.