Indicators · Momentum oscillators
Fast stochastic oscillator: raw %K, %D and its whipsaws
How the fast stochastic differs from the slow one, a worked 5-bar %K on PepsiCo, why it swings from 82 to 0.6 in three days, and how Finabase computes and flags it.
On this page
The fast stochastic is the stochastic oscillator in its original, unsmoothed form. Its %K line is the raw position of today's close within the high–low range of the last few bars, and its %D line is a short moving average of %K. It reacts to every change in the location of the close, which makes it the quickest of the range-position oscillators and, on a daily chart, also one of the noisiest.
Traders tend to meet the fast stochastic after the slow one and wonder why it looks so jagged. This guide shows the calculation with Finabase's 5-bar setting on real PepsiCo prices, explains why a 5-bar range makes the line leap from one extreme to the other, looks honestly at what its signals did during PepsiCo's 2026 decline, and covers where the fast version is genuinely useful.
Fast versus slow
The slow stochastic, covered in Stochastic oscillator (slow %K and %D): how to read it, is the fast stochastic smoothed one extra time:
| Line | Fast stochastic | Slow stochastic |
|---|---|---|
| %K | Raw position in range | SMA of raw %K (= fast %D) |
| %D | SMA of raw %K | SMA of slow %K |
Lane's original papers used the raw form. Traders found it too erratic and moved to the slow version, which became the standard. The fast stochastic survives because its speed is sometimes exactly what is wanted: short-term timing within a larger, already-identified trend.
The formula
A worked example on PepsiCo
On August 24, 2026, PepsiCo (PEP) closed at $144.67, near the top of its five-day range, and its fast %K read 82.0. Three sessions later it read 0.64. Here is the last day in detail.
The five bars ending August 27:
| Date | High | Low | Close |
|---|---|---|---|
| Aug 21, 2026 | $143.56 | $141.64 | $143.48 |
| Aug 24, 2026 | $145.90 | $144.38 | $144.67 |
| Aug 25, 2026 | $143.87 | $142.08 | $142.27 |
| Aug 26, 2026 | $142.69 | $141.22 | $142.19 |
| Aug 27, 2026 | $141.09 | $139.68 | $139.72 |
Highest high $145.90, lowest low $139.68, close $139.72:
Fast %K = (139.72 − 139.68) ÷ (145.90 − 139.68) × 100 = 0.04 ÷ 6.22 × 100 = 0.64
Fast %D = average of the last three %K values = (31.12 + 22.55 + 0.64) ÷ 3 = 18.10
Both match Finabase's chart. The whole five-day range was only $6.22, about 4% of the price. A close four cents above the range low was enough to register as an extreme reading. The next day PepsiCo bounced $1.35 and %K jumped to 22.4.
The fast stochastic on a real chart
PepsiCo fell from $158.49 at the end of April 2026 to $133.79 at the end of October, with a low of $123.47 on October 7. That is a 15.6% decline, steady rather than dramatic, with frequent small bounces. The fast stochastic reacted to every one of them:
- %K entered the oversold zone (below 20) 22 times and the overbought zone (above 80) 11 times in 127 sessions.
- It spent 43 sessions below 20 and 19 above 80.
The obvious mean-reversion rule, buy when %K crosses back above 20, fared poorly. It fired 22 times. Of the 21 signals with five sessions of data after them, PepsiCo was higher five sessions later only seven times, and their average five-day return was −0.98%. In a downtrend, an oversold fast stochastic is the normal state of affairs, not a bargain signal.
How traders use the fast stochastic
Timing entries inside a trend. The most defensible use: identify the trend with something slower (a 50-day average, ADX, the slow stochastic), then use fast-stochastic extremes against that trend as entry timing. In PepsiCo's downtrend, that would have meant using overbought readings to time short entries or to avoid buying, not using oversold readings to buy.
Intraday charts. On 5- or 15-minute bars, a 5-bar look-back covers less than an hour or two, and the fast stochastic's quickness suits short holding periods.
As a component. The slow stochastic, Williams %R (which is the fast %K inverted) and many custom oscillators are built from raw %K.
Choosing the look-back
The look-back sets how much history counts as "the recent range," and with the fast stochastic it matters more than usual because nothing smooths the result afterwards.
- 5 bars, Finabase's default, is about one trading week on a daily chart. It describes where the close sits relative to the last few days only, so it suits very short-term timing.
- 9 to 14 bars covers two to three weeks. The ranges are wider, so readings at 0 or 100 need a more meaningful move, and the line crosses 20 and 80 far less often.
- 21 bars and more approaches a month and starts to behave like a slow trend gauge rather than a timing tool.
A useful check is to put two fast stochastics, for example 5 and 14, on the same chart. When the short one is oversold and the long one is still above 50, the dip is small relative to the longer range, which is the typical pullback inside an uptrend. When both are oversold, the weakness is broader.
Pitfalls and limitations
Noise. A 5-bar range is small, so modest price changes produce extreme readings, as the August example showed.
False extremes in trends. Like all bounded oscillators, it pins at one end during a trend. With a 5-bar look-back, that happens after only a few bars.
Narrow ranges. When the high–low range shrinks, tiny moves swing the line from 0 to 100.
Comparison table
| Indicator | Look-back (Finabase default) | Smoothing | Range | Character |
|---|---|---|---|---|
| Fast Stochastic | 5 | %D: 3 | 0 to 100 | Very fast, noisy |
| Slow Stochastic | 15 | %K: 5, %D: 5 | 0 to 100 | Smoother, later |
| Williams %R | 14 | None | −100 to 0 | Fast %K, inverted |
| RSI | 14 | Wilder | 0 to 100 | Gains vs losses |
How Finabase calculates and scores the fast stochastic
Finabase computes the fast stochastic with TA-Lib's STOCHF function on each bar's high, low and
close. A new STOCHF study ("Fast Stochastic") defaults to a %K look-back of 5 and a %D
period of 3 (a simple moving average), and is drawn in its own panel with guide lines at 20, 50
and 80.
In the technical gauge and the Scanner, Finabase reads fast %K: above 80 it is flagged Overbought (bearish side), below 20 Oversold (bullish side), otherwise neutral. With a 5-bar look-back these flags change often, so on any given day many stocks will carry one. Treat them as a short-term description of the last week's closes.
Frequently asked questions
Is the fast stochastic better than the slow?
It is faster and noisier. For daily charts most traders prefer the slow version; the fast one is more useful on intraday charts or as a timing tool inside a trend identified by something slower.
Why does my fast stochastic jump from 0 to 100?
Because the high–low range over five bars can be narrow, so a modest move puts the close at one end of it. PepsiCo's %K dropped from 82 to 0.6 on a 3.4% decline.
What is the relationship between the fast stochastic and Williams %R?
Williams %R is the fast %K turned upside down and shifted: %R = fast %K − 100, over the same look-back. They carry the same information.
Summary
The fast stochastic is the raw stochastic: where today's close sits in the last five bars' range, with a 3-bar average as its signal line. It is quick enough to swing from 82 to 0.6 in three days, and in PepsiCo's 2026 decline its oversold signals lost money on average. Use it on short timeframes or to time entries in the direction of a trend you have confirmed elsewhere, and use the slow stochastic when you want a steadier read.
Sources and further reading
- George C. Lane, “Lane’s Stochastics,” Technical Analysis of Stocks & Commodities, vol. 2, no. 3 (1984)
- TA-Lib — STOCHF function reference
- Finabase chart data — PEP daily bars, 2026-04-30 to 2026-10-29, Fast Stochastic computed by Finabase