CFDs and forex are complex instruments and come with a high risk of losing money rapidly due to leverage. Risk disclosure

Stochastic oscillator explained

This guide covers what the stochastic indicator measures, how it is built, how to add it in MetaTrader and where its readings go wrong.

Extrade Pakistan editorial team ·

On this page
  1. What is stochastic?
  2. The formula: %K and %D
  3. Default settings and how to add it in MT4/MT5
  4. How to read it: a drawn example
  5. Typical uses
  6. Where the stochastic indicator misleads
  7. Parameter choices for experienced traders
  8. Frequent questions

What is stochastic?

The stochastic oscillator is a momentum indicator. It answers one question: where did the latest close land inside the recent high-to-low range?

The result sits on a fixed scale from zero to a hundred. It is drawn in a separate panel under the price chart.

The idea behind it is simple. In rising markets, closes tend to cluster near recent highs. In falling markets, they tend to cluster near recent lows. The stochastic indicator shows this position. It does not show the size of a move.

Like the RSI indicator and Williams %R, it belongs to the oscillator family. Williams %R is essentially the same calculation shown on an inverted scale.

overbought 80oversold 20Stochastic 14, 3, 3
Stochastic: %K (solid) and its average %D. Readings near the top or bottom show where the close sits within the recent range. Illustrative example: made-up numbers for learning, not real prices or a broker's conditions.

The formula: %K and %D

%K is the main line:

%K = (Current close − Lowest low of the period) ÷ (Highest high of the period − Lowest low of the period), shown as a percentage.

%D is the signal line. It is a simple moving average of %K, so it is smoother and moves later than %K.

Fast, slow and full stochastic

Version %K line %D line Character
Fast Raw %K from the formula Average of raw %K Very jumpy, many line crossings
Slow Raw %K smoothed once ("slowing") Average of the smoothed %K Calmer; the common default
Full Lookback, slowing and %D period all set by the user Same The flexible general form

In MetaTrader, the "Slowing" field turns the fast version into the slow one. Set slowing to its minimum and you get the fast stochastic. Raise it and you get the slow one.

Default settings and how to add it in MT4/MT5

The steps are the same in both platforms. Open Insert → Indicators → Oscillators → Stochastic Oscillator, or drag it from the Navigator window onto a chart.

The settings window contains these fields:

The default values appear in that window when you add the indicator. Use them as a starting point, not as a recommendation. Platform details are covered on the MetaTrader 4 and MetaTrader 5 pages.

How to read it: a drawn example

The sketch below is an illustration only. It shows no real prices.

Typical uses

When people say "stochastic strategy", they usually mean one of these readings. None of them is reliable on its own.

  1. Range extremes. Readings in the upper or lower area show that closes sit near the edge of the recent range. See overbought and oversold for why "overbought" does not mean "about to fall".
  2. %K and %D crossings. These mark a change in short-term momentum. On the fast version they happen constantly.
  3. Divergence. Price and oscillator disagree at swing points.
  4. Trend filter. Some traders read stochastic only in the direction of the higher-timeframe trend. They use it to time pullbacks, not to call reversals. See multiple timeframe analysis.

Where the stochastic indicator misleads

Parameter choices for experienced traders

You can test settings on a demo account in MetaTrader before using them with real money. Leveraged CFD and forex trading can lose money fast, and no oscillator setting removes that risk. Read risk management before sizing any trade.

For more indicators and methods, see technical analysis.

Frequent questions

What does the stochastic oscillator measure?

It measures where the latest close sits within the high-low range of a chosen lookback period, on a scale from zero to a hundred.

What is the difference between %K and %D?

%K is the main calculated line. %D is a moving average of %K. It is smoother and moves later.

Fast or slow stochastic: which should I use?

Neither is right for every case. The fast version reacts quickly but gives many false crossings. The slow version is calmer but lags.

Is a high stochastic reading a sell signal?

No. It only means closes are near the top of the recent range. In a strong uptrend, readings can stay high for a long time.

Where are the default settings?

They appear in the indicator's settings window when you add it in MT4 or MT5. You can change them in the same window.

Can stochastic be used alone?

It can be plotted alone, but it has no view of trend, levels or news. Most traders read it together with price structure and treat it as one input among several.

Related pages