The stochastic oscillator is one of the oldest momentum tools on the chart, and one of the most literal. It does not try to be clever: it measures where the current close sits between the highest high and the lowest low of a chosen window, and shows that as a percentage. That simplicity is why it is worth understanding properly.
What the stochastic measures
The calculation is straightforward. Over the last N periods, take the highest high and the lowest low. The %K line is how far the close is up that range, expressed from 0 to 100:
%K = (close − lowest low) ÷ (highest high − lowest low) × 100
A reading near 100 means the close is at the top of the recent range; a reading near 0 means it is at the bottom. A second line, %D, is a short moving average of %K, which smooths the signal and creates the crosses traders watch. This makes the stochastic a range indicator — it is most useful when a market is moving within a range, and can stay pinned at an extreme when a strong trend runs.
%K and %D (figure)
%K is the faster line, drawn as the raw reading. %D is the slower line, a 3-period average of %K by default. When %K and %D cross, one is overtaking the other — the faster line changing the short-term balance.
The 80 / 20 zones
Readings above 80 are called overbought and below 20 oversold, and the same warning that applies to RSI applies here: these are descriptions, not instructions. Above 80 simply means the close has been near the top of its recent range — which is exactly what a strong uptrend looks like. Below 20 is what a strong downtrend looks like.
The zones become genuinely useful when they coincide with a level: a dip into the lower zone right at support, or a push into the upper zone into resistance. The zone tells you the short-term range is stretched; the level tells you whether that matters.
Crosses in the right region (figure)
A cross is %K passing through %D. A bullish cross is %K crossing up through %D; a bearish cross is the reverse. Crosses happen constantly, and most are meaningless because they occur mid-range where nothing is stretched.
The ones worth attention are zonal: a bullish cross while both lines are in or rising out of the lower zone, or a bearish cross while both are in or falling from the upper zone. That is where the range reading and a turn have the best chance of meaning something.
Stochastic vs RSI
Both are bounded momentum oscillators on a 0-100 scale, and both have overbought/oversold zones, so they are often confused. The difference is what they measure. RSI compares the size of gains to losses; the stochastic compares the close to the recent range. The stochastic is faster and more prone to extremes, which makes it good for timing inside a range and noisy in a trend.
| Stochastic | RSI | |
|---|---|---|
| Measures | Close within the recent high-low range | Ratio of recent gains to losses |
| Speed | Faster, more extremes | Smoother, fewer extremes |
| Lines | Two: %K and %D, with crosses | One line |
| Zones | 80 / 20 | 70 / 30 |
| Best at | Timing turns inside a range | Gauging the balance of a move |
They pair well together, and each has its own article — see RSI explained and MACD explained.
Settings (14, 3, 3)
The classic trio of numbers controls the stochastic:
- 14 (length). How many periods define the high-low range. Shorter = twitchier; longer = calmer.
- 3 (%K smoothing). How much the raw %K is averaged. This is what turns a fast stochastic into a slow one — and the slow version is the one most traders actually use.
- 3 (%D). The smoothing applied to %K to produce the %D signal line.
Fast vs slow is the main choice. The fast stochastic reacts first but is noisy; the slow stochastic smooths %K once more and produces fewer, cleaner crosses at the cost of a little lag. When in doubt, start with the slow version.
Common mistakes
- Trading every cross. Mid-range crosses are noise — location is what matters.
- Fading extremes in a trend. The stochastic can stay pinned; that is strength, not a reversal.
- Ignoring the range context. The indicator is a range tool and behaves poorly in a one-way market.
- Using it for direction. It measures position in a range, not the trend.
- Stacking too many averages. Over-smoothing removes the speed that is the stochastic's whole point.
How CPE Trade Pro uses the stochastic
In the app, stochastic crosses and divergence are read as part of the Momentum part of the 0-10 quality score, alongside RSI and the MACD histogram. That part is worth up to 2 points. Using several momentum measures rather than one stops a single oscillator from deciding the verdict, and it is why a zonal cross that agrees with RSI and MACD carries more weight than a cross on its own.
The full score is built from five measurable parts — Clarity, Trend, Momentum, Volume and Levels — each capped at 2 points, summing to a maximum of 10. To be exact about the limits: this score is not a win rate, not a probability of profit and not an audited performance record. It summarises how many independent checks agreed, and the stochastic is one of the momentum checks.
See how the parts fit together in how CPE Trade Pro analyses a chart.
Want momentum read as a whole, not one line at a time? Download CPE Trade Pro free and watch the oscillators combine into a graded signal.
Educational content only. Nothing here is financial advice. CPE Trade Pro is analysis software, not a broker, exchange or fund manager — it never holds your funds and never asks for a fee to withdraw. The 0-10 quality score is not a win rate, a probability of profit or an audited performance record. Trading involves risk, and past results do not guarantee future performance.