Dalal Street Blogs provides information for educational purposes only and does not constitute investment advice. Please consult a SEBI-registered investment adviser before making any investment decisions.
CAUTION: Dalal Street Blogs publishes market news and educational content only. We do not promote, recommend or endorse any stock, and nothing here is a solicitation to buy or sell securities. Please consult a SEBI-registered adviser before investing.

Indian Stock Market News, Analysis and Trading Guides

Technical Analysis

Stochastic Oscillator Explained: Overbought Oversold Signals on NSE Stocks

Stochastic oscillator overbought oversold - chess pieces strategy

Photo: Chess, piece, board by 3345557, Pixabay Content License via Pixabay

By Dalal Street Blogs EditorialUpdated 12 min read

Open almost any NSE chart and there’s a good chance the panel underneath shows a stochastic oscillator overbought oversold reading. It draws two lines between 0 and 100 and answers one question: did the latest close finish near the top or the bottom of the recent high-low range? In this guide we’ll cover what the Stochastic Oscillator is, how %K and %D are worked out, how the Fast, Slow and Full versions differ, how Indian traders use the 80/20 bands on Nifty and stock charts, and why it breaks down in strong trends and in choppy sideways markets. Every worked number here is hypothetical. And no indicator guarantees a profit.

Starting your chart toolkit from zero? Our pillar on technical analysis for Indian stocks is the place to begin. Stochastic belongs to the same oscillator family as RSI, so it helps to keep our guides on how to read the RSI indicator and RSI divergence explained open as you compare the two.

In this article
  1. Where the Stochastic Oscillator comes from
  2. Stochastic oscillator overbought oversold maths: the %K and %D formula
  3. Fast, Slow and Full: three flavours of the same idea
  4. What 80 and 20 really tell you
  5. Working through a hypothetical NSE stock
  6. Divergences and Lane’s bull and bear set-ups
  7. How traders actually set it up on NSE charts
  8. Where Stochastic lets you down
  9. Stochastic vs RSI, briefly
  10. What to remember on Nifty and NSE stock charts

Where the Stochastic Oscillator comes from

The ChartSchool page on the Stochastic Oscillator from StockCharts calls it a momentum indicator, one that shows how fast and how strongly price is moving. George C. Lane came up with it in the late 1950s. ChartSchool quotes Lane saying the oscillator “doesn’t follow price, it doesn’t follow volume or anything like that. It follows the speed or the momentum of price,” and that “as a rule, the momentum changes direction before price.” That belief is why Lane treated bullish and bearish divergences as the first and most important signal.

The history checks out elsewhere too. Investopedia’s Stochastic Oscillator guide says Lane built the tool in the 1950s to catch momentum shifts that come before price reversals. TradingView’s STOCH help page also credits Lane in the 1950s, and lists its usual jobs: flagging overbought and oversold levels, spotting divergences, and picking out bull and bear set-ups or signals.

Zerodha Varsity’s Indicators (Part 1) chapter groups Stochastic with other tools built on moving averages, like RSI and MACD. Varsity explains that most leading indicators are oscillators swinging between two extremes, say 0 to 100, and that leading indicators are notorious for false signals. Keep that warning in mind on Indian charts. A cross of 20 or 80 is a hint. It isn’t a promised reversal.

Stochastic oscillator overbought oversold maths: the %K and %D formula

Here’s the core calculation as ChartSchool gives it:

  • %K = (Current Close − Lowest Low) ÷ (Highest High − Lowest Low) × 100
  • %D = 3-period simple moving average (SMA) of %K

The Lowest Low and Highest High come from the look-back period, which is 14 periods by default on ChartSchool. A period can be a day, a week, a month or an intraday bar. Multiplying %K by 100 puts it on a 0–100 scale. %D runs alongside %K as the signal, or trigger, line.

Investopedia writes the same thing with a 14-day label: %K = (C − L14) ÷ (H14 − L14) × 100. C is the latest close, L14 is the lowest price of the 14 previous sessions and H14 is the highest price in that window. It adds that %K is sometimes called the fast stochastic, while the “slow” line is %D = the 3-period moving average of %K. TradingView squeezes the Full form into one line: %K = SMA(100 × (Close − Lowest Low) ÷ (Highest High − Lowest Low), smoothK), and %D = SMA(%K, periodD), with defaults periodK 14, periodD 3 and smoothK 3.

ChartSchool’s own example makes the percentage easy to see. Say the highest high is 110, the lowest low is 100 and the close is 108. The high-low range is 10 and the close is 8 above the low, so %K = 0.80 × 100 = 80. Had the close been 103, %K would be 30. ChartSchool also notes the oscillator sits above 50 when the close is in the upper half of the range and below 50 when it’s in the lower half. Below 20 means price is near the low of the look-back. Above 80 means it’s near the high.

Investopedia runs a similar check. With a 14-day high of 150, a low of 125 and a close of 145, the reading is (145 − 125) ÷ (150 − 125) × 100 = 80.

%K is not a magical overbought score. It is simply where today’s close sits inside the recent high-low box, scaled from 0 to 100.

Fast, Slow and Full: three flavours of the same idea

ChartSchool lists three versions you can pick on SharpCharts:

  • Fast Stochastic Oscillator: Fast %K = the basic %K calculation; Fast %D = 3-period SMA of Fast %K. ChartSchool admits Fast %K can look pretty choppy. Lane relied on %D for buy or sell signals based on divergences and claimed a %D divergence is the “only signal which will cause you to buy or sell.”
  • Slow Stochastic Oscillator: Slow %K = Fast %K smoothed with a 3-period SMA; Slow %D = 3-period SMA of Slow %K. As ChartSchool points out, Slow %K is the same thing as Fast %D. The Slow version exists because Lane leaned on the smoother %D line.
  • Full Stochastic Oscillator: a Slow version you can customise. You choose the look-back period, the smoothing periods for %K and the moving-average periods for %D. Full %K = Fast %K smoothed with an X-period SMA; Full %D = an X-period SMA of Full %K.

In its examples ChartSchool uses Fast (14,3), Slow (14,3) and Full (14,3,3) as defaults. TradingView’s STOCH inputs follow the Full idea: periodK (default 14), periodD (default 3) and smoothK (default 3). Setting smoothK to 1 turns the extra smoothing off, which gives you the Fast version. A value of 3 is the usual Slow/Full-style smoothing.

Pull up Nifty 50, Bank Nifty or a liquid NSE midcap on Zerodha Kite or TradingView and most Indian retail screens will default to something close to Full (14,3,3). So if your %K looks a lot jumpier than a friend’s on the same stock, check whether smoothK is set to 1 or 3 before you argue over the “right” signal.

What 80 and 20 really tell you

The oscillator can’t leave the 0 to 100 range, so overbought and oversold bands are easy to mark. ChartSchool and Investopedia both stick with the traditional lines: above 80 = overbought and below 20 = oversold. TradingView describes the same 0–100 structure and the usual 14/%K and 3/%D choices.

ChartSchool is careful here, and so should we be. Overbought doesn’t automatically mean bearish. In a strong uptrend, closes keep landing near the top of the range, and a stock can turn overbought and simply stay there. Oversold isn’t automatically bullish either, because a strong downtrend can hold the oscillator near the lows. ChartSchool’s advice is to work out the bigger trend and trade with it. In an uptrend, look for the occasional oversold dip and ignore the frequent overbought readings. In a strong downtrend, flip it: watch for the odd overbought bounce and ignore the steady stream of oversold prints.

Investopedia says much the same. Readings above 80 and below 20 are the traditional zones, but strong trends can sit at those extremes for a long time. Rather than shorting every touch of 80, watch how the oscillator changes, and where %K and %D cross, for hints that momentum is shifting.

Settings change how twitchy the indicator is, and ChartSchool shows this clearly. A Full Stochastic (20,5,5) is less sensitive and gives fewer signals. A shorter look-back like (10,3,3) is more sensitive and throws up more overbought readings. Longer look-backs and heavier smoothing tend to suit swing traders on daily NSE charts. Shorter settings suit active intraday trading in Nifty futures, but they also push up the false-signal rate that Varsity warns about for leading oscillators.

Working through a hypothetical NSE stock

Every price in this section is made up for the arithmetic. None of it describes a real NSE stock or trade.

Take “Stock ABC” on a daily chart. In the last 14 sessions its highest high is ₹520 and its lowest low is ₹480. It closes today at ₹512.

  • Range = 520 − 480 = ₹40
  • Close − lowest low = 512 − 480 = ₹32
  • Raw %K = 32 ÷ 40 × 100 = 80

So the close is up at the top of the 14-day box, right on the traditional overbought line. Had it closed at ₹488, raw %K would be (488 − 480) ÷ 40 × 100 = 20, the traditional oversold line.

Now bring in the signal line. Say the last three Fast %K values, today included, are 72, 65 and 80. Fast %D = (72 + 65 + 80) ÷ 3 = 72.33. On a Slow/Full setting with smoothK = 3, if the last three raw %K values were 55, 62 and 70, Slow %K comes to (55 + 62 + 70) ÷ 3 = 62.33, and %D is then the 3-period SMA of that smoothed %K series.

None of this is a buy or sell call. The point is just to show that a close near the range high prints near 80, a close near the range low prints near 20, and %D trails %K because that’s how it’s built.

Divergences and Lane’s bull and bear set-ups

ChartSchool’s definitions of the classic divergences:

  • Bullish divergence: price makes a lower low while the Stochastic Oscillator makes a higher low. Downside momentum is fading, and that can come before a bullish reversal.
  • Bearish divergence: price makes a higher high while the oscillator makes a lower high. Upside momentum is fading, and that can come before a bearish reversal.

Confirmation matters, ChartSchool says. A bearish divergence is confirmed by a support break on the price chart or by the oscillator dropping below 50, the centreline. A bullish divergence is confirmed by a resistance break or a move above 50. When %K is above the 50 line the close is in the upper half of the look-back range, and when it’s below, the close is in the lower half.

Investopedia also counts divergence between the oscillator and price as a key reversal signal. Its example is a downtrend that makes a new lower low while the oscillator prints a higher low.

Then there are Lane’s “set-ups,” which both ChartSchool and TradingView explain. A bull set-up is roughly a bullish divergence turned inside out: price forms a lower high while the oscillator forms a higher high, which hints that the next fall may produce a low worth trading. A bear set-up is a higher low in price with a lower low in the oscillator, hinting that the next rally may produce an important top. ChartSchool is firm that these are set-ups, not automatic entries.

Our separate piece on RSI divergence explained takes the same wait-for-confirmation approach. A Stochastic divergence on Nifty or a large-cap counts for more when it coincides with a support or resistance test, or when a second oscillator such as RSI or MACD agrees.

In a strong Nifty uptrend, treating every Stochastic move above 80 as a short is how traders fight the trend. ChartSchool’s rule is the opposite: favour oversold dips with the trend and ignore most overbought noise.

How traders actually set it up on NSE charts

On a typical Kite or TradingView layout for Nifty 50, Bank Nifty or a liquid stock, the routine usually goes like this:

  1. Add Stochastic (often Full 14,3,3) in a lower panel.
  2. Draw lines at 80 and 20, and some people add 50 too.
  3. Settle the higher-timeframe trend first. For example, if the daily trend is up, look for oversold turns on the 15-minute or hourly chart.
  4. In an uptrend, wait for %K to climb back above 20 (or cross %D) after an oversold print. In a downtrend, wait for it to drop back below 80 after an overbought print. That’s ChartSchool’s “move back through the threshold” idea, and it beats fading the first touch.
  5. Check it against price: a bounce off support, a break of a short-term swing, or RSI, MACD or volume agreeing.

According to Investopedia, the Stochastic formula does best in steady trading ranges, while RSI usually does better in trends. ChartSchool agrees that momentum oscillators are made for trading ranges, though they still work on zigzag trends, catching pullbacks in an uptrend and bounces in a downtrend. That fits Indian cash and futures markets well. In a sideways Nifty week, 80/20 mean-reversion trades come into their own. On a one-way Budget-day move, the oscillator staying above 80 for hours is normal and is no reason to short.

Swing traders on daily charts often go for slower Full settings, like the 20,5,5 in ChartSchool’s range example, so they get fewer signals. Intraday traders on index futures tend to shorten the look-back to get more crosses, and live with more whipsaws. Our Supertrend indicator explained guide covers a different job altogether, trailing a trend. Stochastic is no substitute for a trailing stop. All it tells you is where the close sits within a range.

Where Stochastic lets you down

ChartSchool finishes bluntly: use the Stochastic Oscillator alongside other tools, such as volume, support/resistance and breakouts, to confirm or reject its signals. Investopedia agrees and says not to lean on it alone for entries and exits, but to combine it with several other tools. It also warns about false signals in volatile markets, and says you can adjust sensitivity by changing the observation period or the moving average.

The ways it goes wrong on NSE charts:

  • Stuck at the extremes: on a strong Bank Nifty trend day, %K can sit above 80 (or below 20) for ages. Fade every extreme and you’re fighting the trend.
  • Whipsaws in a range: in a tight range, %K and %D can cross 20 and 80 again and again. After costs, each “signal” can turn into a small loss.
  • Noisy early divergences: ChartSchool notes that signal-line crosses and moves through 80/20 happen often and whipsaw easily, so early signals aren’t always clean.
  • Mismatched settings: a Fast (smoothK = 1) reading on a noisy 5-minute midcap chart can look like a random number generator next to a Slow (14,3,3) daily chart of the same stock.

Varsity’s wider warning about leading oscillators, that they throw lots of false signals and pay off only with experience, belongs on every Stochastic checklist. A SEBI study released as PR No. 13/2024 (24 July 2024) found more than 70% (7 out of 10) of individual intraday traders in the equity cash segment lost money in FY 2022-23, and 71% of those traders ended the year with a net loss. No oscillator setting changes those odds. Stochastic can help you focus. It can’t guarantee a winning trade.

Stochastic vs RSI, briefly

Investopedia puts the two side by side. RSI measures how fast prices are moving and usually does better in trending markets. The Stochastic Oscillator compares the close with the high-low range and usually does better in sideways, range-bound markets. Plenty of Indian traders plot both. When they agree, say both turning up from oversold while price holds support, that’s worth more than either one alone. When they disagree, wait. Don’t force the trade.

What to remember on Nifty and NSE stock charts

  • Stochastic shows where the close sits within the look-back high-low range, on a 0–100 scale (ChartSchool, Investopedia, TradingView).
  • George Lane designed it in the late 1950s as a momentum tool, arguing that momentum often turns before price does (ChartSchool, Investopedia, TradingView).
  • Standard settings: a 14-period look-back, %D as a 3-period SMA, and traditional bands at 80 and 20. Full (14,3,3) is the adjustable version most platforms offer (ChartSchool, TradingView).
  • Overbought and oversold describe where price sits in the range. They aren’t automatic reversal orders, least of all in strong trends (ChartSchool, Investopedia).
  • Divergences and Lane set-ups need backing from the 50 line, a price break or a second tool (ChartSchool).
  • It works best in range-bound or zigzag markets. Pair it with price structure and other indicators, and never treat a single cross as a sure profit (ChartSchool, Investopedia, Varsity, SEBI PR 13/2024).

Next, put this oscillator side by side with RSI, MACD and trend tools like Supertrend, and use the pillar on technical analysis for Indian stocks as your map of the different methods.

Leave a Reply

Join the conversation

Commenting is open to registered readers. Sign up with just your email — no password needed, and it takes under a minute.

Sign up to comment Log in