Momentum & oscillatorsStochastic Oscillator · Stoch
Where the close sits within the recent high–low range, on a 0–100 scale.
Works best in ranging marketsEngine-computed on a fixed sample series
What the Stochastic Oscillator is
The Stochastic Oscillator, developed by George Lane, is a momentum indicator that measures where the current close sits within the recent high-to-low range, expressed on a 0 to 100 scale. Its founding insight is simple and powerful: in an uptrend, closing prices tend to cluster near the top of the recent range, while in a downtrend they cluster near the bottom. So when the close is near the top of the range the oscillator reads high, and when it is near the bottom it reads low. It does not measure price level or trend direction directly; it measures the position of the close within its range, which serves as a proxy for momentum. The tool answers a focused question: relative to where it has traded recently, is price finishing strong near the highs or weak near the lows?
How it is calculated
The main line, called %K, takes the current close, subtracts the lowest low over the lookback period, divides by the difference between the highest high and lowest low over that same period, and multiplies by 100. With the standard 14-period lookback, a %K of 80 means the close sits 80 percent of the way up the last 14 bars' range. The second line, %D, is a short moving average of %K, usually a 3-period simple average, and it acts as a signal line. The popular full stochastic adds an extra smoothing step, applying a 3-period average to the raw %K before computing %D, which is written as 14, 3, 3 and produces a calmer pair of lines. The raw or fast version reacts instantly to each new close, while the slow and full versions trade some speed for less noise.
Reading it, step by step
The two reference zones are the first thing to read: above 80 is overbought, meaning closes are pinned near the top of the range, and below 20 is oversold, with closes near the bottom. The classic trigger is the crossover of %K and %D inside those zones — %K crossing above %D from below 20 is a buy cue, and %K crossing below %D from above 80 a sell cue. But the level alone is not a reversal signal, because in a trend the oscillator can stay overbought or oversold for a long time. The more reliable read is often divergence: if price makes a new high but the stochastic makes a lower high, upside momentum is fading even though price rose. Watch the shape of the turn too — a sharp hook out of an extreme carries more weight than a shallow wobble.
Best timeframes and settings
The stochastic works across every timeframe, but its character depends heavily on the settings. The default 14-period lookback with 3-period smoothing suits swing trading on 4-hour and daily charts, giving a balanced number of signals. The full stochastic at 14, 3, 3 is the go-to for cutting noise while keeping responsiveness. Shortening the lookback toward 5 to 9 makes the oscillator hyperactive, firing constant signals that suit fast scalping but whipsaw badly in anything but a clean range. Lengthening it toward 21 or more steadies the line for position trading at the cost of later signals. A useful discipline is to leave the 80 and 20 thresholds alone and instead adjust the lookback to match your holding period, and to always confirm signals against the higher-timeframe trend.
When and where to use it
The stochastic is fundamentally a range tool, and it is at its best in sideways, oscillating markets where price rotates between support and resistance and reverts to the mean. In that environment its overbought and oversold crossovers reliably mark the swing highs and lows. It applies to any liquid instrument — stocks, futures, FX — as long as the market is ranging. Where it goes wrong is in a strong trend: there the oscillator pins near 100 or 0 and its crossovers fire again and again with no follow-through, so using it to fade a trending market is a recipe for repeated losses. The professional habit is to first read the regime with a trend tool, then only deploy the stochastic's mean-reversion signals when the market is actually ranging, or to demote it to a trend-timing role otherwise.
Strategies that use it
In a range, the bread-and-butter strategy buys %K crossing up through %D from below 20 near support and sells %K crossing down through %D from above 80 near resistance, with stops just beyond the range boundary and targets at the opposite side. A trend-pullback strategy uses the oscillator only for timing: in a confirmed uptrend, wait for the stochastic to dip to oversold on a pullback, then buy the crossover back up, ignoring the overbought readings that the trend will keep producing. A divergence strategy hunts for price making a new extreme while the stochastic does not, entering on the subsequent crossover in the direction of the divergence with a stop beyond the price extreme. Layering a higher-timeframe trend filter over any of these — taking only signals aligned with the larger trend — sharply improves results.
Combining it with other indicators
The stochastic's weakness is that it cannot tell a range from a trend, so it pairs best with a regime or trend tool. ADX is the classic complement: keep to stochastic fades when ADX is low and switch to trend-following when ADX is high. A moving average defines the bias, letting you take only oversold buys above a rising average and overbought sells below a falling one. Support and resistance give the extremes a price context, so an oversold crossover right at a support shelf is far stronger than one in mid-range. Because the stochastic and RSI measure momentum differently, some traders run both and act only when they agree. Candlestick reversal patterns at the moment of a stochastic crossover provide a precise price trigger. The stochastic supplies timing; a trend or level tool supplies the setting.
Where it fails
The signature failure is the trending market, where the oscillator saturates at an extreme and its crossovers become a stream of losing fade signals — the single most common way traders misuse it. Very short lookbacks make it hyperactive, generating so many crossovers that most are noise. It also lags real reversals slightly because of the smoothing, so acting only on the crossover can mean entering after the initial move. Divergence, while powerful, has no timing of its own and can persist for many bars before price turns, so trading it early is dangerous. And the fixed 80 and 20 thresholds are somewhat arbitrary; in a strong market price can be genuinely overbought for weeks. The defences are always the same: confirm the regime, respect the trend, wait for the crossover, and treat extremes as context rather than automatic trades.
A worked example
Imagine a stock ranging between 54 and 60 on the daily chart. Over the last 14 bars the highest high is 60 and the lowest low is 54, and today's close is 59. The raw %K is 100 times 59 minus 54, divided by 60 minus 54, which is 100 times 5 over 6, or about 83.3 — above 80 and therefore overbought, with closes pinned near the top of the range. The next day %K turns down and crosses below the %D signal line while both are above 80, the textbook sell trigger in a range. You short near 59 with a stop at 60.30 just above the range high and target the lower boundary near 54.5. Over the following week price rotates down to 55, where %K falls under 20 and hooks up through %D, and you cover into that oversold crossover — a clean range rotation caught from one extreme to the other.