How does the CCI indicator work?

How does the CCI indicator work?

The CCI indicator calculates the difference between the current price and its historical average, adjusted by a factor.

Positive CCI values indicate that the price is above its historical average, suggesting potential overbought conditions, while negative values suggest potential oversold conditions.