Commodity Channel Index
Price and the correct denominator
Classical typical price is TP = (High + Low + Close)/3. For the selected window, calculate mean TP and the average absolute difference of each TP from that single window mean. CCI = (current TP − SMA(TP))/(0.015 × mean deviation). The denominator is not standard deviation or the average price change.
Window, source and scale
Twenty periods is a popular convention, but software can allow another price source. Check data and conventions before comparing readings. CCI has no fixed bounds at ±100. When its deviation denominator is zero, software needs a defined handling rule; ordinary division by zero is not a valid calculation.
Threshold and strategy logic
A +100 level can form part of either a momentum or a reversal hypothesis, depending on the complete rule. Those are different applications of the same calculation. An elevated reading can persist; it is not a correction probability. Explicit entry, exit and cost assumptions support a fair comparison without selecting only attractive examples.
Source of the definition
TradingView: CCI. Documentation of the construction or concept is not a guarantee of strategy results.