Stochastic oscillator — how to read it in practice

Educational purposes only — not investment advice. 74–89% of retail accounts lose money.

The stochastic oscillator reads 95, and the first thought is always the same: expensive, time to sell. Three days later the pair is two hundred pips higher and the indicator is still parked at 95. That scenario catches everyone who treats the overbought zone as a ready-made sell order rather than as information about where the last close landed inside the range of the past dozen-or-so candles. Below I explain what the %K and %D lines actually measure, which three signals of the indicator are worth reading, and why stochastic copes better in a range than in a trend.

What does the stochastic oscillator actually measure?

The indicator was popularised in the 1950s by George C. Lane, an analyst working in Chicago. The starting point was a plain market observation: in an uptrend, closing prices hug the upper part of the daily range; in a downtrend, the lower part. Stochastic turns that observation into a number between zero and one hundred.

  • %K, the fast line — the current close minus the lowest low of the last fourteen periods, divided by the difference between the highest high and the lowest low over those same fourteen periods, all multiplied by one hundred.
  • %D, the signal line — a three-period simple moving average of %K. Its only job is to smooth the jittery fast line.
  • The scale — 0 to 100. A reading of 100 means the candle closed exactly at the top of the range; a reading of 0, exactly at the bottom.
  • Default settings — (14, 3, 3): fourteen periods of range and three periods of smoothing each. On higher timeframes there is no reason to change them.

The whole interpretation comes down to one question: where inside the fourteen-period range did the last close fall? Above 80 we speak of the overbought zone, below 20 of the oversold zone. It is worth fixing straight away that both terms mislead: the indicator does not judge whether the market is expensive or cheap, only the relative position of price. The calculation mechanics step by step, together with the fast, slow and full variants, are taken apart in the piece on the mechanics of the %K and %D lines.

Three signals worth reading

A crossover inside an extreme zone

A buy signal appears when %K crosses above %D and this happens below 20. A sell signal appears when %K crosses below %D above 80. The location condition matters as much as the crossover itself: the lines cross a dozen or more times a month, but crossovers in the middle of the scale carry no information at all and are best ignored.

Divergence with price

This is the strongest of the three signals and the only one that keeps its meaning inside a trend. Bullish divergence: price prints a lower low while the oscillator prints a higher low — the downmove is running out of impetus and the odds of a turn upward improve. Bearish divergence is the mirror image: a new high on the chart, a lower high on the indicator. The reading rule is identical to divergence on any other oscillator, so if you recognise it on RSI you will recognise it on stochastic immediately.

Bounces off the 80 and 20 zones in a range

This use only makes sense when the market has no direction — the practical filter is a reading of the trend-strength indicator, ADX below 25. In that environment price rebounds off the edges of the channel and stochastic confirms that the move is spent: a touch of the upper zone argues for a short position, the lower zone for a long one, and the natural target is the middle of the range. More on that environment itself sits in the description of trading a consolidation.

Stochastic or RSI — which oscillator should you pick?

Both sit on a 0 to 100 scale and both measure impetus, but they compute it differently. RSI compares the average size of gains with the average size of losses, so it reacts more slowly and raises fewer false alarms. Stochastic looks at where the close sits inside the range, which makes it faster — and more nervous.

The comparison in brief
RSIA calmer line with less noise, better suited to judging the direction and strength of a trend
StochasticReacts earlier and more sharply, which suits a market without a clear direction
Number of signalsStochastic produces noticeably more of them than RSI, but proportionally more turn out to be false
Default settingsFourteen periods for RSI, (14, 3, 3) for stochastic — on both indicators the standard is quite enough for learning
In practiceThere is no need to choose: RSI serves well for judging direction, stochastic for timing the entry

The most common mistake — selling simply because the indicator shows 85

This is the error that costs beginners the most. In a strong uptrend stochastic can hold above 80 for five, ten, sometimes a dozen-plus sessions in a row, because every successive close lands in the upper part of the range — and that is exactly what a healthy trend looks like. A short position opened on that reading alone is set against the market, and the stop loss is taken out by nothing more than the continuation of the move.

The rule that protects against this most effectively fits in one sentence: treat the extreme zones as a signal only when the market is standing still. Once the trend is clear, stochastic has exactly one remaining use — divergence. Every other reading is then background, not a reason to open a trade.

How to build a signal so that it means something

None of the three signals is a standalone system. The four arrangements below differ in market environment, but each is built the same way: context first, then the indicator, and confirmation in price last.

  1. A range-bound market. With a low trend-strength reading we trade bounces off the edges of the range: the upper zone argues for a short, the lower zone for a long, and profit is taken around the middle of the channel.
  2. A reversal on divergence. The gap between successive price highs and oscillator highs opens the case, but the position is taken only after a reversal candle closes — an engulfing pattern, or a candle with a long wick pointing in the direction of the move.
  3. A continuation on hidden divergence. Price prints a higher low while the oscillator prints a lower low: this arrangement runs with the trend and is used to add to a position after a pullback, not to hunt for the top.
  4. Two timeframes at once. You set the direction on the daily chart, look for the stochastic signal on the four-hour, and time the entry on the hourly. Signals that contradict the higher timeframe are rejected without discussion.

What to do tomorrow

Stochastic is a good supporting tool and a poor standalone system. If you are only starting with oscillators, begin with RSI and add stochastic once you read divergences comfortably; for the wider picture, see the technical analysis section on ForexMechanics. The three steps below will take you an hour at most.

  1. Add stochastic with the (14, 3, 3) settings to the chart of the pair you follow most often and scroll through a year of history, marking every stretch in which the indicator held above 80 or below 20 for longer than three candles — it is the fastest way to stop reading the extreme zones as ready-made orders.
  2. Put a trend-strength indicator on the same chart and write one sentence into your trading plan: at what reading you allow yourself to trade bounces off the extreme zones, and from what reading divergence is all you have left. Without that boundary set in advance, the market will suggest a convenient answer every time.
  3. Find three examples of divergence between price and the oscillator in the chart history and check what happened over the ten candles that followed each of them. Write the results into a spreadsheet — that will be your own assessment of how useful the signal is on the instrument you trade, rather than one borrowed from a guide.
Jarosław Wasiński
About the author

Jarosław Wasiński

Editor-in-chief at MyBank.pl · Financial and market analyst

Independent analyst and practitioner with 20+ years in finance. Founder and editor-in-chief of MyBank.pl, running since 2004. Fundamental analysis of FX and macro markets since 2007.

Sources & bibliography

  1. George Lane Stochastic Oscillator (1950s creator) · oryginalna metodologia www.investopedia.com ↗
  2. Investopedia Stochastic Oscillator · klasyczna definicja www.investopedia.com ↗
  3. BabyPips Stochastic Tutorial · edukacja www.babypips.com ↗

Frequently asked

What are the %K and %D lines?

The oscillator is made of two lines. %K, the fast line, comes from a simple calculation: from the current close we subtract the lowest low of the last fourteen periods, divide that by the difference between the highest high and the lowest low over those same fourteen periods, and multiply by one hundred. The result falls between 0 and 100 and says where inside the recent range the last close landed. %D, the signal line, is a three-period simple moving average of %K — its role is to smooth the jittery fast line. The default settings (14, 3, 3) mean fourteen periods of range plus three periods of smoothing each, and they are quite enough for learning the indicator.

Which is better — stochastic or RSI?

Both indicators sit on a 0 to 100 scale and both measure the impetus of a move, but they compute it in completely different ways. RSI compares the average size of gains with the average size of losses, so its line is calmer and raises a false alarm less often. The stochastic oscillator looks only at where the close sits inside the recent range, which makes it react earlier but also produces more signals, proportionally more of which miss. In practice there is no need to choose: RSI serves well for judging the direction and strength of a move, and stochastic for timing the entry once that direction is settled.

Why does stochastic work less well in a trend?

Because in a strong trend successive closes naturally land in the upper part of the range, and the indicator can hold above 80 for many sessions in a row without announcing any reversal at all. Selling purely on a reading from an extreme zone sets the position against the market, and the stop loss is taken out by the ordinary continuation of the move. In a market without a clear direction the opposite is true: price rebounds off the edges of the range, so the 80 and 20 zones really do mark where a move is spent. Hence the practical rule — read the extreme zones as a signal only when the trend-strength reading is low, and in a clear trend leave yourself divergence alone.

Which stochastic setups work best?

Three arrangements work in practice. The first is bullish divergence: price prints a lower low while the oscillator prints a higher low, which signals that the downmove is weakening. The second is a crossover inside the oversold zone, that is %K pushing above %D below 20 — a signal that only has value when the market is not in a clear trend. The third is hidden divergence, where price prints a higher low while the oscillator prints a lower low; this one is traded with the direction of the trend, after a pullback. None of them is a standalone system — each needs a trend filter, proximity to a meaningful level and confirmation from a candle.

Go deeper · the complete guide