WhitmanTrading

Stochastic vs CCI

The stochastic oscillator reports where the close sits inside the recent high-low range, on a fixed scale. The commodity channel index reports how far price has moved from its own average relative to typical deviation, and that reading has no upper or lower limit.

Two oscillators that get used interchangeably. One asks where price sits inside a box; the other asks how far it has walked away from the middle. Only one of those questions has an upper bound.

What each one is

The stochastic oscillator reports position within the recent high-low range, on a fixed scale from nought to one hundred. Stochastic covers it.

The commodity channel index reports distance from a moving average, scaled by how much price typically deviates, with no limits in either direction. The commodity channel index covers it.

Both are read the same way in practice — thresholds, extremes and divergence — which is why the difference in their scales gets skipped over so often.

Where they differ

A price series with a capped range-position oscillator beneath.
Position in a box, capped at both ends. Illustrative chart - not real market data.

Whether the reading can run out of room. The stochastic reaches its ceiling and stops there. The other keeps climbing, so a strong move produces a rising number rather than a pinned one.

The second half of a price series with an unbounded deviation reading beneath.
Distance from a mean, with no ceiling. Illustrative chart - not real market data.

What a threshold means. A fraction of a fixed range on one; a convention somebody chose on the other, crossed routinely in any real move.

A slice of price data where a pinned reading and an extending one separate.
One pins while the other extends. Illustrative chart - not real market data.

What the reference point is. The recent high and low in one; the instrument’s own average and typical deviation in the other. The second adapts to how much the market usually moves.

How comparable readings are. A bounded value carries between instruments. An unbounded one is specific to what that market typically does, so numbers do not transfer.

Where they agree

A window of price data feeding both oscillators.
Both are transformations of the same bars. Illustrative chart - not real market data.

Both are computed from the same price series. Neither adds anything from outside it, so agreement between them is arithmetic and not evidence.

Both lag. Every value came from bars that have already closed, and neither can turn before price does.

Both fail in a range. On this site’s shared series direction runs average 2.01 bars with a longest of 11, and short runs cross any threshold repeatedly on either.

And neither supplies a stop. The ninetieth percentile bar range here is 1.101, and the invalidation belongs at structure rather than at an oscillator level.

Which one to use

A range-bound stretch of price crossing thresholds on both tools.
A range fires both, constantly. Illustrative chart - not real market data.

Run the stochastic when you want a fixed frame of reference. A capped reading means the same shape of thing on any instrument, and a threshold learned once travels with you.

A slow-moving stretch of price extending away from its mean.
Extension is what the uncapped reading is for. Illustrative chart - not real market data.

Run the commodity channel index when extension is your question. How far price has moved from its own average, scaled to what that market normally does, is a genuine measurement the other cannot make.

Run the uncapped one when you keep getting caught fading trends. A reading that keeps rising is harder to mistake for exhaustion than one sitting motionless at a ceiling.

And run one, not both. They read the same bars, so the pair produces one observation with two different axes attached to it.

Why a ceiling changes the psychology

A candlestick chart annotated with the round-trip cost of a switch.
Every threshold cross traded costs a round trip. Illustrative chart - not real market data.

Because a pinned reading looks like a conclusion. It has nowhere further to go, which reads as a market with nowhere further to go, and those are not the same statement.

A section of a price series drawn without volume context.
And a thin market inflates the unbounded reading badly. Illustrative chart - not real market data.

And because an extending reading keeps telling you it is still going. That is uncomfortable and it is accurate, which is the more useful combination of the two.

What to settle before either is useful

Say what an extreme means to you. Exhaustion or strength — the two readings lead to opposite trades, and neither indicator has an opinion about which is right.

Choose thresholds from your own instrument. On the uncapped one especially, the conventional levels came from somewhere else and may be crossed several times a week on your market.

Count how often the rule fires. On this site’s shared series direction runs average 2.01 bars, so a threshold rule triggers far more often than the market actually turns.

And leave the lengths alone once set. Both tools have parameters that reshape the output, and adjusting them after a losing run produces a fresh set of signals and no usable record of the old ones.

The original data

Of the 24,971 unique videos in research/search-study-corpus.jsonl, no title compares these two directly — this pair is constructed from two subjects the corpus covers separately. Separately, the commodity channel index appears in 448 titles at a median of 9,318 across 344 channels, and the stochastic in 184 at a median of 11,915 across 136. The counts come from site/corpus_count.py.

A candlestick series with several gaps, the largest of them marked.
A gap sends an unbounded reading a long way. Illustrative chart - not real market data.

448 videos on one at 9,318 and 184 on the other at 11,915. Two and a half times the coverage and a slightly smaller audience per video — both are well established, and the pair is unusually evenly matched compared with most comparisons measured here.

A stretch of price bars cut short at a decision point.
One pinned at its ceiling, one still climbing. Illustrative chart - not real market data.

The answer to the question on that chart is that the climbing one is more informative. A pinned reading stopped updating; an extending one is still reporting — and what it is reporting is that the move has not finished.

When it fails

The failure is fading a pinned bounded reading in a trend, and the display makes it look inevitable. The oscillator sits at its ceiling day after day, which reads as an extreme that must resolve. It does not have to resolve — the reading is simply out of room, and the market can keep moving indefinitely while the number stays where it is. Positions taken against that move are added to as the reading refuses to fall, and the refusal is the ceiling rather than the market.

The second failure is carrying thresholds between instruments. The uncapped scale differs.

A third is running both for confirmation. They read the same bars.

A fourth is treating either as a reversal signal. Both describe recent bars.

A fifth is tuning lengths after losses. That is fitting.

And a sixth is expecting either to lead price. Both are computed after the close.

Stochastic covers position within a range. The commodity channel index covers distance from a mean. And the relative strength index is the third oscillator these two are usually shown beside.

What I actually do

What I find useful about the uncapped one is that it cannot pretend a strong move has ended. A bounded oscillator sits at its ceiling looking like a signal for weeks. The other keeps climbing, which is at least an honest picture of a move that keeps going.

— Michael Whitman

This page is educational, not financial advice. Test every idea on your own charts before risking money.