In the previous lesson we covered the MACD indicator, its crossovers and its histogram. Now we move on to another momentum indicator that is more sensitive. In this lesson we give a full Stochastic Oscillator explanation: how it is built, how to read it, and most importantly, when to trust its signals and when to ignore them. In the next lesson we will move on to Bollinger Bands.
What Is the Stochastic Oscillator and What Is the Idea Behind It?
The Stochastic Oscillator is a momentum indicator that moves between 0 and 100. It measures where the closing price sits within the price range of the last several candles. The idea: in an uptrend, closes tend to land near the top of the range, and in a downtrend they tend to land near the bottom. If the close starts to pull away from the high while price is still rising, that is an early warning of weakening momentum.
How Is the Stochastic Oscillator Calculated?
It consists of two lines:
- %K line (fast): = (Close − lowest low of the period) ÷ (highest high − lowest low of the period) × 100. The common period is 14 candles.
- %D line (signal): a simple moving average of %K, usually over 3 periods.
A simple hypothetical example: if the highest high over 14 candles is 120, the lowest low is 100, and price closes at 115, then %K = (115−100) ÷ 20 × 100 = 75. These numbers are hypothetical, used only to illustrate the idea.
The setting used in our charts is (14, 3): a 14-period lookback with 3-period smoothing. There is also a "slow" version that smooths %K first and then calculates %D. It is less noisy and better suited to most traders on the daily timeframe.
How Do We Read Overbought and Oversold Levels?
The traditional levels are:
- Above 80: overbought zone, meaning closes are near the top of the range.
- Below 20: oversold zone, meaning closes are near the bottom of the range.
Overbought or oversold is not a reversal signal by itself. It describes the state of momentum, and the indicator can stay above 80 for a long time in a strong uptrend.
This is a crucial point: many losses come from treating a move above 80 as an order to reverse. In a strong trend the Stochastic "sticks" to its boundaries, and that does not mean the trend is over.
When Does a %K and %D Crossover Give a Valid Signal?
The crossover is the best-known signal: %K crossing above %D suggests improving momentum, and %K crossing below %D suggests weakening momentum. But the crossover alone produces many false signals because the indicator is fast. Signal quality improves when the following conditions are met:
- Crossover location: A bullish crossover from below 20 (or near it) is stronger than one in the middle of the indicator. A bearish crossover from above 80 is stronger than others.
- The overall trend: It is better to take crossovers in the direction of the larger trend. In an uptrend, bullish crossovers after oversold pullbacks are the most reliable, while bearish crossovers are often just a pause.
- Position relative to support and resistance: A bullish signal at a well-tested support zone is far stronger than a signal in empty price space.
- Candlestick and volume confirmation: A reversal candle or a rise in volume at the signal adds extra weight.
- Exiting the extreme zone: Many traders wait for the indicator to return inside the range (below 80 or above 20) before accepting the signal. They give up part of the move but avoid many premature warnings.
How Does the Stochastic Differ in a Sideways Market vs. a Trending Market?
| Condition | Indicator behavior | Best use |
|---|---|---|
| Sideways market (range) | Oscillates regularly between 20 and 80 | Overbought/oversold and crossovers work well near the range edges |
| Strong uptrend | Usually stays above 50 and sticks to 80 | Only take pullback crossovers from below 50 or 20 |
| Strong downtrend | Usually stays below 50 and sticks to 20 | Ignore oversold readings and rely on weak bounces |
The practical rule: identify the market type first, then choose how to read the indicator. Applying range-market rules in a strongly trending market is the most common cause of false signals.
Does Divergence Appear in the Stochastic?
Yes. If price makes a higher high while the Stochastic makes a lower high, that is bearish divergence showing slowing momentum. The reverse at lows is bullish divergence. As with RSI, divergence is a warning, not an entry signal, and it carries more weight if it appears in an extreme zone and is followed by a crossover and a break of a nearby price level. Because the Stochastic is so sensitive, it produces more divergences than RSI, so rely only on the clear ones.
Applying It on the Chart
We start with the chart that shows the indicator in a panel below the candles:
In this image you will find the Stochastic panel at the bottom of the chart, with two lines: the fast %K and the slower %D. Note the two zones above 80 and below 20. First look for the moments when the indicator entered either extreme zone, then follow whether it left with a crossover between the two lines, and compare that with what the candles did afterward: did price actually reverse or continue in its direction? Also check whether the overall trend at those points was up, down or sideways.
Now let's zoom in to see the latest candles:
This image shows the last few candles up close. Read the candle shapes: long wicks, small or large bodies, and closes near the high or low. These details are what confirm or reject a Stochastic signal. A bullish crossover followed by a weak-closing candle is less convincing than one followed by a strong candle.
Steps to apply this with BullMarkets tools:
- Interactive chart: Add the Stochastic Oscillator with the (14, 3) setting, and draw support and resistance lines to see where the signal occurred. Add a moving average to define the trend.
- Technical scanner: Look for stocks where the Stochastic has exited oversold or where a crossover has occurred, then check each result manually on the chart.
- Signal log: Review the actual results of past signals to compare the performance of trend-aligned signals against the others.
What Are the Common Mistakes When Using the Stochastic?
- Treating overbought/oversold as a sell or buy order: These readings can last a long time in strong trends.
- Trading every crossover: The indicator is fast and produces many warnings in the middle zone.
- Ignoring the overall trend: Counter-trend signals are statistically weaker.
- Relying on it alone: You need confirmation from price, volume and support and resistance levels.
- Constantly changing settings: Searching for a "perfect" setting leads to overfitting to the past.
- Neglecting the timeframe: A signal on a small timeframe often conflicts with the larger timeframe.
Frequently Asked Questions
What is the best Stochastic setting?
The (14, 3) setting is the most widely used and works as a starting point. Shorter periods are faster and noisier, while longer ones are slower and calmer. Pick one setting and stick with it.
What is the difference between the Stochastic and RSI?
RSI measures the speed of price changes and the size of gains versus losses, while the Stochastic measures where the close sits within the price range. The Stochastic is faster and more sensitive, and RSI is smoother.
Does the Stochastic work in strong trends?
It does, provided you change how you read it: do not use overbought/oversold as a reversal signal, but use pullbacks into the opposite extreme zone as opportunities to follow the trend.
Should I rely on it alone?
No. Use it with the trend, support and resistance levels and volume, and review signal results in the signal log.
Summary
- The Stochastic measures where the close sits within the range of the last 14 candles and moves between 0 and 100.
- The %K and %D lines give the crossovers, and the 80 and 20 levels define overbought and oversold.
- Overbought/oversold describes a state, not an order to reverse.
- The strongest signals: a crossover from an extreme zone, in the direction of the overall trend, at support or resistance, confirmed by candles and volume.
- In sideways markets the indicator works well, and in strong trends it needs a different reading.
- Divergence is a warning that needs confirmation.
- Next lesson: Bollinger Bands and the squeeze-and-breakout idea.
Disclaimer: This lesson is for educational purposes only and is not a recommendation to buy or sell. Trading involves risk.
