Stochastic Oscillator

The stochastic oscillator, commonly referred to simply as "stochastics," is a tool for technical analysis focused on the study of price action. It compares a security's trading range over a specified period to its closing price. The stochastic oscillator is classified as being a momentum indicator, primarily used to identify overbought and oversold market conditions.

Although it is a point of moderate contention, Dr. George Lane is credited with the development and refinement of stochastics. After joining "Investment Educators" in 1954, Lane worked in tandem with colleagues to develop momentum oscillators while trading commodities on the Chicago Board of Trade (CBOT).[1] Lane eventually released "The Stochastic Process" in 1957, effectively introducing stochastics to the public.

Stochastics are typically incorporated into trading strategies that utilise areas of price reversal and exhaustion as reference for market entry. The study may be used on a stand-alone basis or in conjunction with other technicals in the trade of futures, equities and currencies.

Calculating The Stochastic Oscillator

It is important to remember that stochastics attempt to project exhaustion points and pending reversals in price action. In order to accomplish this objective, the indicator relates the closing price of a security to its traded range for a specific period. Closing price is quantified in terms of %K, and trading range is thought of in terms of %D. The results are then plotted using a line graph, creating a visual representation of the relationship.

Listed below are the formulae and considerations used to derive the %K and %D values for incorporation into the stochastic oscillator[2]:

  • %K = 100 * [3]

    • Closing Price: The most recent close
    • Ln: Low price for n periods
    • Hn: High price for n periods
  • %D = 100 * (H_n_/L_n_)

    • H_n_: High price for n periods
    • L_n_: Low price for n periods
  • In order to normalise the derived values for both %K and %D, they are each multiplied by 100. This element of the calculation provides simplicity, as each value becomes scalable from 0 to 100.
  • Typical n values used in the calculation of %K are 5, 9 or 14 periods.
  • The standard n value used in the calculation of %D is 3 periods.
  • Depending upon the time frame being traded, n may be defined using intraday increments, or in terms of days, weeks, months or years.

Calculating the stochastic oscillator by hand in live market conditions can be a daunting task. However, current software trading platforms such as Trading Station, MetaTrader 4, and NinjaTrader commonly include the indicator as an available study. After being selected for use, the indicator is automatically computed and plotted graphically, giving traders and investors more time to analyse and interact with changing market conditions.

Interpreting Stochastics

The goal of stochastics is to identify levels where a reversal in price may originate and is most probable. As price action moves up and down, these areas become pronounced and readily identifiable.

According to Lane, as a market fluctuates, the periodic closing prices approach the period's established extremes. For instance, as price falls, closing prices tend to approach the extreme low. Conversely, if price is rising, then closing values will near the extreme high. With this concept in mind, the only viable signal prompting market entry is a divergence between %D and the security's price occurring near the extremes.

Thus, there are two setups for trade entry:

  • Bearish: Occurs when price makes higher highs while %D establishes lower highs. A short position is entered in anticipation of reversal.
  • Bullish: Occurs when price makes lower lows while %D establishes higher lows. A long position is entered in anticipation of reversal.

When working with the stochastic oscillator, a graphical interface makes observing price action in relation to the indicator relatively straightforward. Market extremes as well as convergence and divergence of %K with respect to %D are visually identifiable.


The strongest attributes of stochastics are versatility, ease of application and its predictive capabilities. When used in concert with other aspects of technical and fundamental analysis, the stochastic oscillator can be a valued addition to the comprehensive trading plan.

Any opinions, news, research, analyses, prices, other information, or links to third-party sites are provided as general market commentary and do not constitute investment advice. FXCM will not accept liability for any loss or damage including, without limitation, to any loss of profit which may arise directly or indirectly from use of or reliance on such information.

Russell Shor

Russell Shor

Senior Market Specialist

Russell Shor (MSTA, CFTe, MFTA) is a Senior Market Specialist at FXCM. He joined the firm in October 2017 and has an Honours Degree in Economics from the University of South Africa and holds the coveted Certified Financial Technician and Master of Financial Technical Analysis qualifications from the International Federation…

View Profile


Any opinions, news, research, analyses, prices, other information, or links to third-party sites contained on this website are provided on an "as-is" basis, as general market commentary and do not constitute investment advice. The market commentary has not been prepared in accordance with legal requirements designed to promote the independence of investment research, and it is therefore not subject to any prohibition on dealing ahead of dissemination. Although this commentary is not produced by an independent source, FXCM takes all sufficient steps to eliminate or prevent any conflicts of interests arising out of the production and dissemination of this communication. The employees of FXCM commit to acting in the clients' best interests and represent their views without misleading, deceiving, or otherwise impairing the clients' ability to make informed investment decisions. For more information about the FXCM's internal organizational and administrative arrangements for the prevention of conflicts, please refer to the Firms' Managing Conflicts Policy. Please ensure that you read and understand our Full Disclaimer and Liability provision concerning the foregoing Information, which can be accessed here.

Risk Warning: Our service includes products that are traded on margin and carry a risk of losses in excess of your deposited funds. The products may not be suitable for all investors. Please ensure that you fully understand the risks involved.

${} / ${getInstrumentData.ticker} /

Exchange: ${}

${} ${getInstrumentData.divCcy} ${getInstrumentData.priceChange} (${getInstrumentData.percentChange}%) ${getInstrumentData.priceChange} (${getInstrumentData.percentChange}%)