Skip to content

charton API


charton API / @chart-on/ta / cci

Function: cci() ​

cci(values, length, out?): Float64Array

Defined in: momentum.ts:310

Commodity channel index: how far a value sits from its sma, in units of 0.015 times the mean absolute deviation over the same length bars. Usually run on the typical price (high + low + close) / 3. Lookback length - 1. A window with no deviation reads 0.

Parameters ​

values ​

Series

length ​

number

out? ​

Float64Array<ArrayBufferLike>

Returns ​

Float64Array