Evaluates the Commodity Channel Index (CCI) developed by Donald Lambert.
The double value of the Commodity Channel Index for the considered traded period.
Lambert originally commended that the CCI was designed to capture the trade cycle (i.e. low-to-low or high-to-high) turns in commodity markets. The system assumes that commodities move in cycles and uses 1/3 of the cycle period for the evaluation of the CCI. We allow the uses to specify the length of the calculation period used but we advise that you take the calculation cycle to be approximately one third of your estimate for the length of the trade cycle.
Calculation Period: the number of days used in the evaluation of the CCI. In Donald Lambert's original system this was taken to be one third of the estimate length of the trade cycle.
Note: Within the evaluation procedure (described below), we multiply the result by the constant 0.015. The constant was originally used in Lambert's system and has been found to ensure that around 70-80 percent of all the values given by the CCI lie within the range [-100,+100]. That is, we use this constant in order to calibrate this indicator with respect to the range [-100,+100].
Significant signals are generated when either the CCI starts to diverge from the price action which will signify a correlation in the price, or when the CCI extended (typically above 100 or below -100) which indicates oversold or over brought conditions.
Further details concerning the CCI can be found in an article by Donald Lambert that appeared in the October 1980 issue of Commodities (now known as Futures) Magazine.
We summaries our basic evaluation procedure by the following three steps:
| Exception Type | Condition |
|---|---|
| ArgumentException | Thrown if any elements from the arrays high, low or close are strictly negative, or if the length of the arrays is not equal. |
MeanReversion Class | Indicators Namespace