Skip to content
CFDs are leveraged products. Trading carries a high risk of losing money.Help center
FXBITI

The stochastic oscillator measures where a closing price sits within a selected high-to-low range. It helps traders assess momentum, but a line crossing another line does not establish that price will reverse. The same cross can appear during a sideways market, a temporary pullback or a strong directional move. Reading the surrounding price structure gives that signal context.

How stochastic is calculated

Momentum describes the strength and pace of price movement. The stochastic oscillator examines one aspect of momentum: whether closes cluster near the upper or lower end of their lookback range. It does not directly measure the size of price changes or the probability of a winning trade.

The basic calculation uses the latest closing price, the highest high and the lowest low across a chosen number of bars, including the bar being measured:

Raw %K = 100 × (closing price minus lowest low) / (highest high minus lowest low).

A reading near 100 places the close near the top of that range. A reading near zero places it near the bottom. A 14-bar lookback uses 14 candles on the selected timeframe, so it represents different amounts of elapsed time on hourly and daily charts.

The second line, %D, is a moving average of %K. In a fast stochastic, %K is the raw calculation and %D commonly averages three %K readings. A slow stochastic smooths raw %K first, then calculates %D from that smoothed line. A common slow configuration uses a 14-bar lookback, three-bar %K smoothing and a three-bar %D average.

Check the smoothing method and input labels before comparing charts. More smoothing generally reduces rapid fluctuations but adds delay. If the highest high equals the lowest low, the formula has a zero denominator; the charting implementation determines how that exceptional case is displayed.

A worked hypothetical example

Imagine an unnamed hypothetical instrument with a highest high of 200, a lowest low of 100 and a closing price of 180 over the selected lookback. These are invented values for calculation practice.

  1. Calculate the range: 200 minus 100 = 100.
  2. Calculate the close's distance above the low: 180 minus 100 = 80.
  3. Divide and scale: 100 × 80 / 100 = 80.

The raw %K reading is therefore 80. This means the close sits 80% of the way from the range low to the range high. It does not mean price has risen 80% or has an 80% chance of falling.

For a fast stochastic with a three-bar simple average, imagine the latest three raw %K readings are 40, 60 and 80. Then %D = (40 + 60 + 80) / 3 = 60. The latest %K is above %D, but these values alone do not prove a fresh cross occurred. That requires comparing the lines on the preceding bar.

What a signal cross means

A signal cross occurs when %K moves from one side of %D to the other. A bullish cross means %K moves from below to above %D. A bearish cross means it moves from above to below. Each describes a change in the relationship between the faster reading and its smoother reference.

A bullish cross suggests the faster reading is improving relative to its average. It does not necessarily mean price has broken upward or that a downtrend has ended. Similarly, a bearish cross can occur during a brief pause within an uptrend.

On an unfinished candle, the close and range can change, so a visible cross may disappear before the candle closes. Waiting for a completed bar makes the observation reproducible, although it adds delay and cannot prevent losses.

Why range context matters

Readings above 80 are commonly called overbought, while readings below 20 are called oversold. These labels describe position within the calculation range. They do not establish fair value or require an immediate reversal.

Separate the oscillator's rolling calculation range from a sideways trading range visible on the price chart. In a sideways market, price repeatedly turns around broadly similar upper and lower areas. A bullish cross near the lower area may support a possible rebound interpretation, especially if price also stops making lower lows.

In a strong uptrend, repeated closes near the rolling high can keep stochastic above 80. Selling every bearish cross can mean repeatedly opposing the trend. During a downtrend, readings below 20 can persist while bullish crosses fail to produce lasting recoveries. Old highs and lows leaving the lookback window can also change the reading without a large price move.

Common reading mistakes

  • Treating thresholds as orders: Crossing 80 or 20 is an observation, not a complete entry rule.
  • Ignoring structure: Check whether price is ranging, trending or breaking out before interpreting a cross.
  • Mixing settings: Fast and slow versions can produce different signals from the same candles.
  • Skipping risk controls: Stochastic does not determine position size or limit losses. Trading costs and execution differences still affect results.

Practice with a fixed checklist

Choose one timeframe and record the lookback, smoothing and average method. On completed candles, label price structure before marking crosses. Define what price action would invalidate each setup, then review examples with realistic costs in a practice account. Record unsuccessful signals as carefully as successful ones.

Educational content only, not investment advice. Leveraged trading can lose more than you expect.

FXBITI Insights

One email a week, nothing else

New explainers and glossary terms. No promotions.