# forge.ta.cci

```python
forge.ta.cci(source: ArrayLike, period: int = 14) -> np.ndarray
```

Commodity channel index: distance from the average in units of mean deviation.

``(x - mean) / (0.015 * mean absolute deviation)`` over the last ``period`` values. A window
with no deviation reads 0.

Since Forge API 1.

## Class forge.ta.CCI

```python
forge.ta.CCI(**inputs: Any) -> None
```

Distance from the average in units of mean deviation.

The typical price by default

CCI = (x - SMA) / (0.015 * mean absolute deviation) over the last period values

No deviation reads 0.

Since Forge API 1.
