Skip to content

CCI

Commodity Channel Index — measures the deviation of price from a statistical mean. Commodity Channel Index (CCI) computes the deviation of the typical price from its moving average in units of the mean absolute deviation. Values above +100 indicate overbought conditions or the start of an uptrend, below -100 — oversold conditions or a downtrend. Lambert recommended using inverted thresholds (+100/-100).

Formula:

Typical Price (TP) = (High + Low + Close) / 3
Mean Deviation = SMA(|TP - SMA(TP, n)|, n)
CCI = (TP - SMA(TP, n)) / (0.015 * Mean Deviation)
ParameterTypeDefaultRange / Values
Periodint201-200
TriggerDirectionConditionDescription
Level cross up🟢 BuyThe indicator value crossed the specified level from below to above.The CCI line crosses the configurable level Level from below to above. Level is set in the trigger parameters.
Level cross down🔴 SellThe indicator value crossed the specified level from above to below.The CCI line crosses the Level from above to below. Level is set in the trigger parameters.
Value above level by N🟢 BuyThe indicator value rose above the level by the specified distance.The CCI line crosses the Level + Distance mark, moving up. The distance delays entry until a confirmed breakout of the level.
Value below level by N🔴 SellThe indicator value dropped below the level by the specified distance.The CCI line crosses the LevelDistance mark, moving down.
Value rising🟢 BuyThe indicator value is rising relative to the previous bar.The CCI line is higher on the current bar than on the previous one — upward momentum.
Value falling🔴 SellThe indicator value is falling relative to the previous bar.The CCI line is lower on the current bar than on the previous one — downward momentum. Fires on every declining bar.
Slope turns positive🟢 BuyThe indicator slope turned positive — an upward reversal.The CCI line changes its slope from descending to ascending — the indicator stopped falling and started rising.
Slope turns negative🔴 SellThe indicator slope turned negative — a downward reversal.The CCI line changes its slope from ascending to descending — the indicator stopped rising and started falling.
Zero cross up🟢 BuyThe indicator line crossed zero from below to above — a buy signal.The CCI line crosses the zero level from below to above.
Zero cross down🔴 SellThe indicator line crossed zero from above to below — a sell signal.The CCI line crosses the zero level from above to below.
Enter overbought zone🔴 SellThe oscillator entered the overbought zone.The CCI line crosses the overbought threshold Overbought from below to above — the upper extreme of the range is reached. In a counter-trend strategy it is used as a sell signal.
Enter oversold zone🟢 BuyThe oscillator entered the oversold zone.The CCI line crosses the oversold threshold Oversold from above to below — the lower extreme of the range is reached. In a counter-trend strategy it is used as a buy signal.
Exit overbought zone🔴 SellThe oscillator exited the overbought zone.The CCI line returns below the overbought threshold Overbought — the upward momentum weakens.
Exit oversold zone🟢 BuyThe oscillator exited the oversold zone.The CCI line rises above the oversold threshold Oversold — the downward momentum weakens.
ParameterTypeDefaultRange / Values
Distance (Value above level by N, Value below level by N)float00>
Level (Value above level by N, Value below level by N, Level cross up, Level cross down)float0
Overbought (Enter overbought zone, Exit overbought zone)float8050-100
Oversold (Enter oversold zone, Exit oversold zone)float200-50