Skip to the lesson
Back to the library
Lesson 631Trading4 min readLast reviewed 28 November 2026

More trading lessonsAll lessons

MOMENTUM IN A RANGE

The stochastic oscillator: where today’s close sits within the recent range.

How the stochastic oscillator is calculated, what the %K and %D lines show, how traders read overbought and oversold zones, crossovers and divergences, and why the indicator works better in ranges than in strong trends.

See the example
The stochastic oscillator: where today’s close sits within the recent range. — photo illustration
631 / MOMENTUM IN A RANGEPhoto illustration
01

The idea

Developed by George Lane in the 1950s, the stochastic oscillator is based on the observation that in rising markets prices tend to close near their recent highs, and in falling markets near their recent lows. It measures where the latest close sits within a chosen look-back range, usually 14 periods.

At a glance
Reading the stochastic — infographic
02

The calculation

LineFormulaMeaning
%K(Close − Lowest low) ÷ (Highest high − Lowest low) × 100Position in the 14-period range
%D3-period average of %KSmoothed signal line
Slow stochastic%K smoothed, then %D of thatFewer false signals
Range0 to 100Bounded oscillator
03

A worked example

If the 14-day high is 120, the low is 100, and the latest close is 115, %K is (115 − 100) ÷ (120 − 100) × 100 = 75. The close is three-quarters of the way up the recent range.

04

Overbought and oversold

Readings above 80 are commonly called overbought and below 20 oversold. These do not mean the price must reverse; in strong trends, the oscillator can stay overbought or oversold for a long time.

05

Crossovers

Some traders watch for %K crossing above %D as a possible buy signal, especially when both are below 20, and %K crossing below %D as a possible sell signal above 80.

06

Divergence

If price makes a new high but the stochastic makes a lower high, this bearish divergence suggests momentum is weakening. Bullish divergence is the reverse. Divergences can precede reversals but also give many false signals.

07

Ranges versus trends

The stochastic tends to work better in sideways markets, where prices swing between support and resistance. In strong trends, overbought or oversold signals can lead traders to fight the trend. Many traders first identify the trend, then use the stochastic to time entries in the direction of the trend.

08

Settings

The standard is 14, 3, 3. Shorter settings react faster but give more noise; longer settings are smoother but slower. Testing settings on historical data, with realistic costs, helps avoid overfitting.

09

Comparison with RSI

Both are momentum oscillators bounded between 0 and 100. RSI compares the size of recent gains and losses; the stochastic compares the close with the range. Some traders use both for confirmation.

10

Risk management

Ask yourself
  • Do not treat overbought as an automatic sell
  • Confirm with trend and price levels
  • Use stop-losses
  • Size positions sensibly
  • Test settings with costs
11

The Gulf angle

Indicators like the stochastic are available on most trading platforms used by investors in the UAE. As with any technical tool, they are educational aids for analysing price behaviour, not predictions or advice to trade.

12

Using multiple timeframes

A common approach is to read the trend on a higher timeframe, such as the daily chart, and use the stochastic on a lower timeframe, such as the hourly chart, to time entries. If the daily trend is up, the trader only takes buy signals when the hourly stochastic turns up from oversold, ignoring sell signals. This filters out many trades that fight the main trend. It does not eliminate losses, but it can improve the balance between winning and losing trades in some markets.

13

Avoiding overuse

Adding more indicators rarely helps if they all measure similar things. The stochastic and RSI often give similar readings, so using both may only create a false sense of confirmation. A clear, simple set of rules is usually easier to follow and test.

14

A realistic scenario

A currency pair trades in a range between 1.0800 and 1.0950. The stochastic drops below 20 near support and %K crosses above %D. A trader buys with a stop below the range and targets the top. Later, when the pair breaks out strongly, the stochastic stays above 80 for days, and she avoids selling simply because it looks overbought.

15

Questions to ask yourself

Ask yourself
  • Is the market trending or ranging?
  • What does the higher timeframe show?
  • Is there divergence?
  • Where is my stop?
  • Have I tested this setup?
16

The short version

The stochastic oscillator shows where the latest close sits within the recent range, from 0 to 100. It helps spot momentum shifts, overbought and oversold conditions and divergences, and works best in ranges or alongside trend analysis.

Worked example

Illustration: a 14-day range of 100 to 120 with a close at 115 gives %K of 75. A close at 104 would give %K of 20, at the edge of oversold. Hypothetical figures.

The idea to take with you

The stochastic oscillator compares the latest close with the recent high-low range. Readings near 100 mean closes near the top of the range; near 0, closes near the bottom.

Sources & assumptions

Primary educational references

CME Group · Education ↗

FINRA · Day trading ↗

Reviewed November 28, 2026. Examples are hypothetical illustrations. Educational content, not personalised investment, legal or tax advice.