Indicator
Stochastic Oscillator
The stochastic oscillator expresses where the current close sits within the high-to-low range of the last N bars, on a scale from 0 to 100. A reading of 80 means the close is 80% of the way up that recent range.
Bars in the high-low range being measured against.
Moving average applied to %K.
Chart runs on a generated sample series, not live or historical exchange data. Values are computed with the same functions CernoQuant uses to run backtests.
How it is calculated
How to read it
- It measures position within a range, not speed or size of movement. A close near the top of the recent range produces a high reading regardless of how far price travelled to get there.
- %D is simply a smoothed %K, so it lags %K slightly and crosses it as %K changes direction.
- The 80 and 20 lines are conventional labels applied to the scale, not thresholds with predictive meaning.
What it does not tell you
- In a sustained move the oscillator stays pinned near an extreme for long stretches, because every close keeps landing near the top or bottom of the range. Reading each such print as a reversal cue means repeatedly opposing the dominant move.
- Because it is bounded, it compresses. Once near 100 it cannot distinguish strong movement from very strong movement.
- It reacts to the range boundaries, so a single outlier bar that widens the range changes readings without price behaviour having changed.
Common settings
14 periods for %K with a 3-period %D is the conventional default. A slower variant smooths %K before applying %D.
Frequently asked questions
What does the stochastic oscillator measure?
Where the current close sits within the high-to-low range of the last N bars, expressed from 0 to 100. It is a position measure, not a momentum or volatility measure.
What does a stochastic reading above 80 mean?
That the close is in the upper fifth of the recent range. In a sustained advance this happens continuously, which is why it is a description of position rather than a signal.
What is the difference between %K and %D?
%K is the raw calculation. %D is a short moving average of %K, so it is smoother and slightly slower.
How is stochastic different from RSI?
RSI compares the size of recent gains to recent losses. Stochastic compares the close to the recent high-low range. Both are bounded 0 to 100 but they measure different things and can disagree.
Related
- Relative Strength Index (RSI) — Indicator
- Momentum in Markets — Concept
- Trend vs Range: Why Context Changes Everything — Concept
Educational use only
This page is educational material about how a technical tool is calculated and read. It is not investment advice, not a recommendation to buy or sell anything, and not a signal service. No indicator predicts future prices. CernoQuant is a trading journal and analytics platform, not a SEBI-registered investment adviser. Trading decisions and their outcomes are yours alone.
Indicators describe the market. A journal describes you.
Knowing how RSI is calculated is the easy part. The harder question is whether you actually followed your own rules — CernoQuant reads your executed trades and measures the gap between what you intended and what you did.
See your own patterns →