Part of the Indicator Math series. This post opens up the Stochastic Oscillator to show the simple range fraction behind %K and %D.
Why “above 80” is a range reading, not a sell button
Put the Stochastic Oscillator on a chart and two lines move between 0 and 100, with dashed borders at 80 and 20. Chart templates often label the top zone “overbought,” training new traders to treat every push above 80 like a ceiling. Then a sustained rally begins, the oscillator stays above 80 for weeks, and shorting every cross into that band turns into an expensive lesson.
That mistake disappears once you read the formula. Stochastic does not measure whether a market is expensive, crowded, or due to reverse. Raw %K answers one plain-English question: across the high-to-low box of the last N bars, how close to the top did this bar close?
The Stochastic formula: Fast, Slow, and Full
Chicago futures educator George C. Lane helped develop and popularize the oscillator with a small research team at Investment Educators beginning in the late 1950s, and later described that work in his May/June 1984 Technical Analysis of Stocks & Commodities article. Lane observed that in sustained advances, closes tend to cluster near the top of the recent range; before a turn, closes often slip toward the middle of the range while price is still pushing near its highs.
Lane’s early hand-calculated %D smoothed the three-bar numerator and denominator sums before dividing. Modern charting packages standardize on simple moving averages of %K itself, as documented in StockCharts ChartSchool and implemented in TradingView’s built-in Stochastic indicator. Under that modern convention, Fast Stochastic uses a 14-bar lookback with a 3-bar simple moving average (SMA) for %D, while Slow Stochastic applies a second 3-bar SMA to calm single-bar swings and serves as TradingView’s default at (14, 3, 3).
Lowest Low = lowest low over the last N bars
Highest High = highest high over the last N bars
Fast %K = ((Close − Lowest Low)
÷ (Highest High − Lowest Low)) × 100
Fast %D = 3-bar SMA of Fast %K
Slow %K = 3-bar SMA of Fast %K (same as Fast %D)
Slow %D = 3-bar SMA of Slow %K
Full %K = X-bar SMA of Fast %K
Full %D = Y-bar SMA of Full %K
Every value in that block comes from the high, low, and close:
- N (lookback period, default 14): How many completed bars you scan, including the current bar, to find the highest wick and lowest wick.
- Close − Lowest Low: How many points above the bottom of that N-bar box the current bar settled.
- Highest High − Lowest Low: The full height of the N-bar box. Dividing gives a fraction from 0 to 1, and multiplying by 100 scales it to 0–100. (If Highest High equals Lowest Low across flat bars, the denominator is zero and %K is undefined until a range forms.)
- Fast, Slow, and Full: In the StockCharts and TradingView definitions, Fast Stochastic (14, 3) plots raw Fast %K and Fast %D. Slow Stochastic (14, 3) drops raw %K, promotes Fast %D to become Slow %K, and takes another 3-bar SMA for Slow %D. Full Stochastic (14, X, Y) exposes both smoothing lengths: Full (14, 3, 3) equals Slow (14, 3), and Full (14, 1, 3) equals Fast (14, 3).
One naming distinction before you test anything: do not confuse standard Stochastic with StochRSI, introduced by Tushar Chande and Stanley Kroll in 1994. StochRSI plugs RSI values into the %K formula instead of price, making it more sensitive so it reaches 0 or 100 whenever RSI itself sets a new N-bar low or high.
A worked example by hand
To keep every window easy to check, the table below walks through 10 hypothetical daily bars using Full Stochastic (5, 3, 3). Changing 5 to 14 in a spreadsheet runs the same arithmetic over 14 rows.
| Day | High | Low | Close | Fast %K | Slow %K |
|---|---|---|---|---|---|
| 1 | 104.00 | 100.00 | 102.00 | – | – |
| 2 | 106.00 | 101.00 | 105.00 | – | – |
| 3 | 108.00 | 103.00 | 107.00 | – | – |
| 4 | 109.00 | 104.00 | 106.00 | – | – |
| 5 | 110.00 | 105.00 | 108.00 | 80.00 | – |
| 6 | 111.00 | 106.00 | 109.50 | 85.00 | – |
| 7 | 113.00 | 107.00 | 112.00 | 90.00 | 85.00 |
| 8 | 114.00 | 106.00 | 109.00 | 50.00 | 75.00 |
| 9 | 112.00 | 104.00 | 105.00 | 10.00 | 50.00 |
| 10 | 111.00 | 104.00 | 110.00 | 60.00 | 40.00 |
Start on Day 5, the first row with five bars of history, and carry the 3-bar averages through Day 10:
Day 5 (Days 1–5): LL = 100.00, HH = 110.00, Range = 10.00 Fast %K = ((108.00 − 100.00) ÷ 10.00) × 100 = 80.00 Day 6 (Days 2–6): LL = 101.00, HH = 111.00, Range = 10.00 Fast %K = ((109.50 − 101.00) ÷ 10.00) × 100 = 85.00 Day 7 (Days 3–7): LL = 103.00, HH = 113.00, Range = 10.00 Fast %K = ((112.00 − 103.00) ÷ 10.00) × 100 = 90.00 Slow %K = (80.00 + 85.00 + 90.00) ÷ 3 = 85.00 Day 8 (Days 4–8): LL = 104.00, HH = 114.00, Range = 10.00 Fast %K = ((109.00 − 104.00) ÷ 10.00) × 100 = 50.00 Slow %K = (85.00 + 90.00 + 50.00) ÷ 3 = 75.00 Day 9 (Days 5–9): LL = 104.00, HH = 114.00, Range = 10.00 Fast %K = ((105.00 − 104.00) ÷ 10.00) × 100 = 10.00 Slow %K = (90.00 + 50.00 + 10.00) ÷ 3 = 50.00 Slow %D = (85.00 + 75.00 + 50.00) ÷ 3 = 70.00 Day 10 (Days 6–10): LL = 104.00, HH = 114.00, Rng = 10.00 Fast %K = ((110.00 − 104.00) ÷ 10.00) × 100 = 60.00 Slow %K = (50.00 + 10.00 + 60.00) ÷ 3 = 40.00 Slow %D = (75.00 + 50.00 + 40.00) ÷ 3 = 55.00
Check Day 10 carefully. Price bounced $5.00 from 105.00 to 110.00, lifting raw Fast %K from 10.00 to 60.00. Yet Slow %K stepped down from 50.00 to 40.00 because its 3-bar window dropped Day 7’s 90.00 and replaced it with 60.00. That double average filters out single-bar noise, and it also adds real lag.
What the Stochastic Oscillator actually measures
Fast %K is the latest closing price’s position inside the N-bar high-low box: 85 means price closed 85% of the way up from the N-bar low to the N-bar high, and 50 means dead center. Slow %K and Slow %D smooth recent raw %K values, showing whether closes have stayed clustered near the edges of their respective rolling boxes or started slipping away from them.
Compare that with RSI. RSI averages close-to-close gains and losses and ignores intraday wicks. Fast %K ignores the path of closes in the middle of the window and uses only the highest wick in N bars, the lowest wick in N bars, and the latest close, while Slow %K and Slow %D retain the prior few raw %K readings. If an NQ 5-minute candle spikes to a new N-bar high and rejects to close near its low, Fast %K drops right away because Highest High expanded while the close finished low.
The chart below shows daily SPY candles with Slow Stochastic (14, 3, 3) from February 2 through June 30, 2026. During the shaded run from April 9 through May 18, Slow %K stayed above 80 for 28 straight sessions while SPY climbed from $679.91 to $738.65.

Just as important is what the indicator does not measure:
- It does not measure volatility or move size. Closing at $108 inside a $100–$110 range gives Fast %K = 80. Closing at $100.80 inside a quiet $100.00–$101.00 overnight range also gives Fast %K = 80. Every box gets stretched onto the same 0-to-100 ruler.
- It does not measure reversal odds. An 85 reading in an uptrend simply confirms that bars keep closing near their recent highs.
- It does not count volume. A thin lunchtime drift and a high-volume breakout print the exact same %K if they finish at the same fraction of the N-bar range.
How traders use it
Because Stochastic rescales every range to 0–100, it works best paired with an independent structure or trend rule — the same principle behind combining setups with a filter. Here are four rules you can test:
- Trend-pullback timing: Require a clear uptrend first, such as price holding higher swing lows above a rising 50-bar EMA. Test waiting for Slow %K (14, 3, 3) to dip below 20 on a pullback and close back above 20 as a trigger for pullback-to-value entries; skip the setup if price breaks the prior swing low.
- Range-fade trigger in balanced futures sessions: When MES or MNQ is rotating inside a defined overnight or midday range around a flat higher-timeframe average, test fading the edges only after Slow %K pushes above 80 at resistance and closes back below 80 (or dips below 20 at support and closes back above 20). Turn this rule off on trend days when price accepts outside the opening range.
- Centerline (50) bias check: Fast %K above 50 places the latest close in the upper half of its N-bar box, while Slow %K above 50 means the 3-bar average of recent range-position readings sits above the midpoint. One filter to test for mechanical entry rules is taking long breakout setups only while Slow %K holds above 50 (or Fast %K if you want the unsmoothed bar check).
- %D divergence at structure: When price nudges to a marginal new high into higher-timeframe resistance while Slow %D prints a lower peak and crosses below 80, it shows the smoothed average of recent range positions was lower across the second push than the first. Require an actual price support break before entering; divergence is context, not a standalone short signal.
Where it fails
Strong trends pin the oscillator above 80 or below 20. When ES or NQ trends cleanly off the 9:30 a.m. ET open, each 5-minute bar extends Highest High and closes near it. Slow %K stays pinned above 80, flashing brief %K/%D crosses on minor two-bar pauses. Fading those crosses means stepping in front of a directional tape.
Window drop-off moves %K without price moving. Because Highest High and Lowest Low use a hard N-bar cutoff, a big spike candle from 14 bars ago drops out on bar 15. The lookback box shrinks all at once, and %K can jump on a quiet bar just because an old wick expired.
Parameter extremes and unclosed bars lay traps. Fast (5, 3) swings sharply between the upper and lower zones in routine chop, while a slower setting such as (21, 5, 5) smooths out noise at the cost of turning late inside a range. On live charts, %K also updates on every tick until the bar closes, so a mid-bar cross above 20 can vanish before the candle finishes. Adding RSI and MACD rarely fixes this, since stacking momentum oscillators mostly repackages the same closes.
Takeaway: The Stochastic Oscillator is a range-location meter: Fast %K tells you where the latest close landed inside the N-bar high-low box, and Slow %K and %D smooth those range-position readings with 3-bar simple moving averages. Above 80 means recent closes have clustered near the top of their rolling boxes — useful context at a sideways range boundary, and normal behavior in a strong uptrend.
Next up: Bollinger Bands: Standard Deviation Drawn on a Chart