Commodity Channel Index
- Category
- Technical Analysis
- Level
- Professional
Simple definition
A reading of how far the current typical price sits from its recent average, measured in units of its own average deviation.
Professional definition
An unbounded oscillator. It takes typical price — the mean of high, low and close — subtracts a simple moving average of that series, and divides by the mean absolute deviation of the same window multiplied by 0.015. Readings beyond plus or minus 100 are conventionally called extended.
Technical definition
The denominator is mean absolute deviation, not standard deviation, which makes CCI a robust standardisation: a single outlier moves it less than it would move a z-score. The 0.015 constant is arbitrary. It was chosen so that roughly 70 to 80 per cent of readings fall inside plus or minus 100, which is the only reason those levels look natural. The output is unbounded, and readings from different lookbacks or inputs do not share a scale.
Academic definition
A scaled standardisation of typical price relative to its moving average, normalised by mean absolute deviation and multiplied by a fixed constant chosen to place a conventional proportion of observations within a nominal band.
Mechanism
The construction is a distance divided by a typical distance, so the output answers one question: how unusual is the current deviation by the standard of the last n periods. Because the yardstick is itself an average over the same window, a market that has been quiet makes a modest absolute move look extreme, and a market that has been wild makes the same move look ordinary.
In practice
- Who uses it
- Oscillator traders screening for stretched conditions, and developers who want a deviation measure less sensitive to outliers than a z-score.
- Why it matters
- It normalises distance from a mean by that market's own recent dispersion, so one threshold can screen instruments on very different price scales.
- Limitations
- The 0.015 constant and the plus or minus 100 levels are conventions, the series is unbounded so an extreme can keep extending, and values are comparable only within one fixed lookback.
Common mistakes
- Treating plus or minus 100 as a statistical boundary rather than a convention.
- Comparing CCI(20) with CCI(50) as if they shared a scale.
- Selling every reading above 100 in a strong trend.
Examples
In a strong advance CCI can hold above 100 for weeks, exactly as RSI holds above 70. Because CCI has no upper bound, the reading keeps climbing while the band it exceeded stays at 100.
Typical price is 102 against a twenty-period average of 100, with a mean absolute deviation of 1.5. CCI comes out near 89. Had the deviation been 1.0, the same two-point gap would read above 133.
- typical price TP = 102
- SMA(20) of TP = 100
- mean absolute deviation over the same 20 periods = 1.5
- constant = 0.015
- numerator = 102 - 100 = 2
- denominator = 0.015 x 1.5 = 0.0225
- CCI = 2 / 0.0225 = 88.9
- with MD = 1.0: denominator = 0.015, CCI = 2 / 0.015 = 133.3
The reading is a statement about the current deviation relative to recent deviations, not about how far price is from fair value.
Mathematical foundation
Variables
| TP_t | Typical price: the mean of the bar's high, low and close | price units |
| SMA_n(TP) | Simple moving average of typical price over n periods | price units |
| MD_n | Mean absolute deviation of typical price about that same moving average | price units |
| 0.015 | Scaling constant chosen by convention, with no statistical derivation | ratio (dimensionless) |
| n | Lookback length; 20 is the common default | periods |
Procedure
Compute typical price for each bar as the mean of high, low and close. Take its simple moving average over n periods. For the same window, average the absolute distances between each typical price and that moving average to get the mean absolute deviation. Divide the current gap by 0.015 times that deviation.
Worked example
- TP = 102
- SMA(20) of TP = 100
- MD over the same window = 1.5
- gap = 102 - 100 = 2
- 0.015 x 1.5 = 0.0225
- CCI = 2 / 0.0225 = 88.89
Interpretation
The number says how large the current deviation is compared with the average deviation of the same window, rescaled so that most readings land inside plus or minus 100. A value of 200 means the deviation is twice that nominal band, not that a reversal is due.
Assumptions
- Typical price, the mean of high, low and close, is the standard input. Implementations that feed the close instead produce different values from the same bars.
- The denominator is the mean of absolute deviations about the same simple moving average. It is not the standard deviation, and it is not the deviation about a mean of absolute values.
- The 0.015 constant is arbitrary. It was selected so that roughly 70 to 80 per cent of readings fall within plus or minus 100; no statistical result makes it the right number.
- If the mean absolute deviation over the window is zero, the ratio is undefined; implementations conventionally return zero for that bar.
- The output is unbounded, so an extreme reading can keep extending in a trend. There is no ceiling to lean against.
- Because the yardstick is a trailing average deviation, the same price move scores very differently before and after a change in volatility.
- Values computed with different lookbacks, or with the close instead of typical price, are not on a single scale and must not be compared.
Related terminology
- related
- Standard Deviation Overbought and Oversold Relative Strength Index Stochastic Oscillator Moving Average Bollinger Bands Divergence
Bollinger Bands
Both compare price with a moving average scaled by dispersion. Bollinger Bands use standard deviation and plot on the price chart; CCI uses mean absolute deviation and plots one line in a separate panel.
Sources
CMT Association · discussion of momentum and deviation oscillators
https://cmtassociation.org/wp-content/uploads/2019/01/Technical-Analysis-Modern-Perspectives-CMT-Association.pdf URL verified
CMT Association · oscillator family in the body of knowledge
https://cmtassociation.org/wp-content/uploads/2026/03/2026-CMT-Program-Guide_v2026.3.5.pdf URL verified
Editorial status
Flagged by the editor as uncertain on a linguistic, mathematical or regulatory point.
