Technical IndicatorsBeginner

Stochastic Oscillator

How the stochastic oscillator (%K and %D) is calculated, what 80 and 20 mean, why overbought is not a sell signal in a trend, and how crossovers are used.

Library categories

What it means

%K shows where the close sits within the high-low range of the last n candles: %K = (close − lowest low) / (highest high − lowest low) × 100. %D is a short moving average of %K (usually 3).

Readings above 80 are called overbought, below 20 oversold.

Why traders use it

In a range, closes near the top of recent prices tend to precede pullbacks. In a trend, the stochastic can stay above 80 for a long time, so it is used with structure rather than alone.

Chart examples

Stochastic swings between 80 and 20

OverboughtOversoldStochastic (5, 3)8020
%K (solid) and %D (dashed) are calculated from the drawn candles. They peak above 80 at the high and dip below 20 at the low.Schematic diagrams drawn to explain the idea; they are not market data.

How to identify it objectively

  • 1Common settings: 14, 3, 3 (this drawing uses 5, 3 to show swings).
  • 2%K crossing below %D above 80: momentum turning down.
  • 3%K crossing above %D below 20: momentum turning up.
  • 4Use only in the direction of the trend or in ranges.

Bullish use

  • 1Uptrend or range support.
  • 2Stochastic dips below 20 and %K crosses above %D.
  • 3Enter on a bullish close; stop below the swing low.

Bearish use

  • 1Downtrend or range resistance.
  • 2Stochastic rises above 80 and %K crosses below %D.
  • 3Enter on a bearish close; stop above the swing high.

What confirms it

  • The cross happens at a price level.
  • Trend agrees.

What invalidates it

  • Price keeps trending while the oscillator stays extreme.

How a hypothetical setup is built

Entry

On the bullish cross from below 20, confirmed by a price close.

Stop

Below the swing low.

Target

The range high or prior swing.

A hypothetical illustration of how the concept is turned into a plan, not a recommendation. Practise it on a paper account first.

Historical testing

Not tested on The Tradeskill.

Limitations: when it fails

  • Overbought can stay overbought.
  • Many crosses in choppy markets.
  • Settings change signals a lot.

Knowledge check

Pick an answer to see the explanation. Nothing is saved.

A %K of 90 means…

1. A %K of 90 means…

%D is…

2. %D is…

In a strong uptrend, readings above 80 are…

3. In a strong uptrend, readings above 80 are…

Practise it risk-free

Open the free chart, use replay to go back in time and look for this concept candle by candle with $20,000 in virtual money.