Momentum Indicators

Commodity Channel Index (CCI) indicator

Deviation of the typical price from its moving average, scaled by mean deviation. Readings above +100 are overbought, below −100 oversold.

Definition

Deviation of the typical price from its moving average, scaled by mean deviation. Readings above +100 are overbought, below −100 oversold.

Parameters

Asset, Lookback period (20), Constant (0.015)

Output range: Unbounded (typically −300 to +300)

Example condition

text
`CCI(AAPL, 20) > 100` (Breakout momentum)

Usage notes

CCI crossing back inside ±100 often marks the end of the thrust — use for exits more than entries.

Use in a strategy

Add this indicator to a strategy condition, choose its supported parameters and compare the output with the threshold required by your rule. Preserve the same interval and lookback when comparing backtests.

After saving the condition, inspect its asset, interval, lookback and comparison operator against the parameters above. If no trades occur, check whether the condition ever became true and whether the requested input data exists for that period. A missing input is not a zero-valued signal. An indicator produces an input to a rule. It does not establish future returns, and data availability can differ across assets and periods.