โš ๏ธThis platform is for educational purposes only. We are NOT SEBI-registered. DO NOT BUY OR SELL stocks based on recommendations.Read Full Disclaimer|โš ๏ธThis platform is for educational purposes only. We are NOT SEBI-registered. DO NOT BUY OR SELL stocks based on recommendations.Read Full Disclaimer|
Indicators & Metrics4 min read

Where Did Price Close? Decoding the Stochastic Oscillator

Learn how %K measures closing position inside a price range, and why it shines in sideways markets but misleads in strong trends.

26 Nov 2026

Imagine an elevator moving inside a multi-story building between โ‚น400 on the ground floor and โ‚น500 on the top terrace. At the end of the day, the elevator doors open at โ‚น475. Is that near the top, the middle, or the bottom? Common sense tells you it finished three-quarters of the way up. That single observation is the entire core of the Stochastic Oscillator.

Developed to track momentum, the indicator answers one straightforward question: relative to the highest high and lowest low of the last several sessions, where did the price settle?

Calculating %K: Step by Step

The foundation of the indicator is called %K. Typically calculated over a 14-session lookback window, %K scales price location on a simple scale from 0 to 100.

%K = ((Closing Price - Lowest Low) รท (Highest High - Lowest Low)) ร— 100

Let us walk through a concrete example using an illustrative mid-cap stock over a 7-session snapshot window.

Worked Example: Calculating %K
  1. Highest high recorded during the window: โ‚น500
  2. Lowest low recorded during the window: โ‚น400
  3. Total price range: โ‚น500 - โ‚น400 = โ‚น100
  4. Final session closing price: โ‚น475
  5. Distance above the bottom: โ‚น475 - โ‚น400 = โ‚น75
  6. %K = (โ‚น75 รท โ‚น100) ร— 100 = 75%

A %K reading of 75 means the stock settled three-quarters of the way toward the ceiling of its recent trading boundary.

Stock Price Movement Across the 7 Sessions
Up day (hollow)Down day (solid)
392431469508Day 1 โ€” O 410 H 430 L 400 C 425Day 1Day 2 โ€” O 425 H 460 L 420 C 450Day 3 โ€” O 450 H 480 L 440 C 470Day 3Day 4 โ€” O 470 H 500 L 465 C 490Day 5 โ€” O 490 H 495 L 450 C 460Day 5Day 6 โ€” O 460 H 475 L 445 C 465Day 7 โ€” O 465 H 485 L 460 C 475Day 7
The lowest point was โ‚น400 (Day 1) and the highest reached โ‚น500 (Day 4), closing at โ‚น475 on Day 7. ยท Illustrative example

Fast vs Slow: Smoothing Out the Noise

Raw %K can be jumpy. One volatile session can jerk the line from 30 up to 70. To solve this, analysts use two lines:

  • Fast Stochastic (%K): The raw mathematical calculation showing immediate closing location.
  • Slow Stochastic (%D): A 3-period moving average of %K, which smooths the trajectory and acts as a signal line.

When the faster %K crosses above the slower %D from deep levels, it indicates that buyers are repeatedly pinning closes near the top of the day's span.

Fast %K vs Slow %D Oscillation
Fast %KSlow %D
15406590Day 1Day 3Day 5Day 7Fast %K โ€” Day 1: 25Fast %K โ€” Day 2: 40Fast %K โ€” Day 3: 75Fast %K โ€” Day 4: 85Fast %K โ€” Day 5: 60Fast %K โ€” Day 6: 30Fast %K โ€” Day 7: 20Fast %K โ€” Day 8: 45Fast %K 45Slow %D โ€” Day 1: 20Slow %D โ€” Day 2: 30Slow %D โ€” Day 3: 47Slow %D โ€” Day 4: 67Slow %D โ€” Day 5: 73Slow %D โ€” Day 6: 58Slow %D โ€” Day 7: 37Slow %D โ€” Day 8: 32Slow %D 32
Notice how %D lags %K, smoothing out sudden turns to filter whipsaws. ยท Illustrative example

Range-Bound Brilliance vs Trending Trap

Understanding market regime is where most investors succeed or stumble with this tool. Stochastic is exceptionally effective in sideways channels, but prone to false warnings during powerful trends.

  • In a consolidation band: When a stock bounces between clear support and resistance, an oscillator reading above 80 accurately flags exhaustion near the ceiling, while a dip below 20 highlights value near the floor.
  • In a runaway breakout: When a company begins a powerful bull run, closing near the daily high is a sign of immense strength, not exhaustion. The indicator can sit pinned above 85 for weeks while the price doubles.

If you short or sell a breakout stock merely because Stochastic says 'overbought', you risk exiting the most profitable leg of the move.

Remember this

Use Stochastic to buy dips and sell rallies in sideways markets. In a strong trend, ignore 'overbought' readings and trade in the direction of the dominant breakout instead.

You can inspect Stochastic readings alongside long-term support and resistance levels directly on stock-analyze.com's interactive technical analysis pages.

Put this lesson to work

See these numbers live on any NSE/BSE stock โ€” fundamentals, technicals and an AI verdict on one page.

Analyze a stock free