Commodity Channel Index
Loading the chart…
What the Commodity Channel Index shows
Measures how far the typical price has moved from its average, scaled by typical deviation, to show stretched moves and trend strength.
The Commodity Channel Index was created by Donald Lambert in 1980. It takes the typical price (high, low and close averaged), subtracts its simple moving average, and divides by 0.015 times the mean absolute deviation over the same window.
The 0.015 constant was chosen so that most readings fall between -100 and +100. The chart shows lines at +100, 0 and -100. Traders read a move above +100 as strong upward momentum, or as a stretched move that may fade, depending on the style. A fall below -100 is read the same way on the downside. Crosses back through zero are often used as momentum shifts. CCI has no fixed limits, so spikes beyond 200 happen in fast markets.
The default length is 20, with the source set to hlc3. Short lengths such as 14 are common for swing trading. On intraday charts of stocks or Bank Nifty, a length of 10 to 14 reacts faster but whipsaws more. Longer lengths give smoother and fewer signals.
How to use it
- Click Use on chart to add it with the default settings.
- Open its settings to change the length.
- Watch moves beyond the +100 and -100 lines and whether CCI returns inside them.
Settings and what it draws
Settings
| Input | Type | Default |
|---|---|---|
| Length | Whole number | 20 |
| Source | Price source | hlc3 |
Draws in its own pane
- CCILine
- Upper BandLevel at 100
- Zero LineLevel at 0
- Lower BandLevel at -100
Comments (0)
No comments yet. Be the first to say how it worked for you.
More built-in tools
See all-
Majority Rule
Majority Rule shows the percentage of the last bars that closed higher than the bar before. Majority Rule is a simple measure of how often price has gone up over a recent window, as a percentage of…
Other 101 -
Historical Volatility
Shows the annualised standard deviation of log price returns over the last N bars, as a percentage. Historical Volatility measures how much price has actually moved. It takes the logarithm of the…
Volatility 100 -
Double EMA
The double exponential moving average: an EMA built to remove part of the lag of a normal EMA. The Double Exponential Moving Average (DEMA) was introduced by Patrick Mulloy. It takes an EMA and an…
Trend 010