Stochastic Oscillator: How to Read %K and %D
The stochastic oscillator answers a simple question: where did today's close land within the recent trading range? If a stock closes near the top of its two-week range, the stochastic reading is high. If it closes near the bottom, the reading is low. It is plotted on a scale from 0 to 100, like RSI, but it measures something slightly different.
The indicator is generally credited to George Lane, who popularized it in the 1950s. The idea behind it is that in uptrends, prices tend to close near their highs, and in downtrends, near their lows.
The two lines: %K and %D
- %K is the main line. It shows where the latest close sits within the high-low range of the lookback period.
- %D is a 3-period simple moving average of %K. It acts as a signal line, similar to MACD's signal line.
How it is calculated
%K = (Close - Lowest low) / (Highest high - Lowest low) x 100
%D = 3-period average of %K
The lookback period is usually 14. Lowest low means the lowest intraday low over the last 14 periods, and highest high means the highest intraday high.
Worked example
Over the last 14 days, a stock's highest high was $60 and its lowest low was $50. Today it closes at $58.
- Range: 60 − 50 = $10
- Close above the low: 58 − 50 = $8
- %K = 8 / 10 × 100 = 80
The stock closed 80% of the way up its two-week range.
Suppose the last three %K readings were 72, 76 and 80. Then:
- %D = (72 + 76 + 80) / 3 = 76
%K is above %D, which tells you the close-within-range reading has been rising.
Now the next day, the stock closes at $55 and the range stays the same. %K = (55 − 50) / 10 × 100 = 50. A $3 drop moved stochastic from 80 to 50. That sensitivity is the stochastic's defining trait. It reacts far faster than RSI to a single day's move.
Fast vs slow stochastic
You will see two versions:
- Fast stochastic: %K is the raw calculation above, and %D is its 3-period average. Very jumpy.
- Slow stochastic: %K is first smoothed with a 3-period average (so the slow %K is the fast %D), then %D is a 3-period average of that. This is the version most charting tools show by default, usually written as 14, 3, 3.
Most traders use the slow version because the fast one changes direction too often to be practical.
How to read the stochastic
| Reading | Label | Meaning |
|---|---|---|
| Above 80 | Overbought | Close near the top of the recent range |
| 20 to 80 | Neutral | Close in the middle of the range |
| Below 20 | Oversold | Close near the bottom of the recent range |
Note the levels are 80 and 20, not RSI's 70 and 30, because stochastic reaches extremes more easily.
Crossovers
When %K crosses above %D, momentum within the range is turning up. When it crosses below, momentum is turning down. Crossovers that happen in the extreme zones get the most attention: a bullish cross below 20 or a bearish cross above 80.
Divergence
Like other oscillators, stochastic can diverge from price. If price makes a lower low but stochastic makes a higher low, selling momentum is fading. See RSI divergence for how to spot and confirm divergence in general.
How traders use it
In ranges
Stochastic is most at home in sideways markets, where price really does tend to bounce between highs and lows. A mean reversion approach might be:
- Confirm a range with flat moving averages.
- Wait for stochastic to drop below 20 near support.
- Enter when %K crosses back above %D and rises out of the oversold zone.
- Stop below support; target the top of the range.
In trends
In trending markets, using stochastic for reversals is risky. Instead, trend traders flip the logic: in an uptrend, they treat a dip in stochastic toward 20 as a pullback and look for the bullish cross back up as a possible entry in the direction of the trend. They ignore overbought readings entirely, because those are normal in a strong uptrend.
Common mistakes
Selling every reading above 80. A stock that keeps closing near its highs will keep stochastic above 80. That is a sign of strength.
Using the fast version. The raw %K flips so often that it creates far more signals than anyone can sensibly trade.
Forgetting that range matters. If the 14-day range is very narrow, a tiny price change can swing stochastic from 20 to 80. Check the actual dollar range.
Ignoring the trend. As with all oscillators, the trend decides which signals are worth taking.
Limitations
Stochastic is fast and therefore noisy. It ignores volume. It can stay at extremes for long stretches in trends. And because it depends on the high-low range, a single unusual spike can distort readings for the whole 14-day lookback until that day drops out.
How it fits with other indicators
Stochastic and RSI are both momentum oscillators, so using both rarely adds much. Many traders pick one. Stochastic tends to suit short-term range trading, while RSI is often preferred for broader swing analysis. Williams %R is closely related to stochastic; it is essentially the same calculation inverted onto a 0 to −100 scale.
Stupid Simple Trader's signal does not use stochastic. Its momentum input is a 14-period RSI, explained in what is RSI, alongside MACD.
Try it
Look at a stock on the oversold stocks screen and check where it closed within its recent two-week range. You will often find stochastic and RSI telling a similar story, with stochastic reaching its extremes first.