Where n is an integer representing the number of days in the study.
Example
Sample code
COL2 = CCI[15]
This indicator can be used to pinpoint cyclical turns in prices. 70% to 80% of the time the indicator will be between +100 and -100. This indicator can be used within a trend-following system by going long when the indicator crosses above 100 and going short when the indicator crosses below -100. The CCI can also be used in a counter-trend system by reversing the actions of the trend-following system