TradingCalculated
Calculations run privately in your browser
80 rows
One row per period: High, Low, Close
Paste rows from a spreadsheet or CSV.
CCI(20)136.4above +100 — strong/overbought
CCI = (Typical price − SMA) ÷ (0.015 × mean deviation). The 0.015 constant is chosen so roughly 70–80% of values fall between −100 and +100; moves outside that band mark unusually strong deviations.
Price
CCI(20)
Last 10 bars
BarCloseCCI
#80109.88136.4
#79109.74123.6
#78108.82100.1
#77107.5578.9
#76108.58100
#75106.8974.5
#74107.98120.2
#73108.58137.2
#72107.57135.1
#71108.12143.2

Not financial advice. Results are estimates based on the values you enter and simplified assumptions; real trades are affected by fees, slippage, gaps and other factors. Trading involves substantial risk of loss. Read the full disclaimer.

How to calculate the Commodity Channel Index

Typical price TP = (High + Low + Close) ÷ 3 CCI = (TP − SMA(TP, n)) ÷ (0.015 × Mean deviation) Mean deviation = Σ|TP − SMA(TP)| ÷ n

Paste prices oldest-first, one value or row per bar — straight from a spreadsheet or CSV export. Use “Sample data” to try it instantly.

Worked example

  1. TP = 105, its 20-bar average = 100, mean deviation = 2.5.
  2. CCI = (105 − 100) ÷ (0.015 × 2.5) = 133 — above +100.

How to interpret the Commodity Channel Index

Roughly 70–80% of CCI values fall between −100 and +100 thanks to the 0.015 constant. Moves above +100 mark unusual strength (a possible new uptrend, or an overextended market); below −100 unusual weakness.

Technical Indicators

Stochastic Oscillator Calculator

Calculate %K and %D from high, low and close data (fast or slow stochastic).

Stoch(14, 3, 3) → %K, %D, overbought/oversold
Technical Indicators

RSI Calculator

Calculate the Relative Strength Index with Wilder or simple averaging and see overbought/oversold readings.

Avg gain 0.714 / avg loss 0.357 → RSI 66.67
Technical Indicators

Bollinger Bands Calculator

Calculate upper, middle and lower bands, %B and bandwidth to spot squeezes.

BB(20, 2) → bands, %B, bandwidth

CCI calculator FAQ

Is CCI only for commodities?

No — despite the name it works on any market with high, low and close data.

Why 0.015?

Donald Lambert chose it so that most readings fall within ±100.