CCI vs. Stochastic Z-Score: same core, calmer signals?
The Commodity Channel Index has measured how far price strays from its average for decades. AlgoAlpha's Stochastic Z-Score promises a cleaner read of the same stretch, with smoothing, a long-term filter and reversal marks. So is it a new idea or the classic in a new coat? We put both on the same bars to see what the extra layers change, and what they cost.
Key takeaways
The remix's raw Z-Score line is mathematically CCI: correlation 0.994 with CCI(21), no lag, on BTC and ETH daily.
Its reversal marks are rare: 4.6 bullish and 2.8 bearish a year on BTC daily, against about 15 a year each way for CCI's ±100 exits.
Calmer: none of its reversal marks flipped within three bars; CCI's did in 0.9% of cases (BTC daily).
Neither contender's signals moved price clearly differently from any day, on any chart.
The contenders
Commodity Channel Index (the classic)
The built-in CCI with length 20 on the average of high, low and close. It measures the distance from a 20-bar average in units of mean deviation, so readings beyond +100 or −100 mark an unusual stretch. A 14-bar average of the CCI is drawn beside it. Its measured events: the line leaving overbought (back below +100) or oversold (back above −100). Our copy matches the original exactly on all four charts and does not repaint.
Stochastic Z-Score by AlgoAlpha
Published in July 2025. In the author's words, roughly: a Z-score of price (distance from the mean in standard deviations) is run through a stochastic, smoothed with a Hull average, and given a slower ALMA line for long-term momentum. Bands at ±2 and ±2.5 mark regular and extreme zones, and reversal marks appear only when a short-term turn at an extreme agrees with the long-term line. Our copy matches the original within a pixel and does not repaint.
Head to head
First, the kind news for both: the remix is faithful to the classic at its heart. Its raw Z-Score line correlates 0.994 with CCI(21), with no lag, on both BTC and ETH daily (September 2019 to October 2026 for BTC, November 2019 to October 2026 for ETH). Dividing by standard deviation or by mean deviation gives almost the same shape. On the hourly charts (January 2025 to October 2026) the two raw lines even cross zero at almost the same pace: 421 times a year for the Z-Score, 428 for CCI on BTC.
What AlgoAlpha builds on top is where the two part ways. The smoothed oscillator crosses zero about 12.5 times a year on BTC daily and stays on one side for a median 14 days; raw CCI crosses its zero line 18 times a year and stays a median 5 days. The ALMA long-term line is calmer still: its colour lasts a median 33 days, and only 1.5% of its runs are short. It agreed with the market's trend on 67% of days, against 51% by chance.
The reversal marks are the filter at work. On BTC daily they fire 4.6 times a year bullish (33 marks) and 2.8 times bearish (20 marks); on ETH daily 5.1 and 2.8. CCI's ±100 exits fire 15.4 and 15.9 times a year on BTC daily, 15.5 and 18.4 on ETH. None of AlgoAlpha's reversal marks was reversed within three bars; for CCI that happened to 0.9% of its signals on BTC and 1.7% on ETH.
What followed? Ten days after CCI left oversold on BTC daily, price was higher 51% of the time, against 54% after any day (107 signals). After AlgoAlpha's bullish mark it was 52% against the same 54% (33 marks). Its bearish mark looks better at 60% against 46%, but rests on only 20 marks, too few to say anything. None of these gaps is clear on any chart. Filtering made the signals rarer and calmer, not measurably sharper.
Make it better
For the classic, the report holds a practical hint rather than a tested change. On the daily chart, its winning signals seldom moved more than 11% against the entry: nine in ten stayed within that. A stop just beyond that distance leaves most winners alone while capping the rest. It is a way to use CCI well, not a measured improvement. Our CCI page explains why the reading works best as a second opinion behind a trend you already trust.
For the Stochastic Z-Score the report holds no measured tip.
The verdict
Classic CCI
Best as a fast, honest stretch gauge. It reproduces exactly, never repaints and shows every extreme as it happens, which suits a trader who wants the raw reading and makes the decision elsewhere.
Stochastic Z-Score by AlgoAlpha
Best as a calm context panel. Its slow ALMA line holds its colour for weeks and its reversal marks rarely flip, so it suits a trader who wants fewer, steadier prompts on the daily chart.
The bottom line
Under the hood both read the same stretch: AlgoAlpha's raw line is, in effect, CCI. The difference is the layers on top, which turn about thirty yearly calls into fewer than eight and make each one steadier. What they did not do, on our charts, is make the signals better than any random day. That is a fair result for a context tool, and an honest starting point for the author: using the ALMA line as a filter for a separate entry rule is a natural thing to build and test.
Read more about the classic CCI, see how another remix fared in Classic RSI vs. Zeiierman RSI, meet the author in our AlgoAlpha spotlight, or browse the latest reports.
Both scripts were measured with their authors' default settings, on BTC and ETH, on daily and hourly charts; your own settings or market may behave differently.
This article is education, not investment advice.
Every test here counts trading costs, runs on many markets and compares the result with just holding the same market. A result is a starting point, not a verdict. How we test