Technical Analysis

What is Stochastic Oscillator?

Reviewed by Karthikeyan Anbarasan (Founder, TradeLyser) · Updated 19 Oct 2026 · Editorial policy

DefinitionThe stochastic oscillator, developed by George Lane, shows where the latest close sits within the high-low range of the last n periods, usually 14, on a 0 to 100 scale. If Nifty’s 14-day high is 25,400, its low 24,800 and today’s close 25,250, fast %K is 450 ÷ 600 × 100 = 75 (illustrative).
Formula
Fast %K = (Close − Lowest low of 14) ÷ (Highest high of 14 − Lowest low of 14) × 100. Slow %K = 3-period SMA of fast %K; %D = 3-period SMA of slow %K (settings 14, 3, 3)
Example
Illustrative: (25,250 − 24,800) ÷ (25,400 − 24,800) × 100 = 450 ÷ 600 × 100 = 75

The stochastic is built on a simple idea: in an uptrend, closes tend to sit near the top of the recent range, and in a downtrend near the bottom. A reading of 100 means the close is at the highest price of the lookback; 0 means it is at the lowest. The usual setting is 14, 3, 3 for the slow stochastic, though some platforms default to other values.

How the stochastic is calculated

  1. Find the highest high and lowest low of the last 14 bars.
  2. Fast %K = (Close − Lowest low) ÷ (Highest high − Lowest low) × 100.
  3. Slow %K = the 3-bar simple average of fast %K. This is the main line on most charts.
  4. %D = the 3-bar simple average of slow %K: the signal line.
  5. Read 80 and above as overbought, 20 and below as oversold, and crosses of %K and %D as momentum shifts.

Worked example: Nifty daily, slow 14, 3, 3 (illustrative)

DayFast %KSlow %K (3-bar avg)%D (3-bar avg of slow %K)
160
272
378(60 + 72 + 78) ÷ 3 = 70.00
475(72 + 78 + 75) ÷ 3 = 75.00
582(78 + 75 + 82) ÷ 3 = 78.33(70 + 75 + 78.33) ÷ 3 = 74.44
668(75 + 82 + 68) ÷ 3 = 75.00(75 + 78.33 + 75) ÷ 3 = 76.11
750(82 + 68 + 50) ÷ 3 = 66.67(78.33 + 75 + 66.67) ÷ 3 = 73.33

Day 4’s fast %K of 75 is the reading from the definition: close 25,250 in a 24,800 to 25,400 range. On day 6, slow %K (75.00) slips below %D (76.11): a bearish cross. Slow %K peaked at 78.33, so a rule that only counts crosses from above 80 would not fire here. That difference is exactly why the rule needs to be written down before trading it.

Fast %K, day 4
75
Peak slow %K
78.33
Cross day
Day 6

How traders use it and log it

  • Range trading: buy when %K crosses up through %D below 20 near support; sell when it crosses down above 80 near resistance.
  • Trend pullbacks: in an uptrend on the daily chart, use a dip of the intraday stochastic below 20 to time long entries.
  • Divergence: price makes a lower low while %K makes a higher low, a sign selling pressure is easing.
  • Journal: log the settings (14, 3, 3 or other), the timeframe, the %K and %D values at entry and whether the trade was with or against the higher-timeframe trend. Review the two groups separately after 30 or more trades.

Stochastic vs RSI

Stochastic

Position of the close inside the high-low range. Moves quickly and hits extremes often, so it suits ranges and short-term timing.
Default: 14, 3, 3, levels 80/20

RSI

Smoothed average gains against average losses, close to close. Moves more slowly and reaches extremes less often.
Default: 14, levels 70/30
Common mistake
Reading "overbought" as "about to fall". In a strong uptrend the close keeps landing near the top of the range, so the stochastic stays above 80. In a strong downtrend it stays below 20. Add a trend filter or trade it only in ranges.
For Indian traders
On intraday Bank Nifty or Nifty charts, an opening gap widens the 14-bar high-low range at once and can pin the stochastic near 0 or 100 for the first part of the session. Many traders give the opening range time to form before reading it, and tag expiry-day signals separately.

Reference guide

ContextValueReading
%K crossing down from above 80 at resistance in a rangeContext fitsStill define the stop above the range high before entry
Selling every reading above 80 in a strong uptrendFading the trendIn uptrends the stochastic can stay overbought for long stretches
Fast stochastic on a 1-minute chartNoiseCrosses fire constantly; each one costs charges and slippage

Questions

What are the best stochastic settings?

The standard slow stochastic is 14, 3, 3. Shorter settings such as 5, 3, 3 react faster and give more signals, many of them false. Keep one setting per setup and log it.

How is the stochastic oscillator calculated?

Fast %K = (close − 14-period low) ÷ (14-period high − 14-period low) × 100. Slow %K is a 3-period average of that, and %D is a 3-period average of slow %K.

What do 80 and 20 mean on the stochastic?

Above 80 the close is near the top of its recent range (overbought); below 20 it is near the bottom (oversold). Neither is a signal on its own in a trending market.

What is the difference between fast and slow stochastic?

Fast stochastic plots raw %K with a 3-period %D. Slow stochastic smooths %K once more over 3 periods, which removes some noise and is the version most platforms show by default.

Is stochastic better than RSI?

Neither is better in general. The stochastic reacts faster and suits range timing; RSI is smoother. Compare them on your own tagged trades.

Related terms