StockBeatStockBeat
Basics
  • Number Series
  • Boolean Series
  • Examples
  • Indicators
Alarms
Concepts
Basics
  • Number Series
  • Boolean Series
  • Examples
  • Indicators
Alarms
Concepts
  • Signals

    • Number Series
    • Boolean Series
    • Signal Examples
    • Indicators

      • Indicators
      • MFI (Money Flow Index)
      • ATR (Average True Range)
      • CCI (Commodity Channel Index)
      • CE (Chandelier Exit)
      • ER (Kaufman's Efficiency Ratio)
      • KC (Keltner Channel)
      • SMA (Simple Moving Average)
      • EMA (Exponential Moving Average)
      • MACD (Moving Average Convergence Divergence)
      • PPO (Percentage Price Oscillator)
      • RSI (Relative Strength Index)
      • FSO (Fast Stochastic Oscillator)
      • SSO (Slow Stochastic Oscillator)
      • BB (Bollinger Bands)
      • MAD (Mean Absolute Deviation)

CCI (Commodity Channel Index)

The CCI (Commodity Channel Index) is a momentum-based oscillator used to help determine when an investment vehicle is reaching a condition of being overbought or oversold. It measures the current price level relative to an average price level over a given period of time. When the CCI is above +100, it is considered overbought, and when it is below -100, it is considered oversold. It can also be used to identify trend strength and potential trend reversals.

Arguments

NameDescription
periodNumber of periods (integer greater than 0). Default is 20.

Useful Signal Expressions

1. CCI Overbought

Signal:

cci(20).gt(100)

Explanation: The CCI with a period of 20 is above 100, which can indicate an overbought condition, suggesting a potential selling opportunity.

2. CCI Oversold

Signal:

cci(20).lt(-100)

Explanation: The CCI with a period of 20 is below -100, which can indicate an oversold condition, suggesting a potential buying opportunity.

3. CCI Zero Line Cross (Bullish)

Signal:

cci(20).crosses_above(0)

Explanation: The CCI crosses above the zero line, which can be interpreted as a bullish signal.

4. CCI Zero Line Cross (Bearish)

Signal:

cci(20).crosses_below(0)

Explanation: The CCI crosses below the zero line, which can be interpreted as a bearish signal.

Last Updated:: 2/12/26, 8:03 AM
Contributors: ErenKizilay
Prev
ATR (Average True Range)
Next
CE (Chandelier Exit)