Supported Indicators

Commodity Channel Index

Introduction

This indicator represents the traditional commodity channel index (CCI) CCI = (Typical Price - 20-period SMA of TP) / (.015 * Mean Deviation) Typical Price (TP) = (High + Low + Close)/3 Constant = 0.015 There are four steps to calculating the Mean Deviation, first, subtract the most recent 20-period average of the typical price from each period's typical price. Second, take the absolute values of these numbers. Third, sum the absolute values. Fourth, divide by the total number of periods (20).

To view the implementation of this indicator, see the LEAN GitHub repository.

Using CCI Indicator

ERROR: Call to undefined function title_to_dashed_lower()

File: using-indicator.php line 122

Visualization

The following image shows plot values of selected properties of CommodityChannelIndex using the plotly library.

CommodityChannelIndex line plot.

You can also see our Videos. You can also get in touch with us via Discord.

Did you find this page helpful?

Contribute to the documentation: