What it means
The idea behind the indicator is that, in a rising market, prices tend to close near the highs of the recent range, while in a falling market they tend to close near the lows. The stochastic oscillator measures exactly that.
George Lane, a technical analyst, popularised it in the late 1950s. It is built from two lines.
The main line, called %K, shows where the latest close sits within the high-low range of the past 14 periods. The second line, %D, is a moving average of %K, usually over three periods, and acts as a smoothed signal line.
Readings above 80 are usually considered overbought, meaning the price may have risen too far, too fast, and readings below 20 are considered oversold. Traders look for the %K line crossing above or below the %D line as a possible buy or sell signal.
A common approach is to buy when both lines rise out of the oversold zone, and to sell when both fall out of the overbought zone. The oscillator works best in markets that move sideways in a range.
In a strong trend, it can stay in the overbought or oversold zone for a long time, producing misleading signals if used alone. For this reason, traders often combine it with trend indicators and look for divergences, where price makes a new high but the oscillator does not.
The settings can be changed, with shorter periods giving faster, noisier signals and longer ones giving slower, smoother signals. Like all technical indicators it is based on past prices and does not predict the future.
It is a tool for timing decisions, not a substitute for analysing the underlying business. Before relying on the indicator, a trader should test it on the specific market and period being traded.
Different markets behave differently, and a setting that worked on a currency pair may not work on a small company share. Recording each trade and its result gives an honest picture of whether the signals add value.
In practice
Real-world examples.
Example
A swing trader sees a share's %K fall to 15 and then rise back above 20 while %K crosses above %D. She treats this as a possible buying signal and enters a small position. She places a stop-loss below the recent low.
Example
A currency trader notices that the euro has made a new high while its stochastic reading has made a lower high. He reads this divergence as a sign of weakening momentum and reduces his long position. The currency falls back over the following week.
Example
A finance student back-tests a strategy that sells whenever %K goes above 80. In a strongly rising market the strategy exits too early and misses most of the gains. She learns that the indicator is more reliable in range-bound markets.
Formula
Calculation
%K = (latest close - lowest low over 14 periods) / (highest high over 14 periods - lowest low over 14 periods) x 100
%D = 3-period moving average of %K
Suppose over the last 14 days a stock's lowest price was $100 and its highest was $110, and today it closed at $108. Then %K = (108 - 100) / (110 - 100) x 100 = 8 / 10 x 100 = 80. If the previous two %K values were 70 and 75, %D = (70 + 75 + 80) / 3 = 75. A %K of 80 sits at the edge of the overbought zone.Case study
Seen in the real world.
Kestrel Asset Partners is an illustrative, fictional investment firm that tested a simple rule on a basket of shares: buy when the stochastic oscillator crosses above 20 and sell when it falls below 80. In sideways markets, the rule earned a modest profit with small losses.
During a long upward trend, however, the rule sold shares too early, and the shares continued to rise for months. The strategy had earned 6% over the test period, while simply holding earned 18%.
The analysts then added a rule to ignore sell signals when the price was above its 200-day average. The illustrative lesson is that indicators have to be matched to market conditions, and one rule rarely suits every environment. The firm now records the market regime beside every test result.
Watch out
Common mistakes.
- Selling just because the reading is above 80, when in a strong uptrend it can stay there for a long time.
- Using the indicator alone, when trend and volume information improves its reliability.
- Confusing it with a measure of value, when it only shows where a price sits within its recent range.
Questions
People also ask.
What do %K and %D mean?
%K is the raw stochastic reading and %D is a smoothed moving average of it that acts as a signal line.
What are the standard settings?
A 14-period lookback for %K and a 3-period average for %D are the most common, though traders can change them.
Does the stochastic oscillator predict prices?
No, it describes recent price behaviour and may suggest momentum changes, but it cannot forecast the future.
From the founder's library

Take it further with the book.
Build your financial confidence beyond this definition. Shihan's full-length guide, Accounting Fundamentals, takes the same plain-English approach and turns it into a complete, practical playbook for non-finance managers, business owners and students - with chapter-end quiz answers and presentation slides included.
25% off with code MMHQ25, applied at checkout. Priced in USD - checkout may show the equivalent in your local currency.
View the book and save 25%Related
