Skip to main content
Track Commodity Channel Index
27 / 39
Library

2004issue C101-3

Constructing the Commodity Channel Index from typical price and mean deviation

The Commodity Channel Index is finished once typical price, its simple average, mean deviation, and the 0.015 scaling constant are locked. Editorial reading: the same plus-or-minus 100 channel rails can then be wired as a breakout timer, a reversal hook, or an oscillator fade.

  • Assemble typical price, a simple average, mean deviation, and the 0.015 scaling constant before any crossing rule is attached.
  • The scaling constant is applied so that about 70 to 80 percent of readings stay between the +100 and -100 channel rails.
  • The finished series can be read as a breakout sequence, a reversal hook after the index has already left the channel, or a divergence and oscillator gauge.
  • After the original cycle-timing setting receded, the same construction was reused as a trend and momentum gauge of deviation from a moving average.
Entries in this reading1 entry

Finish the scale before the rule

The Commodity Channel Index is built from a typical price equal to the high, low, and close divided by three, then an n-period simple average of those typical prices. Mean deviation of the same typical-price window is the scaling base.

Editorial reading: lock that typical-price average, the mean-deviation scale, and the channel mapping before any crossing rule is attached. The series has to exist as a scaled deviation from its average before it can be treated as a timer, a hook, or a fade.

Typical price, mean deviation, and the scaling constant

Typical price is the bar average formed from high, low, and close. The lookback then takes a simple average of those typical prices.

Mean deviation is the average absolute gap between each typical price in the lookback and their simple mean. The index equals current typical price minus that average, divided by 0.015 times the mean deviation.

The 0.015 factor is the scaling constant. It is applied so that about 70 to 80 percent of readings stay between the +100 and -100 channel rails.

Cycle lookback when the series is a timer

When the series is used as a cycle timer, the cycle lookback is kept shorter than one third of the cycle length.

How the same channel rails get wired

One documented rule treats a break above +100 as a long signal and a later downward crossing as the exit, with the mirror sequence at -100 for shorts.

A later rule variation generates a long only after the index has gone below -100 and then turns up, and a short after it has gone above +100 and then turns down. Editorial note: that later sequence is a reversal hook, a turn back toward the channel after the index has already left it.

The same series can be read as a divergence detector when price makes a new extreme and the index does not, or as an overbought or oversold oscillator outside the plus-or-minus 100 band.

Reuse after cycle timing receded

After the original cycle-timing setting receded, the same construction was reused as a trend and momentum gauge of deviation from a moving average, analogous to a price channel. Editorial reading: the typical-price average and mean-deviation scale stay in place while the job assigned to the channel rails changes.

20-period CCI on July 2004 crude with the ±100 rails

The daily 20-bar CCI on July 2004 crude repeatedly leaves the plus-or-minus 100 band Lambert sized to hold most readings, which is why those same rails can be timed as a breakout, a reversal hook, or an oscillator fade. The path was read from the eSignal pane; the +163.7 close on 5 January is the figure the article states, and −153.3 is the last printed label.
The daily 20-bar CCI on July 2004 crude repeatedly leaves the plus-or-minus 100 band Lambert sized to hold most readings, which is why those same rails can be timed as a breakout, a reversal hook, or an oscillator fade. The path was read from the eSignal pane; the +163.7 close on 5 January is the figure the article states, and −153.3 is the last printed label.July 2004 crude oil (CL N4) · Daily · 2004-01-05T00:00:00.000Z to 2004-06-04T00:00:00.000Z

The plot is eSignal CCI(20, C) on the daily close of CL N4. Lambert’s sidebar instead uses typical price (H+L+C)/3, mean deviation, and a 0.015 multiplier so that about 70–80 percent of values stay inside ±100. Dates between the weekly axis ticks are approximate; readings other than the stated +163.72 and the printed −153.3 are digitized to the nearest five index points.

Educational research material, not investment advice. Historical source context does not establish present-day performance.
27 of 39 in the Commodity Channel Index track
20061-7 pp.Next on Commodity Channel IndexBuilding custom indicators from the Commodity Channel Index, a least squares moving average and a rule-based entryA custom oscillator can be built by subtracting an 18-period average of the close from the close, then overlaying a short smoother and a zero line so a central-line cross is the same event as a price-versus-average cross.
All readings on this track · 39 readings
  1. 1982Three gates on a 1982 pork-belly short
  2. 1982Scale-free Commodity Channel Index construction
  3. 1986Constructing a commodity channel index and a regression price channel
  4. 1987Constructing scaled OHLC matrices for study overlays
  5. 1987Constructing the commodity channel, average directional, and relative strength indexes on a shared cycle scale
  6. 1992Eleven-bar commodity channel index from typical price and mean deviation
  7. 1992Evaluating Commodity Channel Index breakout versus range rules
  8. 1992Evaluating breakout and CCI rules as complete mechanical procedures
  9. 1993Constructing stochastic, RSI and CCI inputs for forecasts
  10. 1993Nested centered channels with a commodity channel index confirmation gate
  11. 1993Listed-option timing as three separable clocks
  12. 1994Constructing an eleven-period commodity channel index
  13. 1994Confirming Elliott wave turns with channels and the commodity channel index
  14. 1995Commodity Channel Index band rules lag zero-line timing
  15. 1995Building the commodity channel index from typical price
  16. 1995Staged reversal rules with commodity channel index and average channels
  17. 1995Commodity channel index construction from typical price to a smoothed zero line
  18. 2001Reader tests for unfinished lookback oscillators
  19. 2002Constructing the commodity channel index from typical price
  20. 2003Breadth-filtered commodity channel index entry and exit rules
  21. 2003Constructing the Commodity Channel Index from typical price and scaled deviation
  22. 2003A shallow, poorly participated advance is an unconfirmed trend
  23. 2003CCI and RSI parameter defaults as scaling conventions
  24. 2003A cost and capital audit of a Commodity Channel Index trade engine
  25. 2003Commodity channel index peak divergence as an exit after twin patterns
  26. 2004Constructing the Commodity Channel Index from typical price
  27. 2004Constructing the Commodity Channel Index from typical price and mean deviation
  28. 2006Building custom indicators from the Commodity Channel Index, a least squares moving average and a rule-based entry
  29. 2012Confirming breakouts and retracements with CCI, ADX, and averages
  30. 2012Stacking oscillator lookbacks into a heatmap mosaic
  31. 2013Constructing a consensus and volatility-normalized value oscillator
  32. 2013Walk-forward system evaluation with a commodity channel index and chandelier exits
  33. 2014Dual detrended oscillators and dual Bollinger Band channels
  34. 2014RSI, CCI, and moving-average trend-filter construction
  35. 2014Dual RSI, a moving average, and CCI as a confirmation stack
  36. 2017Constructing dual-average cross and channel-index filters
  37. 2018Treat CAM as a classification layer before confirmation becomes an entry
  38. 2018Four-state slope labels gated by a moving average and a commodity channel index
  39. 2018Deviation-Scaled Moving Average construction from a two-bar difference
All 40 readings tagged Commodity Channel Index
Also on Commodity Channel Index5 readings