Skip to content

Trading glossary

Stochastic oscillator

Trading involves risk. You could lose more than your deposit.

The stochastic oscillator plots where the latest close sits inside the high to low range of a chosen lookback, on a scale from zero to one hundred, with a smoothed signal line drawn across it.

A bounded indicator, developed by George Lane, that measures position within a range rather than direction. The main line, conventionally called percent K, expresses the distance from the lowest low of the lookback to the latest close as a proportion of the whole range over that lookback. The signal line, percent D, is a short moving average of the main line. The fast, slow and full variants differ only in how much smoothing is applied to each, which is why the same instrument can look quite different under two of them.

Three conventions are read from it, and each is a convention rather than a rule. Readings near the top or the bottom of the scale are labelled overbought and oversold at thresholds an author chooses. A crossing of the main line and the signal line is treated as a change of short term momentum. And a divergence, where price makes a new extreme and the oscillator does not, is read as the move losing force. The commonly cited lookback comes from the indicator's original publication and has no property that makes it correct.

The trip follows from the bounding. Because the scale cannot exceed its ends, a persistent trend pins the oscillator at an extreme and keeps it there for as long as the trend runs, so the overbought label describes where the close sits inside a recent range and carries no statement about what happens next. Lane's own framing put more weight on divergence than on the level for this reason. Published tests of the indicator disagree with one another, and most of the disagreement is explained by different parameter choices rather than by different markets.

How it is calculated

The main line is the latest close less the lowest low of the lookback, divided by the highest high less the lowest low over the same lookback, expressed as a percentage. The signal line is a short moving average of the main line.

Worked example. Illustrative figures, not YAL prices or terms.

One reading, computed from its lookback

Highest high in the lookback
1.1200
Lowest low in the lookback
1.1000
Latest close
1.1150
Main line
(1.1150 − 1.1000) ÷ (1.1200 − 1.1000) = 75
Reading of the figure
The close sits three quarters of the way up the range

Illustrative arithmetic. The prices are assumptions chosen to show the calculation and describe no instrument and no period.

Where you see it

Stochastic Oscillator is a built in indicator on MetaTrader 5, and exposes the lookback, the signal line period and the slowing parameter.

In the curriculum

Taught in 1 lesson.

Part of an ordered curriculum of 139 lessons across 10 modules, free and with nothing behind a sign-up.

See the full syllabus

Get started

Open your account in four steps.

A clear path from sign-up to your first trade, in four steps.

No depositNo documents

  1. 01/ 04step 1 of 4

    Register

    A few details to get started.

    No deposit to open

  2. 02/ 04step 2 of 4

    Verify

    Confirm your identity, securely.

    ID and proof of address

  3. 03/ 04step 3 of 4

    Fund

    Add money by bank transfer or card.

    From $0

  4. 04/ 04step 4 of 4

    Trade

    Go live on the platform you already know.

    MetaTrader 5

Cookies on this site

Some cookies are needed to make the site work. With your permission we also use analytics cookies to see which pages are read, so we can improve them. You can change your choice at any time.