The Commodity Channel Index (CCI), developed by Donald Lambert in 1980, was originally designed for commodity futures markets but has proven highly versatile across asset classes including crypto. CCI measures the distance of price from its statistical average over a lookback period, normalized by mean absolute deviation — this produces an oscillator that identifies when price has moved unusually far from its typical range. A reading above +100 signals that price is in the upper tail of its recent distribution (strong upward momentum), below -100 signals the lower tail (strong downward momentum or oversold reversal potential), and the zero line represents the center of the recent price distribution. Unlike RSI (which measures gain/loss momentum) or Williams %R (which measures position within the high-low range), CCI's normalization by mean absolute deviation makes it less sensitive to outlier spikes — providing more consistent readings during volatile crypto market moves. DennTech's CCI strategy implements threshold trading, zero-line crossover, and CCI-EMA trend confirmation modes.
Related strategies: RSI, Williams %R, EMA.
CCI Formula
CCI = (Typical Price - SMA of Typical Price) / (0.015 × Mean Absolute Deviation)
Where:
Typical Price = (High + Low + Close) / 3
SMA of TP = Simple Moving Average of Typical Price over N periods (N=20 standard)
MAD = Mean of |Typical Price - SMA| over N periods
0.015 = Lambert's constant (scales CCI so ~75% of values fall between ±100)
Example (20-period BTC Daily):
Typical Price today: $65,200
SMA(20) of Typical Price: $63,800
MAD(20): $940
CCI = ($65,200 - $63,800) / (0.015 × $940)
= $1,400 / $14.10
= +99.3 → Near overbought threshold (+100)
If CCI crosses above +100 → strong momentum signal
If CCI crosses below -100 → oversold signal
Three CCI Strategy Modes
Mode 1: Threshold Trading (+100/-100)
Long entry: CCI crosses above +100 from below (entering momentum zone). Exit: CCI crosses back below +100 or reaches +200. Short/Exit entry: CCI crosses below -100 from above. This is the classic CCI breakout mode — trading the strongest momentum conditions. Add ADX filter (require ADX above 25) to confirm trend strength. See our ADX guide.
Mode 2: Overbought/Oversold Reversal
Long entry: CCI drops below -100 (oversold) then crosses back above -100 (exit from oversold zone). Short entry: CCI rises above +100, crosses back below +100. ADX filter: require ADX below 30 (only mean-revert in ranging markets). See our RSI guide for the parallel approach.
Mode 3: CCI Zero-Line Crossover
CCI crossing above zero = price moving above its typical average (bullish trend shift). CCI crossing below zero = price moving below its typical average (bearish trend shift). Combine with EMA direction confirmation: CCI zero cross in direction of EMA trend = higher conviction entry. Less volatile than ±100 threshold signals — better for longer-term trend following. See our EMA guide.
CCI vs RSI vs Williams %R
| Feature | CCI | RSI | Williams %R |
|---|---|---|---|
| Unbounded? | Yes — can go above +200 or below -200 | No — bounded 0–100 | No — bounded -100 to 0 |
| Overbought level | +100 (momentum), +200 (extreme) | 70 | -20 |
| Trend filter capability | Zero-line crossover | Above/below 50 midline | Mid-range -50 level |
| Spike resistance | High — MAD normalization reduces spike impact | Moderate | Low — direct price range comparison |
DennTech CCI Configuration
- Navigate to Strategy → CCI
- Mode: Threshold (+100/-100), Oversold Reversal, or Zero-Line Crossover
- Lookback period: 20 (standard) or 14 (faster response)
- Threshold: +100/-100 standard; +150/-150 for higher conviction entries
- ADX filter: enabled for Threshold mode (require ADX above 25)
- EMA confirmation: enabled for Zero-Line mode
- Timeframe: 4H or Daily for BTC/ETH
Compare editions at pricing page. All strategies at strategies page. Full documentation at DennTech docs.
Frequently Asked Questions
- What is the advantage of using CCI over RSI for crypto bot strategies?
- CCI and RSI are both momentum oscillators but differ fundamentally in their mathematical construction and resulting behavior. CCI's primary advantage: it is unbounded (can exceed +200 or -200), which means it clearly identifies extremely strong momentum conditions that RSI cannot express (RSI caps at 100). In strong crypto bull trends, CCI reaching +200 or +250 provides a stronger momentum signal than RSI's capped reading at 90–95. CCI's normalization by Mean Absolute Deviation also makes it more resistant to single-day spike distortion than Williams %R's direct range comparison. RSI's advantage: it is more widely used and therefore its signals have more behavioral significance in markets where many traders act on the same indicator levels. For DennTech strategies, CCI is most useful as a momentum confirmation tool for threshold-breakout entries (trading above +100) and zero-line trend filtering, while RSI is better for mean-reversion oversold/overbought strategies. See our RSI guide. Compare editions at the pricing page.
- Can CCI be used as a standalone signal or does it need to be combined with other indicators?
- CCI can generate standalone signals in its threshold mode — the +100/-100 crossover is a self-contained signal that has been validated across many market conditions. However, standalone CCI signals in crypto have a higher false signal rate in strongly trending markets (where CCI momentum signals can whipsaw between +100 and 0 repeatedly during volatile consolidation) and in very choppy ranging markets (where CCI crosses +100 briefly without follow-through). Combining CCI with ADX (require ADX above 25 for momentum mode), EMA direction (require price above EMA for long entries), or volume confirmation (require above-average volume on signal candle) significantly improves signal quality. DennTech's CCI strategy includes these filter options. Start at the pricing page. Explore the live demo.
- Why does Lambert's CCI formula use the constant 0.015 and does it affect how I should configure the strategy?
- Lambert chose the 0.015 constant specifically to scale the CCI formula so that approximately 70–75% of all values fall within the ±100 range during normal market conditions. This means the ±100 levels are not arbitrary thresholds — they are statistically calibrated to represent conditions outside approximately 75% of normal price movement. A CCI above +100 means price is in the upper 12.5% of its recent distribution, which is a statistically meaningful deviation. For strategy configuration, this statistical foundation is already built into the indicator by the constant — you don't need to adjust it. However, if you increase the threshold to ±150, you're targeting the upper ~5% of price deviations (higher conviction but fewer signals). Testing both ±100 and ±150 thresholds in your DennTech backtest and comparing Profit Factor and Recovery Factor is the recommended approach for finding your optimal threshold level. See our backtesting guide. Start at the pricing page.
Oscillator strategies: CCI (this guide), RSI, Williams %R. All at the strategies page.