CCI
Overview of the Commodity Channel Index calculation.
/* Return CCI (Commodity Chanel Index) for n bars close price.
*
* CCI = (Typical Price − MA) / 0.015 * Mean Deviation
*
* where:
* Typical Price = ∑P((H + L + C) / 3))
* P = number of bars (period)
* MA = Moving Average = (∑P Typical Price) / P
* Mean Deviation=(∑P | Typical Price - MA |) / P
*/Last updated
Was this helpful?