A complete guide to the stochastic oscillator: the %K and %D lines, overbought and oversold levels, crossovers and divergence, the best settings, and how to trade the stochastic in forex.
FX Terminal Research · 2026-07-12 · 4 min read
The stochastic oscillator is a momentum indicator that helps forex traders spot overbought and oversold conditions and anticipate reversals. Developed by George Lane in the 1950s, it compares a closing price to its recent trading range to reveal how strong momentum really is. This guide explains how the stochastic oscillator works, how to read the %K and %D lines, the best settings, and how to trade its signals.
The stochastic oscillator is a momentum indicator bounded between 0 and 100. Its core insight, in George Lane's words, is that momentum changes direction before price. Rather than tracking price itself, it measures where the current close sits within the recent high-low range.
The stochastic has two lines:
| Line | What it is | Role |
|---|---|---|
| %K | The main, faster line | Current position within the range |
| %D | A moving average of %K (usually 3-period) | The slower signal line |
Crossovers between %K and %D generate the indicator's classic trade signals, much like the MACD's line and signal-line crossovers.
The stochastic uses two key thresholds:
As with all oscillators, overbought does not automatically mean sell and oversold does not automatically mean buy. In a strong trend, the stochastic can remain pinned in overbought or oversold territory for a long time.
There are three common variants:
The standard setting is 14, 3, 3 (a 14-period lookback with 3-period smoothing), which balances responsiveness and reliability for most traders.
The classic signal: look for a buy when %K crosses above %D while both are below 20 (oversold), and a sell when %K crosses below %D while both are above 80 (overbought). This works best in ranging markets.
Divergence is a powerful reversal clue:
In a trend, use the stochastic to time pullback entries rather than to fade the move. In an uptrend, buy when the stochastic dips into oversold and turns back up — joining the trend at a discount instead of shorting into strength.
Both are bounded momentum oscillators, but they measure different things:
The stochastic is generally more sensitive and generates more signals, while the RSI is smoother. Some traders combine them, acting only when both agree.
What is the best setting for the stochastic oscillator? The default 14, 3, 3 slow stochastic is the most widely used and balances sensitivity with reliability. Shorter settings suit scalpers; longer settings suit swing traders.
What do overbought and oversold mean on the stochastic? A reading above 80 is overbought (momentum is high and a pullback may follow), while a reading below 20 is oversold (momentum is low and a bounce may follow). Neither is an automatic trade signal.
What is the difference between the stochastic and RSI? The stochastic measures where price closes within its recent range, while the RSI measures the magnitude of recent gains versus losses. The stochastic is generally more sensitive.
Can the stochastic oscillator be used in trends? Yes. In a trend it is best used to time pullback entries in the trend's direction, rather than to fade strong moves.
The stochastic oscillator reveals momentum by comparing the close to its recent range, plotting the fast %K and slow %D lines between 0 and 100. Use the default 14, 3, 3 slow stochastic, treat crossovers above 80 and below 20 as signals in ranges, watch for divergence, and time pullbacks in trends rather than fighting them. As always, confirm with the trend and price action before acting.
Add the stochastic oscillator, RSI and MACD to any pair in the FX Terminal charts workspace.