CCI: typical-price deviation and unbounded readings

The Commodity Channel Index measures how far typical price lies from its recent average relative to average absolute deviation.

IntermediateAbout 3 min read

Before this lesson

These lessons provide background; you can still read this page now.

What the indicator measures

The Commodity Channel Index measures how far typical price lies from its recent average relative to average absolute deviation. Despite its name, it can be applied to cryptocurrency candles. It is not confined to −100 and +100, and those levels are not hard boundaries or probabilities.

Calculation and units

Typical price is HLC3. CCI = (current typical price − SMA of typical price)/(0.015 × mean absolute deviation from that SMA). The denominator is not standard deviation. Changing that statistic produces a different series, even when the same lookback and price input are used.

Worked educational example

With current typical price 105, window mean 100 and mean absolute deviation 2, CCI is 5/(0.015×2), approximately 166.67. Those assumed statistics illustrate the ratio. The result is valid above +100; clipping it to 100 would misrepresent the indicator.

Fictional chart illustrationConstructed candles; not historical market data. Values use the existing TradingHub indicator implementation. Series have independent price or indicator units; no trading result is implied.321.13-246.19Bars
CCI20
Constructed candles; not historical market data. Values use the existing TradingHub indicator implementation. Series have independent price or indicator units; no trading result is implied. Price / indicator units.

Reading it without overclaiming

A high value means price is far above its window average relative to the selected deviation measure. It may accompany trend persistence or an exhausted move; CCI alone cannot distinguish them. Divergences depend on selected pivots and can persist. A small denominator also makes the ratio sensitive to small changes.

How TradingHub implements it

TradingHub defaults to period 20 and reference levels +100/−100. It uses HLC3 and the mean absolute deviation over the same rolling window. A zero mean deviation returns 0 as an edge convention. Threshold changes affect reference lines, while the period changes the calculation.

Comparisons that matter

Bollinger Bands use standard deviation and RSI uses smoothed positive/negative changes. CCI therefore should not be described as either a band position or a bounded RSI replacement. Use the shared candlestick lesson to keep timeframe, source and incomplete-bar effects consistent.

A reproducible chart review

Open the existing Trading chart and choose the same market, interval and closed observation time as your comparison. Record every calculation parameter before changing one at a time. Match source fields, history length and the bar window. Native indicators calculate from the supplied visible slice; Indicator Studio calculates from its available chart snapshot. A difference after panning may therefore be a window or warmup effect rather than a new market event.

Limits and next lesson

The illustration uses constructed candles, not a dated market observation or a backtest. A live candle can change until it closes. Missing history, volume units and implementation conventions limit comparisons. No indicator guarantees a direction, an execution price or protection from loss. Use the related lessons to separate definitions, observed values and possible explanations; a correct quiz records learning progress, not trading competence.

Knowledge check

Is a CCI reading of +166.67 automatically invalid?

  1. No; CCI is not bounded by +100 and −100
  2. Yes; +100 is its mathematical maximum
  3. Yes; CCI must remain between 0 and 100
Show explanation

The reference levels are interpretive thresholds, not the mathematical range of CCI.

Interactive checking needs JavaScript; the lesson and explanation remain readable.

Primary sources and scope

Educational scenarios are not execution guarantees, forecasts or personal recommendations. Check current product rules at their source.

Content revised: . Editorial responsibility: TradingHub. No independent professional certification is claimed.