Short answer: the stochastic oscillator shows where the latest close sits within the high–low range of a set period, on a 0–100 scale. The common setting is 14,3,3. Above 80 is overbought and below 20 is oversold. The main signal is %K crossing %D in those zones. It works best in ranging markets and should always be used with support and resistance.
The stochastic formula, simply
%K = (latest close − 14-period low) ÷ (14-period high − 14-period low) × 100
%D = 3-period average of %K (the signal line)
14,3,3 means 14 periods, %K smoothed over 3 (slow stochastic) and %D averaged over 3.
Example (hypothetical): over the last 14 gold candles the high is 4,100, the low 4,000 and the latest close 4,085. %K = (4,085 − 4,000) ÷ (4,100 − 4,000) × 100 = 85, overbought: price closed near the top of its range.
How to read stochastic signals

Signal | Meaning | How to use it |
|---|---|---|
Above 80 | Overbought; price has risen a lot | Watch for a turn down; not an instant sell |
Below 20 | Oversold; price has fallen a lot | Watch for a turn up; not an instant buy |
%K crosses above %D below 20 | Buying returns | Look for buys at support |
%K crosses below %D above 80 | Selling returns | Look for sells at resistance |
Divergence | Price and stochastic disagree | Reversal warning, like RSI divergence |
Worth knowing: in a strong trend the stochastic can stay above 80 or below 20 for a long time, so selling just because it's overbought in a strong uptrend is risky.
Stochastic vs RSI

Stochastic | RSI | |
|---|---|---|
Measures | Where the close sits in the high–low range | Strength of gains versus losses |
Common levels | 80 / 20 | 70 / 30 |
Sensitivity | Faster, more signals | Smoother, fewer signals |
Best for | Ranging markets, short swings | Momentum and divergence |
More in what is RSI, and other indicators in the best forex indicators.
5 steps to trade with the stochastic

Read the market first: ranging or trending? In a trend, trade only in its direction.
Mark support and resistance; see support and resistance, or use Fibonacci levels.
Wait for the stochastic to reach a zone: below 20 at support, or above 80 at resistance.
Wait for %K to cross %D and a confirming candle before entering.
Place the stop-loss beyond support or resistance and target the other side of the range.
Example (hypothetical): gold on H1 ranges between 4,020 and 4,070. Price drops to 4,022, the stochastic falls to 12, %K crosses above %D and a pin bar forms. You buy at 4,025 with a stop-loss at 4,012 ($13) and a take-profit at 4,065, just under the top of the range ($40), about 1:3.
You can combine it with Bollinger Bands or MACD, but don't stack indicators that measure the same thing until the chart is cluttered.
Common mistakes
Selling every time it's above 80, or buying every time it's below 20, without checking the trend.
Using very small timeframes, so signals come too often.
Not waiting for a confirming candle.
Not backtesting on the instrument you actually trade.
Learn to use indicators systematically with Indy Trader
Indy Trader's courses, taught by Coach Beer, teach indicators together with price structure, inside the Indy System Trade's clear entry and exit rules.
FAQ
What is the stochastic oscillator?
An indicator showing where the latest close sits within the high–low range of a set period, from 0 to 100, used to spot overbought and oversold conditions.
What are the best stochastic settings?
The common default is 14,3,3 with levels at 80 and 20. Keep the default until testing shows another setting works better.
How do you use the stochastic?
Wait for it to go below 20 at support or above 80 at resistance, then for %K to cross %D with a confirming candle before entering.
Is the stochastic better than RSI?
Neither is always better. The stochastic is faster and suits ranging markets; the RSI is smoother and suits momentum.
Written by the Indy Trader team, a forex and gold trading school founded in 2012 by Coach Beer (Tithivat Huayhongtong).
Risk warning: forex and gold trading carries high risk and you may lose some or all of your capital. Figures in this article are illustrative only and not investment advice.
:format(webp))