Forex Stochastic Oscillator

The Stochastic Oscillator shows where the current price closed compared with its recent high-low range. It moves between 0 and 100 and helps you spot when a move is stretched.


What is the Stochastic?

George Lane made the stochastic popular in the 1950s. His idea was simple:

The stochastic turns that into a number. A reading of 100 means price closed at the highest point of the lookback period. A reading of 0 means it closed at the lowest point.

Like RSI, it is an oscillator: an indicator that swings between fixed limits, shown in a panel under the price chart.

The Formula: %K and %D

The stochastic has two lines.

%K = (Close − Lowest Low) ÷ (Highest High − Lowest Low) × 100
%D = 3-period simple average of %K

Example — calculating %K

EUR/USD daily chart. Over the last 14 days the highest high is 1.0900 and the lowest low is 1.0800. Today closes at 1.0875.

%K = (1.0875 − 1.0800) ÷ (1.0900 − 1.0800) × 100
   = 0.0075 ÷ 0.0100 × 100
   = 75 pips ÷ 100 pips × 100
   = 75

Price closed 75% of the way up its 14-day range.

Example — three days and %D

Day14-day high14-day lowClose%K
11.09001.08001.087575 ÷ 100 = 75.0
21.09101.08001.089090 ÷ 110 = 81.8
31.09101.08001.084545 ÷ 110 = 40.9
%D (day 3) = (75.0 + 81.8 + 40.9) ÷ 3 = 197.7 ÷ 3 = 65.9

On day 3, %K (40.9) is below %D (65.9). %K has crossed down through %D — a bearish crossover.

Note: On day 2 the range grew because a new 14-day high was made. The stochastic always measures the close against the current range, so the denominator changes as old candles drop out.


Fast vs Slow Stochastic

The raw formula above is the fast stochastic. It is very jumpy. Most platforms show the slow stochastic by default, which smooths it once more.

Version%K line%D lineCharacter
Fast (14, 3)Raw %K3-SMA of raw %KQuick, many signals, lots of noise
Slow (14, 3, 3)3-SMA of raw %K (= fast %D)3-SMA of slow %KSmoother, fewer but cleaner signals
Full (14, 3, 3)Custom smoothingCustom smoothingLets you set every period

On MetaTrader the default "Stochastic Oscillator" is 5, 3, 3. Many traders change it to 14, 3, 3. Shorter periods react faster; longer periods are smoother.

Tip: Pick one setting and stick with it while you learn. Switching settings until the indicator "fits" past trades is a form of curve fitting.

Overbought and Oversold: 80 and 20

Warning: "Overbought" does not mean "about to fall". In a strong uptrend the stochastic can stay above 80 for days while price keeps rising. Selling every reading above 80 in a trend is one of the most common beginner mistakes.

Crossover Signals

The stochastic's main signal is a %K / %D crossover, especially in the extreme zones.

A crossover in the middle (around 50) is a weak signal. The best signals come from the extremes, at a price level that matters.

Example

USD/CAD falls to support at 1.3550. Slow stochastic reads %K = 12, %D = 15. The next candle closes higher: %K = 24, %D = 18.

%K crossed above %D in the oversold zone and moved back above 20, right at support. That is a bullish setup. Entry 1.3565, stop 1.3535 (30 pips) below support.


Using the Stochastic in Ranges

The stochastic works best when the market is moving sideways between clear support and resistance.

AUD/USD in a range (illustrative levels). Near the range bottom, look for stochastic to cross up from below 20. Near the top, look for a cross down from above 80.
  1. Confirm a range: flat moving average, repeated touches of a top and bottom.
  2. Near the bottom, wait for a bullish crossover below 20.
  3. Near the top, wait for a bearish crossover above 80.
  4. Stop just outside the range. Target the other side or the middle.

Using the Stochastic in Trends

In a trend, flip your thinking. Use the stochastic to time pullbacks in the trend direction, and ignore signals against it.

USD/JPY in an uptrend above the 21 EMA. Here, only oversold readings during dips are useful — they mark possible buy points in the trend.
MarketTakeIgnore
UptrendBullish crosses from below 20 (or 50) on pullbacksOverbought "sell" readings
DowntrendBearish crosses from above 80 (or 50) on ralliesOversold "buy" readings
RangeBoth, at the range edgesMiddle-of-range crosses

Tip: Stochastic divergence works like RSI and MACD divergence: price makes a new high or low, the stochastic does not. See Divergence Trading.

Strengths and Weaknesses

Strengths

  • Fast — reacts quicker than RSI.
  • Fixed 0–100 scale, easy to read.
  • Excellent for timing entries in ranges and pullbacks.

Weaknesses

  • Very noisy on low timeframes.
  • Stays overbought/oversold in strong trends.
  • Needs a trend filter to avoid counter-trend losses.

Test Yourself With Exercises

The 14-period high is 1.2760, the low is 1.2680 and price closes at 1.2700. What is %K?

  1. 75
  2. 25
  3. 50
  4. 20
(1.2700 − 1.2680) ÷ (1.2760 − 1.2680) × 100 = 20 ÷ 80 × 100 = 25.

What is %D in the standard stochastic?

  1. A 3-period average of %K
  2. The 14-period high minus the low
  3. A 9-period EMA of price
%D is a 3-period simple average of %K, used as a signal line.

Which levels usually mark overbought and oversold on the stochastic?

  1. 70 and 30
  2. 100 and 0
  3. 80 and 20
The stochastic usually uses 80 (overbought) and 20 (oversold). 70/30 is the common RSI setting.

EUR/USD is in a strong uptrend and the stochastic is at 92. What is the most sensible view?

  1. Sell immediately — it is overbought
  2. The indicator is broken
  3. Strong trends can stay overbought; wait for a pullback to buy
In a trend, overbought readings show strength. Use the stochastic to time pullbacks in the trend direction.

Where does the stochastic work best on its own?

  1. During major news releases
  2. In strong trends
  3. On very low timeframes
  4. In sideways ranges
The stochastic is a range tool first. Its overbought/oversold signals work best in sideways markets.