Skip to main content
Blog home
Newsletter
News
Video
Podcast
Reading list
Wright Brief
Sign In

Stochastic Oscillator: Meaning, Formula and How to Use It

The stochastic oscillator compares a close with its recent high-low range on a 0 to 100 scale. Formula, a worked example, %K and %D crossovers, and limits.

Listen to this article
Audio · ~3 min
Add as a preferred source on Google
Stochastic oscillator illustration: two lines oscillating between upper and lower bounds

The stochastic oscillator is a momentum indicator that shows where the latest close sits within its recent high-low range. It was developed by George Lane in the 1950s on the idea that in an uptrend prices tend to close near their highs, and in a downtrend near their lows.

The formula

%K = (close - lowest low of last n periods) / (highest high of last n periods - lowest low) x 100. The usual n is 14. %D is a 3-period moving average of %K and acts as a signal line.

Free tool

See what markets are pricing in

Live indices, sector moves and market breadth — the backdrop to every story we publish.

Open Market Tracker

A worked example

Over the last 14 days the lowest low is 100, the highest high is 110, and today's close is 108. The numbers are illustrative.

StepCalculationResult
%K(108 - 100) / (110 - 100) x 10080
%DAverage of the last 3 %K valuesfor example 75

A %K of 80 means the close is in the top fifth of its 14-day range.

The Wright Brief · free weekly

Get research like this in your inbox

The week’s research that mattered, in five minutes. Joined by 2L+ investors.

Reading the signals

SignalWhat traders look at
Above 80Overbought: price near the top of its range
Below 20Oversold: price near the bottom of its range
%K crossing above %DMomentum turning up
%K crossing below %DMomentum turning down
DivergencePrice makes a new high but the oscillator does not

Like RSI , it can stay above 80 for a long time in a strong trend, so 'overbought' is not a sell instruction.

Fast, slow and full

The fast stochastic uses raw %K and is jumpy. The slow stochastic smooths %K with a 3-period average, which becomes the new %K, and is more commonly used. Williams %R is closely related: it is the same calculation on a 0 to -100 scale.

Limits: it produces many false signals in strong trends, it ignores volume, and the 80 and 20 levels are conventions. Pair it with trend information such as the ADX.

Free data

Large caps or small caps: who is winning?

Nifty, midcap and smallcap returns from one day to ten years, with the spread and valuation by segment.

Compare market caps

Frequently Asked Questions

What does the stochastic oscillator show?

Where the latest closing price sits within its high-low range over a set period, on a scale of 0 to 100.

What are %K and %D?

%K is the oscillator value itself, and %D is its 3-period moving average, used as a signal line.

What is the difference between stochastic and RSI?

The stochastic compares the close with its recent range, while RSI compares the size of recent gains with losses.

What is the best stochastic setting?

14, 3, 3 is the common default. Other settings can be used, but should not be fitted to past data.

This article is for education only and is not investment advice. Indicator readings describe past price behaviour and do not predict future returns.

Disclaimer: Investment in securities market are subject to market risks. Read all the related documents carefully before investing. Registration granted by SEBI, membership of a SEBI recognized supervisory body (if any) and certification from NISM in no way guarantee performance of the intermediary or provide any assurance of returns to investors.

The content in these posts/articles is for informational and educational purposes only and should not be construed as professional financial advice and nor to be construed as an offer to buy/sell or the solicitation of an offer to buy/sell any security or financial products. Users must make their own investment decisions based on their specific investment objective and financial position and using such independent advisors as they believe necessary.

Wryght Research & Capital Pvt (Brand name: Wright Research) is a SEBI Registered Portfolio Manager Reg No: INP000007979 (Validity: Apr 03, 2023 – Perpetual) and a SEBI Registered Research Analyst No: INH000017295 (Validity: Jul 03, 2024 – Perpetual), with its registered office at 103, Shagun Vatika Prag Narayan Road, Lucknow, UP, 226001 India and CIN: U67100UP2019PTC123244. Past performance may or may not be sustained in future. Performance provided there in is not verified by SEBI. Investment in securities is subject to market and other risks, and there is no assurance or guarantee that the objectives of any of the strategies of the Portfolio Management Services will be achieved. Registration granted by SEBI, enlistment as RA with Exchange and certification from National Institute of Securities Markets (NISM) in no way guarantee performance of the intermediary or provide any assurance of returns to investors. Please read the Disclosure document carefully before investing. Securities quoted are for illustration only and are not recommendatory. Charts shown are for illustration only. For more information and disclosures, visit our disclosures page here.

Found this useful? Share it.
Explore related topics
Siddharth Singh Bhaisora
About the author
Siddharth Singh Bhaisora
Chief Marketing & Growth Officer | Wright Research, Wright Research

Chief Marketing & Growth Officer

Wright PMS · Portfolio Management Service

Put this research to work

The same 300+ factor research engine behind this article — applied to a professionally managed portfolio, end to end.

300+
Factors tracked
2L+
Investors
₹1,200+ Cr
Invested
SEBI
Registered PMS