Quick answer

The stochastic oscillator is a momentum oscillator that measures where the current closing price sits within the high-to-low range of a recent period, expressed from 0 to 100. A reading near 100 means price closed near the top of its recent range; a reading near 0 means it closed near the bottom. Levels above 80 are commonly called overbought and below 20 oversold.

The indicator is built on a simple observation: in rising markets, closes tend to cluster near the highs, and in falling markets near the lows. When that pattern starts to change, momentum may be shifting. Like any oscillator, it describes recent behavior and does not predict price.

How the stochastic oscillator is calculated

The indicator was popularized by George Lane in the 1950s. It uses two lines.

The %K line

%K compares the latest close with the range of the lookback period, usually 14 candles:

%K = (current close minus lowest low) divided by (highest high minus lowest low), multiplied by 100.

Example with hypothetical numbers: over the last 14 daily candles, the highest high is 110 and the lowest low is 90, so the range is 20. Today's close is 105. The close sits 15 points above the low, and 15 divided by 20 is 0.75, so %K is 75. Price is in the upper part of its recent range but not yet above 80.

The %D line

%D is a moving average of %K, typically over 3 periods. It acts as a signal line: smoother and slower than %K.

Fast, slow and full versions

The raw formula above is the fast stochastic, which can be jumpy. Most charting platforms default to the slow stochastic, where %K is first smoothed with a 3-period average and %D is a 3-period average of that smoothed line. This is the common 14, 3, 3 setting. The full stochastic lets you adjust all three numbers.

How to read %K and %D

Traders usually look at four things:

  • Zone. Above 80 means closes are near the top of the range; below 20 means near the bottom. The middle area around 50 is neutral.

  • Stochastic crossover. When %K crosses above %D, momentum is turning up; when %K crosses below %D, it is turning down. Crossovers inside the 80 or 20 zones are considered more meaningful than those in the middle.

  • Exit from an extreme. Many traders wait for the lines to move back below 80 or above 20, rather than acting the moment they enter the zone.

  • Divergence. If price makes a lower low while the stochastic makes a higher low, selling momentum may be fading. The bearish version appears at highs.

The %K %D pair works much like the MACD and signal line, but on a bounded scale. If you know the MACD indicator, the crossover logic will feel familiar.

Two columns: a sideways bar chart with a low-reading gauge marked as a working stochastic signal, and a rising chart with a pinned high gauge marked with a warning

Market context decides whether stochastic extremes are useful.

In a sideways market, price swings between support and resistance and the oscillator swings between 20 and 80 with it. Here, a bullish crossover below 20 near support, or a bearish crossover above 80 near resistance, can line up with turning points. This is why the indicator is popular in range trading strategies.

In a strong trend, closes stay near the highs (or lows) candle after candle, so the oscillator can stay above 80 for a long time. Treating every overbought reading as a sell signal in an uptrend leads to repeated losses. In trends, many traders only take signals in the direction of the trend: in an uptrend they wait for the stochastic to dip toward 20 during a pullback and then cross back up.

A practical filter is to check the trend first, for example with a moving average or market structure, and then use the stochastic only for timing.

Stochastic RSI: what changes

Stochastic RSI applies the stochastic formula to RSI values instead of price. It asks: where is the current RSI within its own recent high-low range? The result again runs from 0 to 1 or 0 to 100.

Because it is an indicator of an indicator, stochastic RSI is much more sensitive than either tool alone. It reaches extremes often and can flip from one side to the other within a few candles. Some short-term traders like it for early timing; others find it too noisy. If you use it, understand the base indicator first, explained in our guide to the RSI indicator.

A simple checklist for stochastic signals

  1. Identify the regime. Is the market trending or ranging on your chosen timeframe?

  2. Mark the levels. Find nearby support and resistance before looking at the oscillator.

  3. Wait for a crossover in the right zone, ideally in the direction of the higher-timeframe trend.

  4. Look for confirmation from price, such as a reversal candle or a break of a minor swing high or low.

  5. Define risk first. Place a stop beyond the recent swing and size the position so a loss stays small.

Common mistakes and failure cases

  • Fading strong trends just because the reading is above 80 or below 20.

  • Acting on every crossover. On low timeframes the lines cross constantly, and most crossovers carry little information.

  • Over-tuning settings to fit past data, which rarely holds up on new data.

  • Ignoring gaps and thin markets. Illiquid tokens with erratic wicks distort the high-low range and the readings.

  • Using it alone. No indicator or pattern is reliable on its own. Combine the stochastic oscillator with structure, volume and clear risk rules, and remember that crypto markets are volatile.

For mean-reversion setups where the stochastic is often used, see the mean reversion strategy in crypto.

FAQ

What are the best stochastic oscillator settings?

The common default is 14, 3, 3 with levels at 80 and 20. Shorter settings react faster and give more false signals; longer settings are smoother and slower. Test any change before using it.

What is the difference between stochastic and RSI?

RSI compares the size of recent gains and losses. The stochastic compares the latest close with the recent high-low range. Both are momentum oscillators, but the stochastic usually reacts faster.

Is a %K cross above %D a buy signal?

It shows momentum turning up, but on its own it is not a reliable entry. It is more meaningful below 20, in the direction of the main trend and with confirmation from price.

Can the stochastic stay overbought for long?

Yes. In a strong uptrend, closes stay near the top of the range, so the oscillator can remain above 80 for many candles while price keeps rising.

Which timeframe works best?

The formula works on any timeframe. Higher timeframes give fewer and generally more meaningful signals, while very short timeframes produce many crossovers that are mostly noise.