Home / Wiki / S / Stochastic Oscillator

Stochastic Oscillator

Trading and SpeculationUpdated 13 Nov 2026

The stochastic oscillator is a momentum indicator that shows where an asset's most recent closing price sits within its highest and lowest prices over a chosen look-back period, usually 14 days or 14 bars on a chart. The result is expressed on a scale from 0 to 100: a reading near 100 means the price closed near the top of its recent range, and a reading near 0 means it closed near the bottom. Traders in shares, currencies, commodities and cryptocurrencies use it to judge whether momentum is strengthening or fading.

The indicator is generally credited to George Lane, a US trader and educator who promoted it from the 1950s onwards. It belongs to the family of oscillators in technical analysis, alongside the relative strength index (RSI) and the MACD, and is built into nearly every charting platform. Like other technical indicators, it is derived purely from past prices.

01

The stochastic oscillator in plain terms

Picture a lift in a building that has been moving between floors all week. The stochastic oscillator asks a simple question: today, did the lift stop near the top floor it has reached recently, or near the bottom? If it keeps finishing near the top, upward pressure is strong. If it starts finishing lower even while still climbing, the push may be running out.

Lane's idea was that in a rising market, prices tend to close near the day's highs, and in a falling market near the lows. When that pattern starts to break down, it can hint that the trend is tiring before the price itself turns. The oscillator turns this idea into a single number that is easy to plot beneath a price chart.

02

Formula and example

The main line, called %K, is calculated as:

%K=C−LnHn−Ln×100\%K = \frac{C - L_{n}}{H_{n} - L_{n}} \times 100
  • CC is the most recent closing price.
  • LnL_{n} is the lowest price over the last nn periods.
  • HnH_{n} is the highest price over the last nn periods.
  • nn is the look-back period, most often 14.

A second line, %D, is a moving average of %K, typically over three periods, and acts as a signal line:

%D=%K1+%K2+%K33\%D = \frac{\%K_{1} + \%K_{2} + \%K_{3}}{3}

For example, suppose that over the last 14 days a token traded as high as 50 dollars and as low as 40 dollars, and today it closed at 48 dollars. Then %K equals 48 minus 40, which is 8, divided by 50 minus 40, which is 10, giving 0.8. Multiplied by 100, %K is 80. If the previous two days' %K readings were 70 and 75, %D is 70 plus 75 plus 80, which is 225, divided by 3, giving 75.

03

Fast, slow and full versions

The basic calculation above is known as the fast stochastic. Because it reacts sharply to every price change, many traders prefer the slow stochastic, in which the fast %D becomes the new %K line and a further three-period average becomes the new %D. A full stochastic lets the user choose all three settings: the look-back period, the smoothing of %K and the length of %D. Shorter settings give more signals but more false ones; longer settings are steadier but slower to react. Traders often test settings through backtesting before using them.

04

How traders read the signals

  • Overbought and oversold. Readings above 80 are commonly treated as overbought and readings below 20 as oversold. These zones suggest the price is stretched, not that it must reverse.
  • Crossovers. When %K crosses above %D, some traders read it as a buy signal, and a cross below as a sell signal, especially when the cross happens inside the overbought or oversold zones.
  • Divergence. If the price makes a new high but the oscillator makes a lower high, momentum may be weakening. The opposite pattern at lows is called bullish divergence.
  • Trend confirmation. In a strong uptrend the oscillator can stay above 80 for long periods. Traders therefore often use it together with a moving average, a support level or a resistance level to judge the wider direction.

The indicator is especially popular among short-term traders who practise swing trading or day trading, and in ranging markets where prices move back and forth between clear highs and lows.

05

Limitations

The stochastic oscillator measures only where the close falls within a recent range, so it ignores trading volume and fundamental information. In strong trends it can give repeated overbought or oversold readings while prices keep moving in the same direction, leading traders who act on them into losses. Its signals depend heavily on the chosen settings and on the time frame of the chart, so two traders can draw opposite conclusions from the same market. In highly volatile crypto markets, sudden spikes can push the reading from one extreme to the other within hours. Academic research on whether technical indicators deliver profits after trading costs is mixed, and the efficient market hypothesis holds that patterns in past prices should offer little lasting advantage. As with any indicator, it is a tool for organizing price information rather than a forecast.

Last updated 13 Nov 2026