Stochastic Oscillator

A momentum indicator that compares the closing price to its range over a set period, identifying overbought and oversold conditions with fast %K and slow %D crossovers.

Momentum
PRICE STOCHASTIC (14,3,3) 80 50 20 SELL BUY OVERBOUGHT OVERSOLD %K (Fast) %D (Slow) %K peaks in overbought zone %K bottoms in oversold zone

Bullish Signals

Bearish Signals

What Is the Stochastic Oscillator?

The Stochastic Oscillator is a momentum indicator developed by George Lane in the late 1950s. Its core principle is simple but powerful: in an uptrend, closing prices tend to close near the high of their range, and in a downtrend, they tend to close near the low. By measuring where the current close sits relative to the recent high-low range, it gauges the momentum behind price movements.

The indicator oscillates between 0 and 100 and consists of two lines: %K (the fast line) and %D (the slow signal line). Readings above 80 indicate the price is closing near the top of its recent range (overbought), while readings below 20 indicate it is closing near the bottom (oversold). These zones, combined with crossover signals between %K and %D, form the basis for trading decisions.

How the Stochastic Is Calculated

The raw Stochastic (%K) measures the position of the current close relative to the highest high and lowest low over the lookback period.

%K = ((Close - Lowest Low) / (Highest High - Lowest Low)) x 100

If the stock's 14-period high is $50, its 14-period low is $40, and today's close is $48, then %K = ((48 - 40) / (50 - 40)) x 100 = 80. This means the close is at the 80th percentile of the recent range.

%D = 3-period SMA of %K

The %D line smooths out the fast %K to act as a signal line. The crossover between %K and %D generates the actual buy and sell signals, just as MACD uses its signal line. %D reacts more slowly and filters out noise from the raw %K.

Fast vs Slow Stochastic

There are two versions of the Stochastic Oscillator, and understanding the difference is important for selecting the right one for your trading style.

The Fast Stochastic uses the raw %K calculation and a 3-period SMA of %K as %D. It is very responsive to price changes but produces noisy, whipsaw-prone signals. Most traders find the Fast Stochastic too erratic for reliable decision-making, especially on lower timeframes.

The Slow Stochastic takes the Fast %D (the 3-period SMA of raw %K) and uses it as the new %K. It then applies another 3-period SMA to create the Slow %D. This double-smoothing process produces a much cleaner indicator that still captures meaningful momentum shifts while filtering out random noise. The Slow Stochastic is the version used by the vast majority of traders and is the default on most charting platforms. When someone says "Stochastic 14,3,3," they typically mean the Slow Stochastic.

Overbought and Oversold Zones

The traditional overbought threshold is 80 and the oversold threshold is 20. When the Stochastic rises above 80, the price is consistently closing near the top of its range, which suggests buying momentum may be becoming exhausted. When it falls below 20, the price is closing near the bottom of its range, suggesting selling may be reaching capitulation.

The critical mistake traders make is treating these zones as automatic signals. Overbought does not mean sell, and oversold does not mean buy. In a strong uptrend, the Stochastic can remain above 80 for weeks. In a strong downtrend, it can stay below 20 for an extended period. The correct approach is to wait for a crossover within the zone: %K crossing below %D while both are above 80, or %K crossing above %D while both are below 20.

Some traders tighten the thresholds to 85/15 for stronger signals or widen them to 75/25 for more frequent opportunities. The optimal levels depend on the volatility of the asset and the timeframe being traded.

Crossover Signal Strategy

The most reliable Stochastic signals occur when %K crosses %D inside an overbought or oversold zone.

Bullish crossover: %K crosses above %D when both lines are below 20. This indicates that momentum is shifting from bearish to bullish while the price is at the lower end of its range. The signal is strongest when %K has already started rising and the crossover occurs as the lines move back toward the 20 level and then above it.

Bearish crossover: %K crosses below %D when both lines are above 80. This suggests that momentum is reversing from bullish to bearish near the top of the range. As shown in the chart above, when %K rolled over and crossed below %D in the overbought zone, it preceded a significant decline.

Crossovers that occur in the neutral zone between 20 and 80 are less significant and prone to whipsaws, especially in range-bound markets. Many trading systems ignore mid-range crossovers entirely and only act on signals generated within the extreme zones.

Stochastic Divergence

Divergence between price and the Stochastic Oscillator warns of weakening momentum and potential reversals, similar to RSI divergence.

Bullish divergence: Price makes a lower low, but the Stochastic makes a higher low. Despite new price lows, the Stochastic is indicating that closing prices are not as depressed relative to the range as they were at the previous low. Selling pressure is fading beneath the surface.

Bearish divergence: Price makes a higher high, but the Stochastic makes a lower high. Although price pushed higher, the closes are no longer happening at the top of the range the way they did at the previous peak. Buying enthusiasm is waning.

Stochastic divergence tends to resolve faster than RSI divergence because the Stochastic is more sensitive to recent price changes. Confirm divergence signals with a crossover before entering a trade.

Common Mistakes

Selling every overbought reading. Overbought in a strong trend means momentum is strong, not that a reversal is imminent. Always wait for a crossover within the zone, or better yet, wait for the Stochastic to exit the zone (cross back below 80) before acting.

Using the Fast Stochastic without smoothing. The raw Fast Stochastic produces too many signals and too much noise for most traders. Switch to the Slow Stochastic (14,3,3) for cleaner signals that are easier to act on.

Ignoring the timeframe. Stochastic signals on a 5-minute chart will produce frequent false signals. The indicator is most reliable on 4-hour, daily, and weekly charts. If you trade intraday, use the Stochastic as a filter rather than a primary signal generator.

Not combining with trend analysis. The Stochastic works best as a timing tool within an established trend. Use a moving average or trendline to determine the trend direction, then use the Stochastic to time entries on pullbacks: buy oversold in uptrends, sell overbought in downtrends.

Recommended Settings

Settings (%K, Smoothing, %D) Style Best For
14, 3, 3 (standard) Balanced Swing trading, daily charts, most assets
5, 3, 3 Fast Day trading, scalping, quick momentum shifts
21, 7, 7 Slow Position trading, weekly charts, fewer signals
9, 3, 3 Moderate 4-hour charts, forex, active swing trading

Frequently Asked Questions

The Stochastic Oscillator is a momentum indicator that compares a security's closing price to its price range over a specific period. It oscillates between 0 and 100, with readings above 80 indicating overbought conditions and below 20 indicating oversold conditions. It uses two lines: %K (the fast line tracking where the close is relative to the range) and %D (a smoothed average of %K that acts as a signal line).
%K is the main Stochastic line that measures where the current close falls relative to the high-low range over the lookback period. %D is a 3-period simple moving average of %K, serving as a signal line. Buy signals are generated when %K crosses above %D (especially below 20), and sell signals when %K crosses below %D (especially above 80). %D is slower and smoother, filtering out noise from %K.
The Fast Stochastic uses the raw %K and a 3-period SMA as %D, making it very responsive but also very noisy. The Slow Stochastic applies an extra layer of smoothing: it uses the Fast %D as its %K and applies another 3-period SMA for its %D. Most traders prefer the Slow Stochastic because it generates far fewer false signals while still capturing meaningful momentum shifts.
The standard setting is 14, 3, 3 which works well for swing trading on daily charts across most markets. For faster, more responsive signals in day trading, use 5, 3, 3 but expect more false signals. For position trading on weekly charts, use 21, 7, 7 for smoother, higher-quality signals. Start with the standard settings and adjust based on your timeframe and the asset's volatility.
Yes, just like RSI, the Stochastic Oscillator can remain above 80 for extended periods during strong uptrends, and below 20 during strong downtrends. This is a common source of frustration for new traders. The solution is to never sell solely because the reading is above 80. Instead, wait for %K to actually cross below %D while in the overbought zone, or for the indicator to exit the zone entirely by crossing back below 80.

Related Indicators

Related Tools & Guides

Part of our Technical Analysis Guide