CCI in Crypto: Why the Value Changes Before Candle Close
CCI compares the typical price with its moving average, scaled by mean deviation. Its unbounded scale makes intrabar spikes look dramatic.
Short answer
CCI = (typical price − SMA of typical price) ÷ (0.015 × mean deviation), where typical price = (high + low + close) ÷ 3. The current bar's high, low and live close all enter the typical price, so CCI moves as the bar develops, and because it is unbounded, a fast intrabar move can push CCI from +80 to +250 before it settles. Readings beyond ±100 or ±200 seen mid-bar often shrink by the close. Use closed-bar CCI for thresholds.
Which part of CCI uses the live bar
| Component | Uses current bar? | Effect intrabar |
|---|---|---|
| Typical price (H+L+C)/3 | Yes | Moves with H, L and live C |
| SMA of typical price | Yes (one of N) | Small change |
| Mean deviation | Yes | Changes slightly |
| CCI | Yes | Can spike |
The 0.015 constant scales CCI so that roughly 70–80% of values fall between −100 and +100 in typical conditions. Intrabar spikes push outside that band temporarily.
Test CCI in Crypto on a perpetual chart; no account is needed to chart.
Launch ChartsPodHow much it moves inside one bar
Rules
Unbounded oscillators need fixed thresholds chosen in advance; compare closed-bar distributions before setting them.
See CCI in Crypto on live data in the free ChartsPod terminal.
Open the ChartsPod terminalQuestions readers ask
Why did CCI spike above 200 then fall?
The live typical price moved sharply within the bar.
Is CCI bounded?
No.
Which values to use for signals?
Closed-bar CCI.
Sources and methodology
Indicator formulas are standard definitions; live-versus-closed behaviour follows TradingView's repainting documentation. Values in examples are illustrative.
- TradingView Pine Script: Repainting — live vs historical calculation.
- ChartsPod indicator reference — indicator calculations.
This article explains research tools and workflows. It is not financial advice, does not recommend buying or selling any asset and does not predict prices. Crypto derivatives carry a risk of rapid and total loss of margin.
CHARTSPOD EDITORIAL EDITION · RESEARCH AND EDUCATION ONLY · NOT FINANCIAL ADVICE.