EUR/USD1.11802GBP/USD1.33378USD/JPY157.487USD/CHF0.82647AUD/USD0.70200USD/CAD1.40367NZD/USD0.56744EUR/GBP0.83825XAU/USD4002.51EUR/USD1.11802GBP/USD1.33378USD/JPY157.487USD/CHF0.82647AUD/USD0.70200USD/CAD1.40367NZD/USD0.56744EUR/GBP0.83825XAU/USD4002.51

Stochastic oscillator guide for forex and gold

The stochastic oscillator is one of the oldest momentum tools on the chart, and one of the most misunderstood. It swings up and down between 0 and 100 in a panel under price, and most platforms draw two lines at 80 and 20 labelled overbought and oversold. It is tempting to read those lines as instructions: sell above 80, buy below 20. On a trending market, that habit can be very costly.

This guide explains what the stochastic actually measures, how %K and %D are calculated, which settings traders use, and how to read overbought and oversold readings, crossovers and divergence on currency pairs and on gold. The charts use real daily data, and the numbers are shown as they came out, including the parts that do not flatter the indicator.

Free on Telegram. See how we read momentum turns on gold and the major pairs on the Forexuro channel.

Follow the channelFree, opens Telegram

What the stochastic oscillator measures

The stochastic was popularised by George Lane in the 1950s. His idea was simple: in a rising market, closes tend to finish near the top of the recent range, and in a falling market they tend to finish near the bottom. When that pattern starts to change, momentum may be fading before price turns.

So the stochastic does not measure speed or the size of moves. It answers one question: where did the latest close finish inside the high to low range of the last few candles? A reading of 100 means price closed at the highest point of that range. A reading of 0 means it closed at the lowest point. A reading of 50 means it closed in the middle.

Illustrative diagram of 14 candles with dashed lines at the highest high and the lowest low; the last close sits 75% of the way up that range, giving a raw %K reading of 75
Illustrative example, not market data. The stochastic only asks one question: where did the latest close finish inside the high to low range of the last 14 candles?

How the stochastic is calculated

Your platform does the maths, but knowing the steps explains how the indicator behaves.

  1. Find the range. Take the highest high and the lowest low of the last 14 candles.
  2. Raw %K. Subtract the lowest low from the latest close, divide by the full range, and multiply by 100.
  3. Slow %K. Most traders smooth raw %K with a 3 period average, which removes some noise.
  4. %D. Take a 3 period average of %K. This is the slower signal line.

Here is a short example with made up numbers, not live market data. Suppose the highest high of the last 14 days on EUR/USD is 1.1100, the lowest low is 1.0900 and today's close is 1.1050. The range is 200 pips. The close is 150 pips above the low, so raw %K is 150 divided by 200, times 100, which is 75. On gold, a 14 day high of 4,200 dollars, a low of 4,000 and a close of 4,020 gives a raw %K of 10, very close to the bottom of the range.

The fast stochastic plots raw %K and its 3 period average. The slow stochastic, written as 14, 3, 3, plots the smoothed %K and its own 3 period average. The slow version is the one most traders use, because the fast one jumps around too much to read comfortably.

Overbought and oversold readings

Readings above 80 are usually called overbought and readings below 20 oversold. The names are misleading. Overbought does not mean too many people have bought, and it does not mean price is about to fall. It only means the close is near the top of the last 14 candles. In a healthy uptrend that is exactly where you would expect closes to be.

That is why the same reading behaves very differently in different markets:

  • In a range, price keeps bouncing between support and resistance, and the stochastic swings between the two zones with it. Here the readings often line up with turning points.
  • In a trend, the stochastic can stay overbought or oversold for a long time. Every new high pushes it back toward 100, and fading it means trading against the move.

The two real examples below show both sides. Neither proves anything on its own, but together they show why the trend matters more than the 80 and 20 lines.

Two panel chart of GBP/USD daily closes over about six months, moving between about 1.317 and 1.365, with a lower panel showing the slow stochastic %K and %D lines swinging between the 80 and 20 levels
GBP/USD over about six months with the slow stochastic 14, 3, 3. In this choppy, sideways market %K swung between the 80 and 20 lines several times, yet a fresh drop below 20 was followed by a higher price ten sessions later only 3 times out of 7. Chart by Forexuro. Data: Yahoo Finance GBP/USD (GBPUSD=X) daily bars.

A real example on GBP/USD

Over the last six months GBP/USD spent most of its time moving sideways, roughly between 1.317 and 1.365. The stochastic looked busy, with %K closing above 80 on 18 days and below 20 on 27 days. On a chart like this, it is easy to spot a few oversold readings that came just before a strong bounce and conclude that the rule works.

We counted every fresh drop of %K below 20 in that window and checked the price ten sessions later. It was higher 3 times out of 7, and lower the other 4 times, sometimes by more than 150 pips. Fresh moves above 80 were similarly mixed. That is a small sample from one pair and one period, so it is not a test of the indicator, but it is a useful reminder: an oversold reading is a question, not an answer. What made the good bounces work was usually the level price was sitting on, not the number in the panel.

A real example on gold

Gold shows the other side. In the same six months gold fell from around 4,830 dollars to near 4,000, then rallied hard. During that rally %K stayed above 80 for 17 sessions in a row, the longest overbought run in the window, while gold climbed from about 4,305 to about 4,664 dollars. Anyone who sold the first overbought reading would have been on the wrong side of a move worth more than 350 dollars an ounce.

The stochastic did eventually drop out of the overbought zone, and gold pulled back afterwards. But the useful signal was the drop back below 80 after a long stay, not the first move above it. If you also use RSI, you will see the same lesson there: in strong trends, momentum oscillators describe strength rather than warn of an immediate reversal.

Two panel chart of gold daily closes over about six months with the slow stochastic below; a shaded stretch shows %K staying above 80 for 17 sessions while gold climbed from about 4,305 to about 4,664 dollars
Gold with the slow stochastic 14, 3, 3. The shaded stretch is the longest run with %K above 80: 17 sessions in a row, during which gold rose from about 4,305 to about 4,664 dollars. Selling the first overbought reading would have meant standing in front of the move. Chart by Forexuro. Data: Yahoo Finance gold futures (GC=F), used as a close proxy for spot XAUUSD.

Crossovers between %K and %D

Because %D is a slower average of %K, the two lines cross whenever short term momentum changes direction. A cross of %K above %D is often read as momentum turning up, and a cross below as momentum turning down.

On the slow stochastic, crosses still happen often, so many traders only pay attention to the ones that occur in the outer zones. A cross up from below 20 at a clear support level is more meaningful than a cross near 50 in the middle of nowhere. Even then, a cross is a reason to look closer, not a reason to enter on its own. It works best as the final confirmation for an idea you already have from the chart, much like the signal line cross on the MACD indicator.

Divergence

Divergence happens when price and the stochastic disagree. In a bearish divergence, price makes a higher high but the stochastic makes a lower high, which suggests closes are no longer finishing as strongly near the top of the range. In a bullish divergence, price makes a lower low while the stochastic makes a higher low.

Divergence can warn that a move is tiring, but it can last a long time before anything happens, and in strong trends it often appears several times in a row while price keeps going. Treat it as a reason to tighten your plan or wait for a break of structure, not as a reversal signal by itself.

Choosing stochastic settings

The slow stochastic 14, 3, 3 is the most common default and a sensible place to start. Some short term traders use 5, 3, 3, which reacts much faster but swings between extremes so often that most readings mean little. Others use longer lookbacks such as 21 periods to follow bigger swings.

As with any indicator, pick a setting, keep it fixed while you study past charts, and judge it on a decent number of examples rather than a few memorable ones. Changing the settings after every losing trade is a quick way to fit the indicator to the past and learn nothing about the future.

Using the stochastic with price action

The stochastic is most useful when it agrees with something you can see on the price chart itself. Common combinations include:

  • Trend first. In an uptrend, look for oversold readings on pullbacks rather than overbought readings to sell. In a downtrend, the reverse.
  • Levels second. An oversold reading at well tested support says more than one in open space. Our guide to support and resistance explains how to find those levels.
  • Candles third. A rejection candle or a clear reversal pattern at the level adds evidence that buyers or sellers are stepping in.

If you want a structured way to practise reading levels, trends and patterns alongside indicators like this one, The Chart Patterns Playbook e-book walks through the common chart patterns, candlesticks and support and resistance setups with annotated examples.

The stochastic on forex pairs and on gold

On major currency pairs the daily stochastic tends to swing between zones more often, because many pairs spend long stretches in ranges. Readings can jump around major releases, so a stochastic signal right before inflation data or a central bank decision deserves extra caution.

Gold (XAUUSD) tends to trend harder, so long overbought or oversold runs are more common, as the chart above shows. Gold also moves a lot in dollar terms, which makes risk control more important than any oscillator reading. Decide where the trade idea is wrong first, set the stop there, and size the position from that distance. The lot size calculator does the arithmetic for you.

Common stochastic mistakes

  1. Selling every overbought reading. In strong trends the indicator can stay above 80 for weeks.
  2. Buying every oversold reading. In a falling market, oversold can get more oversold.
  3. Trading every crossover. On a sensitive setting the lines cross constantly; most crosses are noise.
  4. Ignoring the range it is built on. A reading of 90 after a tiny 14 day range means much less than the same reading after a wide one.
  5. Using it without a stop. No oscillator reading replaces a stop loss and a position size worked out in advance.

A simple stochastic checklist

  • Identify the trend on the price chart before looking at the indicator.
  • In a range, watch for readings in the outer zones at clear support or resistance.
  • In a trend, use pullbacks into the opposite zone rather than fading the trend.
  • Look for a %K and %D cross in the outer zone as confirmation, not as the reason.
  • Treat divergence as a warning, and wait for price to confirm it.
  • Set the stop where the idea is wrong, then size the position from that distance.

Official sources

Primary reference pages from regulators, central banks and official bodies on the topics in this article.

Frequently asked questions

What are the best stochastic oscillator settings?

There is no single best setting. The most common is the slow stochastic 14, 3, 3: a 14 period lookback, a 3 period smoothing of %K and a 3 period average for %D. Shorter settings such as 5, 3, 3 react faster but give many more weak signals; longer settings are smoother but slower.

Does overbought mean I should sell?

No. A reading above 80 only means the latest close is near the top of the recent high to low range. In a strong uptrend the stochastic can stay above 80 for weeks while price keeps rising, so overbought is context, not a sell order.

What is the difference between %K and %D?

%K is the main line and shows where the close sits inside the recent range. %D is a short moving average of %K, usually 3 periods, so it moves more slowly. Crossovers between the two are a common way traders read turns in momentum.

Is the stochastic oscillator better than RSI?

Neither is better in general. Both are momentum oscillators on a 0 to 100 scale, but the stochastic compares the close with the high and low of the period, while RSI compares the size of up moves with down moves. The stochastic usually reacts faster and swings more, which suits ranges more than strong trends.

Does the stochastic oscillator work on gold?

The calculation works on any market with highs, lows and closes, including XAUUSD. Gold often trends strongly, so readings can stay overbought or oversold for a long time. Read it together with the trend and with clear support and resistance rather than on its own.

Keep reading

RSI indicator explained · Bollinger Bands explained · MACD indicator explained