The stochastic oscillator is a momentum indicator that compares where a market has closed with its recent trading range. It was developed by George Lane in the 1950s and remains one of the most popular tools on trading platforms. Its basic idea is that in a healthy uptrend, prices tend to close near the top of their recent range, and in a downtrend they tend to close near the bottom. When that pattern starts to change, momentum may be fading.

How it is calculated

The stochastic oscillator produces two lines, usually called %K and %D, which move between 0 and 100.

The %K line asks a simple question: where did the latest close sit within the high-to-low range of the last 14 periods? If the market closed at the very top of that range, %K is 100. If it closed at the very bottom, %K is 0. A reading of 50 means the close was halfway between the two.

The %D line is a moving average of %K, typically over three periods. It smooths out the noise and acts as a signal line. Many platforms default to the “slow” stochastic, which applies extra smoothing to make the lines less jumpy.

Overbought and oversold

Readings above 80 are commonly described as overbought, and readings below 20 as oversold. This is where beginners often run into trouble. Overbought does not mean a market must fall, and oversold does not mean it must rise. In a strong trend, the stochastic can stay above 80 or below 20 for a long time while price keeps moving in the same direction.

A better way to think about it is that an overbought reading shows the market is closing near the top of its recent range. That is a sign of strength, not weakness, until something changes. Our guide to why a record high does not automatically mean overbought explores this trap in more detail.

Common ways traders use it

Crossovers. When %K crosses above %D, some traders read it as a sign of improving momentum, particularly if it happens below 20. A cross below %D above 80 can suggest fading momentum. On their own, crossovers generate a lot of false signals, so they are usually combined with other evidence.

Divergence. If price makes a new high but the stochastic makes a lower high, momentum is not confirming the move. That divergence can be an early warning that a trend is tiring. The same logic applies in reverse at lows.

Trend filtering. Many traders only take stochastic signals in the direction of the larger trend. In an uptrend, they look for the indicator to dip into oversold territory during a pullback and then turn up, rather than trying to sell every overbought reading.

Stochastic versus RSI

The stochastic is often compared with the RSI. Both are momentum oscillators with overbought and oversold zones, but they measure different things. RSI compares the size of recent gains with recent losses. The stochastic compares the close with the recent range. The stochastic tends to be more sensitive and reacts faster, which can be helpful in ranging markets but noisier in trending ones.

There is little to be gained from putting both on the same chart and waiting for them to agree, because they are built from the same price data and often say similar things. Choosing one and learning it well is usually more useful.

Where it works best

The stochastic tends to be most helpful in range-bound markets, where prices swing between support and resistance. In those conditions, moves into overbought or oversold territory near the edges of the range can line up neatly with turning points. In strongly trending markets, it is more useful for timing entries on pullbacks than for calling tops or bottoms.

Common mistakes

The biggest mistake is treating every move above 80 as a reason to sell. The second is changing the settings repeatedly until the indicator appears to fit past price action perfectly, which usually means it will fit the future poorly. The third is forgetting that the stochastic only describes past prices. It has no knowledge of upcoming news or data, which can overwhelm any momentum signal in seconds.

Bringing it together

The stochastic oscillator measures where a market closes relative to its recent range, giving a quick read on momentum. It is most useful in ranges and for timing entries within trends, and least useful as a standalone reason to bet against a strong move. Treat it as context, not a command.

Indicators are only as good as the trader using them, and if you would like to see how your technical and risk skills stack up, our free trader assessment is a straightforward place to begin.

Sign up to Our Mailing List

Join our mailing list to gain access to the latest news & research.

    Samuel & Co. In The News