Statistic Functions

Standard Deviation (STDDEV)

Standard Deviation

Deep Dive

Everything You Need to Know

Under the Hood

How It Works

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

How Traders Use It

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.

Highlights

STDDEV at a Glance

Measures price dispersion/volatility around mean
Higher values = greater volatility and uncertainty
Lower values = stable, consistent price action
Foundation for Bollinger Bands (2× STDDEV)
Square root of variance
Default 5-period with 1× multiplier
Essential for volatility measurement and risk assessment
Used for position sizing and volatility-adaptive indicators
Popular among systematic traders and risk managers

Get Started

Automate STDDEV with cryptorobot.ai

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.