Skip to content
TradeViora AcademyLearn. Analyze. Practice. Trade Smarter.
Menu
All courses
Technical Indicators / Lesson 09

Stochastic oscillator

Stochastic compares close with the recent high-low range.

Free lesson · Module 08 · 9/31
01 / Core concept

Core concept: Stochastic oscillator

Stochastic compares close with the recent high-low range.

How it works

Fast stochastic %K=100×(C−lowest low)/(highest high−lowest low) over a chosen window. %D is a smoothed %K, with additional smoothing in some variants. A zero denominator needs a defined treatment.

02 / Worked example

Worked example: Stochastic oscillator

Close 108 in range 100–110 gives %K 80.

108Example value 1100–110Example value 280Example value 3

Values from the example above, in order of appearance. Not a live chart.

Try it yourself: Close 105 within range 100–110: %K?

Explanation: 50.

03 / Risk and limitations

Limitations and common mistakes

A zero range requires explicit handling.

Separate the observation from the trading decision. Test the rule with realistic execution and costs; a hypothetical example is not evidence of a profitable strategy.

Explore interactive trading tools
04 / Knowledge check

Which statement is accurate?

Choose an answer.

APPLIED STUDY · ORIGINAL LESSON

Learning plan and prerequisites

Before you begin: Identify rolling highest high and lowest low.

  • Compute close location in a rolling range
  • Distinguish fast and smoothed variants
  • Handle flat ranges

Mechanism and interpretation

Raw stochastic %K is 100×(close−lowest low)/(highest high−lowest low) over a chosen window. It locates the current close within that range; it does not measure the percentage of traders buying. %D is a smoothing of %K, and slow variants add another smoothing stage. Declare each window and smoothing method. A high reading can persist while the rolling range advances upward in a trend.

Worked case — synthetic data

Synthetic window low is 40, high 50 and current close 48, giving %K=80. If the next window low rises to 45, high to 55 and close to 53, %K remains 80 despite a five-point price gain. Three raw readings 60,80,70 give a simple three-period %D of 70. An identical oscillator value therefore need not mean an unchanged price.

Context and failure modes

When high equals low, the denominator is zero. Platforms may carry a prior value or use another convention; document the choice rather than dividing blindly.

Practice task

Window [100,120], close 105: calculate %K. Then explain whether a reading below 20 guarantees reversal.

Worked practice answer

%K=100×5/20=25. A reading below any threshold would still describe relative location, not guarantee a future turn.

Topic assessment

Choose an answer before opening each explanation. These questions test the specific mechanism in this lesson.

1. What does %K=80 describe?

  1. Eighty percent buyer volume
  2. Close at 80% of the rolling high-low span
  3. An 80% success probability
Reveal answer and explanation

B. The oscillator normalises position within a selected price range.

2. Can price rise while %K stays constant?

  1. No
  2. Only if volume is zero
  3. Yes
Reveal answer and explanation

C. The rolling high and low can rise along with the close.

3. What needs special handling in a flat range?

  1. A zero denominator
  2. A negative share count
  3. An impossible timestamp
Reveal answer and explanation

A. Highest high equal to lowest low makes the raw formula undefined.

Further reading

Original TradeViora Academy explanation and hypothetical example. See the primary-reference scope below. External resources do not endorse or independently verify this lesson.

Continue learning

Updated 26 November 2026 · Educational edition · Independent editorial review pending.

Explore market charts

Inspect actual provider-hosted market prices or load your own historical OHLCV in the Market Chart Lab. For volume-at-price and bid/ask analysis, use the profile workbench with appropriate data. These are exploration tools, not verified historical examples of this specific lesson.

Source scope

The explanations, definitions used for chart labels, synthetic cases, and exercises above are original. Exchange documentation is a reference for order mechanics; it does not validate a chart strategy or identify trader intent. Indicator documentation provides formula context where applicable.