CCI Indicator: Swing Trading Strategy and Settings
The Commodity Channel Index (CCI) measures how far price sits from its average. Learn the 20-period setting, +100/-100 rules, zero-line filter, divergence and swing entries.
The CCI indicator (Commodity Channel Index) is a momentum oscillator that measures how far price has moved from its recent average, scaled by typical variation. Readings above +100 signal unusually strong price; readings below -100 signal unusual weakness. Swing traders use it to time pullbacks, filter trends and spot divergence.
This article is educational only and not financial advice. Indicators and patterns fail, past performance does not guarantee future results, and you should manage risk and do your own research.
Key takeaways
- CCI compares today's typical price with its 20-period average, divided by the average deviation, so it shows how stretched price is, not just direction.
- The standard setting is 20 periods; roughly 70-80% of readings normally fall between -100 and +100, so moves beyond those lines are notable but not automatic reversals.
- In an uptrend, the highest-quality CCI swing entry is a hook back above -100 after a pullback, not a short at +100.
- The zero line works as a simple trend filter: favor long setups only when CCI is mostly above zero on the daily chart.
- CCI is unbounded, unlike RSI, so it can run far past +200 in strong trends. Fading those readings is the most common mistake.
How is the Commodity Channel Index calculated?
The Commodity Channel Index is calculated by comparing the typical price to its simple moving average and dividing by the mean deviation. Donald Lambert introduced it in 1980. The steps are:
- Typical price (TP) = (High + Low + Close) / 3.
- Take the simple moving average of TP over N periods (SMA).
- Calculate the mean deviation: the average absolute distance of each TP from that SMA.
- Apply the formula:
CCI = (TP - SMA of TP) / (0.015 x Mean Deviation)
The 0.015 constant is a scaling factor Lambert chose so that most readings land between -100 and +100. Because the result isn't capped, CCI can reach +250 or -250 during sharp moves.
Think of it as a stretch gauge. Zero means price sits at its average. +100 means price is stretched meaningfully above average relative to normal variation.
What is the best CCI period and what are the standard settings?
The most common CCI indicator setting is 20 periods, and it is a sensible default for daily-chart swing trading. The best CCI period depends on how fast you trade and how noisy the stock is.
| Period | Behavior | Best for |
|---|---|---|
| 14 | Faster, more signals, more whipsaws | Short swings, volatile stocks |
| 20 | Balanced; Lambert's original idea | Daily-chart swing trading |
| 34-50 | Smoother, fewer signals | Position trades, trend confirmation |
Some traders pair a fast CCI (6-14) for entry timing with a slow CCI (50) for trend. Whatever you choose, test it on the stocks you trade and stay consistent. Constantly tweaking the period to fit past trades is curve-fitting, which tends to fail on new data.
What do the +100, -100 and zero-line crossings mean?
The +100 and -100 levels mark when price is unusually far from its average, and the zero line marks the average itself. Interpretation differs by context.
- Above +100: strong upward momentum. In a trend, this is a sign of strength, not an automatic sell.
- Below -100: strong downward momentum. In an uptrend, a drop here marks a deep pullback that may offer an entry once it turns.
- Cross above zero: price has moved above its average; momentum is shifting up.
- Cross below zero: price has slipped below its average; momentum is shifting down.
This is why a simple CCI +100 -100 strategy works best as a trend-following tool. Buying when CCI crosses back up through -100 (in an uptrend) or through +100 (as a breakout confirmation) usually outperforms reflexively selling above +100.
How do you trade CCI for swing trading?
CCI swing trading works best when you combine the indicator with a trend and a defined risk level. Below are three setups.
Setup 1: Trend-pullback hook from -100
Buy when CCI dips below -100 in an uptrend, then turns and closes back above -100.
Criteria:
- The stock closes above its rising 50-day moving average.
- CCI(20) falls below -100 during a pullback of roughly 3-8 days.
- CCI closes back above -100 (the "hook"), ideally on a bullish candle such as a hammer or bullish engulfing.
- Entry is above the hook-day high.
The logic: the dip shows sellers stretched price too far, and the hook shows that pressure fading. You are buying a trend resuming, not guessing a bottom.
Setup 2: Zero-line trend filter
Use the zero line to decide whether to look for longs at all.
- CCI above zero on most days over the past 20 sessions: favor long setups.
- CCI repeatedly failing at zero from below: skip longs, or wait.
- A fresh cross above zero after a base can confirm a rounding bottom pattern or similar reversal is gaining traction.
This filter keeps you from buying "oversold" dips in stocks that are simply in downtrends.
Setup 3: CCI divergence
CCI divergence happens when price and CCI disagree. Bullish divergence: price makes a lower low while CCI makes a higher low. It suggests selling momentum is fading. Bearish divergence is the reverse, with price making a higher high while CCI makes a lower high.
Treat divergence as a warning, not a trigger. Wait for price confirmation, such as a break of a short-term trendline or a close above the prior swing high. Divergence can persist through several lower lows in a strong downtrend. For the continuation version, see hidden divergence with RSI; the same logic applies to CCI.
Worked example: a CCI pullback entry
These numbers are hypothetical.
A stock trades at $52, above a rising 50-day average at $48. It pulls back for five sessions to $47.50. CCI(20) falls to -135, then the next day the stock closes at $48.60 with CCI at -82, a hook back above -100 on a bullish engulfing candle. The hook-day high is $48.90.
- Entry: $49.00 (buy-stop just above the hook-day high).
- Stop: $46.90, just below the pullback low of $47.50 with room for noise (risk $2.10 per share).
- Target 1: $52.00, the prior swing high (reward $3.00, about 1.4:1).
- Target 2: $55.30, a measured extension (reward $6.30, 3:1).
If you risk $200 on the trade, you'd buy about 95 shares ($200 / $2.10). Selling half at Target 1 and trailing the rest is one approach; see scaling in and out of swing trades. The trade can still fail, which is exactly why the stop exists.
Where should you place stops and targets with CCI?
Place stops beyond the structure that defines the setup, not at a fixed CCI level. CCI tells you when to look; price tells you when you're wrong.
- Stop: below the pullback low (or the hook candle's low) plus a small buffer, perhaps 0.5x the 14-day ATR (average true range, a measure of typical daily movement).
- Target: the prior swing high first, then a trailing stop under rising lows or the 10- or 20-day average.
- Indicator exit: CCI crossing back below zero after a run can signal weakening momentum, but price-based exits are cleaner.
- Time stop: if the trade goes nowhere in 5-7 sessions, consider leaving. See time stops in swing trading.
Also remember gaps can jump past your stop; size positions accordingly, as covered in overnight gap risk.
CCI vs RSI: what's the difference?
CCI vs RSI comes down to scale and calculation: RSI is bounded between 0 and 100 and measures the ratio of gains to losses, while CCI is unbounded and measures distance from an average.
| Feature | CCI | RSI | Stochastic |
|---|---|---|---|
| Range | Unbounded (typically -100 to +100) | 0 to 100 | 0 to 100 |
| Measures | Deviation from average price | Average gains vs losses | Close within recent high-low range |
| Common levels | +100 / -100 | 70 / 30 | 80 / 20 |
| Behavior in strong trends | Can stay far beyond +100 | Stays high, 70+ | Pins at extremes |
| Uses | Pullback hooks, breakout strength | Overbought/oversold, divergence | Short-term timing |
Because CCI uses high, low and close and isn't capped, it reacts more sharply to big moves. Stochastic is the noisiest of the three. None is "better"; pick one or two and learn how they behave on your watchlist. Using CCI, RSI and Stochastic together mostly duplicates the same information.
Common mistakes with the CCI indicator
- Fading strong trends. Shorting at +100 or +200 in a powerful uptrend often means fighting momentum. High CCI frequently marks strength.
- Buying every -100 reading. Without a trend filter, -100 in a downtrend is just a downtrend.
- Skipping price confirmation. Divergence and hooks need a candle or level break to confirm.
- Over-optimizing the period. Flipping from 14 to 20 to 30 until history looks perfect rarely holds up.
- Ignoring the stop. An indicator doesn't set risk; structure does.
- Trading illiquid stocks. Thin volume produces erratic readings and slippage.
The bottom line
CCI is a useful stretch gauge: set it at 20 periods, use zero as a trend filter, and buy hooks back from -100 in uptrends, with stops below structure. Treat divergence as a warning and never fade a strong trend on a CCI reading alone.
StockSetups helps by scanning US equities after the close for chart patterns confirmed by candlesticks, sorted into long-only lanes, with paid plans adding indicators and trade plans so you can check CCI-style setups against entry, stop, target and reward:risk. Always verify setups yourself.
Frequently asked questions
Is CCI only for commodities?
No. Despite the name, the CCI indicator works on stocks, ETFs, forex and futures. It was designed for commodity cycles but measures price deviation from an average, which applies to any liquid market.
Does a CCI above +100 mean I should sell?
Not by itself. A reading above +100 often signals strong momentum, and in trends it can stay elevated for weeks. Sell decisions work better when based on price structure, a trailing stop or confirmed bearish divergence.
Can CCI be used on intraday charts?
Yes, the same 20-period calculation works on 5- or 15-minute charts. Intraday readings are noisier, so many traders confirm with VWAP, volume and the higher-timeframe trend.
What is a good CCI setting for volatile stocks?
A 14-period CCI reacts faster and suits volatile stocks, but it produces more false signals. A 20-period setting is a steadier default, and you can add a 50-period CCI as a trend filter.
Produced with AI assistance and published under the StockSetups editorial guidelines.
Get daily signals & real-time alerts.
StockSetups scans ~12,300 US stocks & ETFs after every close and sorts every long setup into four ranked lanes — each with a trade plan — plus an always-on engine firing 35+ real-time intraday alerts. Free for 7 days, no credit card.
Start free — 7-day trial, no card →Free daily signals by email. Top 3 setups per lane after every close. No account needed.
Unsubscribe anytime · Privacy