2004issue C101
Constructing the Commodity Channel Index from typical price
The Commodity Channel Index is rebuilt from ordered high, low, and close prints. Each session becomes a typical price, that series is measured against its lookback mean, and the gap is scaled by mean deviation and a fixed 0.015 factor so the reading can be checked as a forecast over a defined sampling interval.
- Each session's typical price is the average of that session's high, low, and close.
- The lookback window of N consecutive typical prices supplies both the moving average and the mean deviation, summed from the newest print through the oldest print retained in the window.
- Mean deviation is the average absolute distance of those N typical prices from the lookback mean, and every difference enters the sum as a positive quantity.
- The Commodity Channel Index is the current typical price minus the lookback mean, divided by 0.015 times mean deviation, and is used as a forecast over a defined sampling interval.
An auditable construction
This article treats the Commodity Channel Index as a construction that can be audited from ordered session prints. The workflow rebuilds a typical-price series from each session's high, low, and close, then places the latest typical price against its lookback mean and scales that distance by mean deviation and a fixed 0.015 factor.
Editorial: the archive facts describe only this historical workflow. Reading the finished value as a forecast over a defined sampling interval is a TradersWeek interpretation, not an archive claim.
Rebuild the typical price series
Each session contributes one typical price. That session input is the average of the session's high, low, and close. The ordered typical-price series is the path carried into the later averages.
Average the lookback window
The construction next averages the N most recent typical prices, where N is the number of days in the working database. That count N is the lookback window for both the moving average and the mean deviation. The lookback sum runs from the newest typical price through the oldest typical price retained in the N-day window.
Form the mean deviation
Mean deviation is the average of the absolute differences between those N typical prices and that moving average. Every difference entering the mean-deviation sum is added as a positive quantity. The result is the average absolute distance of the window's typical prices from their lookback mean.
Scale the gap into the index
The Commodity Channel Index is the current typical price minus the lookback mean, divided by 0.015 times the mean deviation. The factor 0.015 is a fixed scaling constant applied to mean deviation in the final index ratio. The reading therefore places the latest typical price against its lookback mean after that scaling.
Read the result as a forecast
Editorial: once the ratio is formed, the Commodity Channel Index is a scaled quantitative-model reading used as a forecast over a defined sampling interval. Students can hold this explicit baseline fixed and compare it with later out-of-sample readings. The archive does not supply that comparison.
All readings on this track · 39 readings
- 1982Three gates on a 1982 pork-belly short
- 1982Scale-free Commodity Channel Index construction
- 1986Constructing a commodity channel index and a regression price channel
- 1987Constructing scaled OHLC matrices for study overlays
- 1987Constructing the commodity channel, average directional, and relative strength indexes on a shared cycle scale
- 1992Eleven-bar commodity channel index from typical price and mean deviation
- 1992Evaluating Commodity Channel Index breakout versus range rules
- 1992Evaluating breakout and CCI rules as complete mechanical procedures
- 1993Constructing stochastic, RSI and CCI inputs for forecasts
- 1993Nested centered channels with a commodity channel index confirmation gate
- 1993Listed-option timing as three separable clocks
- 1994Constructing an eleven-period commodity channel index
- 1994Confirming Elliott wave turns with channels and the commodity channel index
- 1995Commodity Channel Index band rules lag zero-line timing
- 1995Building the commodity channel index from typical price
- 1995Staged reversal rules with commodity channel index and average channels
- 1995Commodity channel index construction from typical price to a smoothed zero line
- 2001Reader tests for unfinished lookback oscillators
- 2002Constructing the commodity channel index from typical price
- 2003Breadth-filtered commodity channel index entry and exit rules
- 2003Constructing the Commodity Channel Index from typical price and scaled deviation
- 2003A shallow, poorly participated advance is an unconfirmed trend
- 2003CCI and RSI parameter defaults as scaling conventions
- 2003A cost and capital audit of a Commodity Channel Index trade engine
- 2003Commodity channel index peak divergence as an exit after twin patterns
- 2004Constructing the Commodity Channel Index from typical price
- 2004Constructing the Commodity Channel Index from typical price and mean deviation
- 2006Building custom indicators from the Commodity Channel Index, a least squares moving average and a rule-based entry
- 2012Confirming breakouts and retracements with CCI, ADX, and averages
- 2012Stacking oscillator lookbacks into a heatmap mosaic
- 2013Constructing a consensus and volatility-normalized value oscillator
- 2013Walk-forward system evaluation with a commodity channel index and chandelier exits
- 2014Dual detrended oscillators and dual Bollinger Band channels
- 2014RSI, CCI, and moving-average trend-filter construction
- 2014Dual RSI, a moving average, and CCI as a confirmation stack
- 2017Constructing dual-average cross and channel-index filters
- 2018Treat CAM as a classification layer before confirmation becomes an entry
- 2018Four-state slope labels gated by a moving average and a commodity channel index
- 2018Deviation-Scaled Moving Average construction from a two-bar difference