Return the value of the CCI technical indicator “Commodity Channel Index”.

Syntax:

Calculation :

CCI calculates the distance between a price and its average over x days divided by 1.5% of the mean absolute deviation.

CCI = (Price – MM) / (0.015*D)

 

Where :

Price (Typical Price by default, but can be any Price type) = (H+L+C) / 3

MM = moving average on M with n days

D = standard deviation on the moving average

Interpretation :

CCI is a speedometer of the market which gives indications of an overbought condition (>100) or an oversold condition (<-100) as well as indications of divergence with prices.

 

Example:

Share this