CCI (20)
How far price strays from its 20-day average, measured in units of its typical average deviation.
Why it matters
It asks almost the same question as Bollinger %B — how far is price from its average — but with a technical difference that matters: instead of dividing by the standard deviation, it divides by the mean absolute deviation. Standard deviation squares distances, so a single extreme day inflates it a lot; mean absolute deviation doesn't. In practice that makes CCI less sensitive to one odd day and more sensitive to price having drifted away in a sustained way.
Build it yourself
Drag the three numbers and watch the effect of that 0.015 constant, which is all that separates this indicator from a z-score with a different denominator.
Without the constant: how many mean deviations away:
Illustrative example numbers for practice — not real data.
How it's calculated, step by step
- The simple average of the last 20 days' price is computed.
- The mean absolute deviation is computed: the average of the unsigned distances between each of those 20 prices and that average.
- CCI = (today's price − 20-day average) ÷ (0.015 × mean absolute deviation). That 0.015 is an arbitrary scaling constant from the original formulation, chosen so most values land between −100 and +100.
Chart
This is real Bitcoin data, computed from the blockchain — not the illustrative example above.
Data last updated on 2026-09-09.