1982issue C051-5
Scale-free Commodity Channel Index construction
Editorial reading: the Commodity Channel Index is a scaling construction. Once a cycle length is assumed, typical price, a simple moving-average benchmark, and a mean-deviation divisor convert session ticks into a channel that can be compared across contracts.
- The Commodity Channel Index is a timing tool for markets already treated as seasonal or cyclical. It does not estimate cycle length.
- Each session is reduced to a typical price. A simple moving average and a mean-deviation divisor then scale the gap so that 70 percent to 80 percent of random fluctuations fall inside a plus-or-minus 100 channel.
- Data-base length is the critical construction choice: a short window treats ordinary daily fluctuation as cycle turns, a long window delays breakout recognition, and the window should stay shorter than one third of the assumed cycle.
- In the published construction, a reading above +100 marks a long setup and a return below +100 closes that long, with a symmetric pair of rules at -100. The thresholds can be changed.
Construction as a scaling problem
Editorial reading: oscillator construction here is a scaling problem. Once a cycle length is assumed, typical price, a simple moving-average benchmark, and an adaptive variability divisor convert raw ticks into a channel that can be compared across contracts.
The Commodity Channel Index is built as a timing tool for markets already treated as seasonal or cyclical. It does not estimate cycle length.
Typical price as the session input
Each session is reduced to a typical price equal to one-third of the high, low, and close. Typical price is the ordered price input to the channel index.
A simple moving-average benchmark
Current price is compared with a simple moving average rather than an exponentially smoothed average so the benchmark updates and distant history does not dominate present patterns. A moving average of those typical prices is then formed over N sessions.
Why the divisor has to adapt
A daily-limit divisor is rejected because an equal-sized price move does not always have the same significance. The divisor must stay small in quiet oscillation and grow when a breakout appears.
Mean deviation is the selected divisor after alternative divisors were tested. It is the average absolute gap between recent typical prices and their moving average, used as a variability divisor that widens when prices break out. A mean absolute deviation of those typical prices is formed over the same N sessions. The daily calculation is described as impractical to perform by hand.
Scaling the gap into a channel
The index equals the gap between today's typical price and that moving average, divided by 0.015 times the mean deviation, so that 70 percent to 80 percent of random fluctuations fall inside a plus-or-minus 100 channel.
Published setup rules
In the published construction, a reading above +100 marks a long setup and a return below +100 closes that long, with a symmetric pair of rules at -100. The thresholds can be changed.
Data-base length is the critical choice
Lookback length is the critical construction choice. Data-base length is the number of sessions in the moving average and mean-deviation windows. A short data base treats ordinary daily fluctuation as cycle turns, while a long data base delays breakout recognition.
On a theoretical perfectly cyclic contract, a 10-day data base detected cycle tops well but breakout detection weakened on short cycles. Tests with 5-, 15-, and 20-day bases suggested the data base should stay shorter than one third of the assumed cycle length.
A 20-session data base was adopted as the standard program length, with allowable windows from 5 to 25 sessions, after a 5-session window was judged more exposed to whipsaws despite stronger theoretical detection on the cyclic test series.
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