Commodity Channel Index
The Commodity Channel Index function is based on an indicator developed by Donald Lambert. It compares a stock price to its average over a specified number of time periods. Applications of CCI include identification of overbought or oversold conditions, and signaling when a price trend may be weakening.
1. Syntax
COMMCHANNEL(d0,d1,d2,s0,Alignment)
2. Input
The Commodity Channel Index function requires the following input series:
- d0 - High data values - The first set of data values for which the Commodity Channel Index is calculated, usually the daily high price of a stock.
- d1 - Low data values - The second set of data values for which the Commodity Channel Index is calculated, usually the daily low price of a stock.
- d2 - Close data values - The third set of data values for which the Commodity Channel Index is calculated, usually the daily close price of a stock.
3. Parameters
The Commodity Channel Index function has the following parameter:
- s0 - Period - The number of time periods to use in the calculation.
- Alignment (Optional) – Hierarchy placeholder to be used as the alignment axis.
4. Output
The Commodity Channel Index function generates the following output:
- Commodity Channel Index - The Commodity Channel Index result set.