16.3 Stochastic Oscillator, ADX/DMI, and Divergence Analysis
Key Takeaways
George Lane's Stochastic Oscillator (%K) measures where the current close sits inside the n-period high-low range, while Slow Stochastics applies double 3-period SMA smoothing to reduce false crossovers.
Wilder's Average Directional Index (ADX) measures trend strength—not trend direction—with rising readings above 20-25 indicating a strong trend and readings below 20 indicating a range-bound market.
In Wilder's Directional Movement System, trend direction is determined by comparing +DI and -DI (+DI > -DI is bullish; -DI > +DI is bearish), not by the slope of ADX.
Classic divergences signal waning momentum and potential trend reversal, whereas hidden divergences signal trend continuation; neither should be traded without price confirmation.
Knowing whether a market is trending or consolidating determines which oscillator signal can be trusted. Range-based oscillators such as Stochastics are often used in horizontal ranges, whereas trend-strength tools such as the Average Directional Index (ADX) alert analysts when directional momentum takes over. Integrating both—alongside disciplined divergence analysis—completes the CMT Level I toolkit for momentum and trend evaluation.
George Lane's Stochastic Oscillator
Developed by George Lane in the late 1950s, the Stochastic Oscillator is based on the observation that during uptrends, closing prices tend to cluster near the top of the recent high-low trading range, whereas during downtrends, closing prices tend to cluster near the bottom of the range. Before price reverses direction, closes often begin pulling away from the extreme edge of the range.
Bounded from to inclusive when the lookback range is nonzero with a standard lookback of periods, the Fast Stochastic is calculated as:
Because Fast %K reacts sharply to single-bar spikes, most practitioners prefer the Slow Stochastic, which applies an additional 3-period simple moving average (SMA) smoothing:
If the highest high equals the lowest low, %K has a zero denominator; consult the platform convention rather than interpreting it as an ordinary overbought or oversold value.
Worked Stochastic Calculation
Suppose over the past 14 trading days, a stock recorded a Highest High of $84.00, a Lowest Low of $64.00, and today's Close is $79.00. Suppose the prior two days' Fast %K values were and , and the prior two days' Slow %K values were and :
- Fast %K: .
- Slow %K (= Fast %D): .
- Slow %D: .
Traditional Stochastic thresholds are 80 (overbought) and 20 (oversold). Primary trade signals occur when %K crosses above %D inside or exiting the oversold zone below 20 (bullish), or when %K crosses below %D inside or exiting the overbought zone above 80 (bearish). Note also that charting packages generalize Fast and Slow variants as the Full Stochastic with three parameters , where reproduces the Fast Stochastic and reproduces the Slow Stochastic. Just like RSI, however, Stochastics can remain "embedded" above 80 throughout a powerful bull leg or below 20 during a waterfall decline, making mechanical 80/20 fades dangerous without trend-strength context. Lane emphasized that divergence between price and %D is a central Stochastic signal in Lane’s framework. Crossovers and threshold exits provide additional context but are not guarantees.
Wilder's Directional Movement System (DMI) and ADX
In the same 1978 book that introduced RSI, J. Welles Wilder Jr. created the Directional Movement System and Average Directional Index (ADX) to quantify whether a market is actually trending.
Construction Overview
- Directional Movement (+DM and -DM): Compare today's high-low expansion against yesterday's bar. Let and . If and , then (else ). If and , then (else ).
- Directional Indicators (+DI and -DI): Smooth , , and True Range (TR) over 14 periods using Wilder's smoothing, then divide by smoothed TR to express directional movement as percentages:
- Directional Index (DX) and ADX: Compute the normalized difference between the two indicators, then take the simple mean of the first 14 DX values to initialize ADX and apply Wilder’s smoothing to subsequent DX values:
The labels +DI and −DI denote two nonnegative magnitudes, not signed arithmetic terms. If smoothed TR or the sum of the directional indicators is zero, the respective quotient is undefined; common implementations use zero for no directional movement. A falling ADX means weakening measured trend strength, not automatically a trend reversal.
Crucial Exam Rule: Strength vs. Direction
Warning
ADX Measures Trend Strength, NOT Direction: A rising ADX above 20–25 tells you a trend is strengthening—never whether prices are rising or falling. If ADX climbs from 18 to 35 while , the market is in an accelerating downtrend, not a rally.
Direction comes strictly from comparing vs. : bullish bias when , and bearish bias when . Wilder also noted the Extreme Point Rule on crossovers: the extreme price of the crossover bar serves as a confirmation trigger (and stop reference) before entering.
| ADX Reading / Slope | Market Regime | Preferred Analytical Tools |
|---|---|---|
| ADX < 20 | Weak trend / sideways consolidation | Mean-reversion oscillators (RSI 30/70, Stochastics 20/80) |
| ADX crossing 20–25 upward | Emerging trend transition | Breakout confirmation; shift away from countertrend fades |
| ADX > 25 and rising | Stronger trend by conventional threshold | Trend-following tools (moving averages, MACD, bias) |
| High ADX and falling | Trend strength may be weakening, not necessarily sideways or reversing | Tighten trailing stops; watch for consolidation |
Classic and Hidden Divergence Analysis
Divergence occurs when price prints a new swing extreme that the accompanying momentum oscillator (RSI, MACD, or Stochastics) fails to confirm. Analysts distinguish between classic (regular) divergences, which warn of potential reversals, and hidden divergences, which signal trend continuation:
| Divergence Type | Price Swing Structure | Oscillator Swing Structure | Market Implication |
|---|---|---|---|
| Classic Bullish | Lower Lows (LL) | Higher Lows (HL) | Waning downside momentum; potential bullish reversal |
| Classic Bearish | Higher Highs (HH) | Lower Highs (LH) | Waning upside momentum; potential bearish reversal |
| Hidden Bullish | Higher Lows (HL) | Lower Lows (LL) | Pullback absorbed in uptrend; favors uptrend continuation |
| Hidden Bearish | Lower Highs (LH) | Higher Highs (HH) | Bounce exhausted in downtrend; favors downtrend continuation |
Price Confirmation Is Mandatory
A common mistake among novice traders is buying immediately upon spotting a classic bullish divergence or shorting on a classic bearish divergence. In powerful trends, oscillators frequently trace double or triple divergences while price keeps grinding in the dominant direction. Divergences are early warning alerts of shifting internal momentum, not standalone execution signals. Technicians wait for price confirmation—such as a broken support or resistance trendline, a moving-average crossover, a failure swing trigger breach, or a decisive swing high/low breakout—before committing capital. Combining price confirmation with volume expansion and an ADX regime check helps assess the risk of trading against an active trend while allowing timely participation once momentum shifts actually translate into price structure.
Over the past 14 periods, an asset recorded a highest high of $128.00, a lowest low of $88.00, and today's closing price is $120.00. What is the 14-period Fast %K?
20.0%
26.7%
93.8%
80.0%
An equity displays a 14-period ADX that has climbed steadily from 16 to 34, while +DI is 14 and -DI is 38. What does this indicator reading indicate?
A strengthening uptrend because ADX is rising above 25
A strengthening downward directional bias, since ADX rises and −DI exceeds +DI
A sideways trading range suitable for buying Stochastic oversold crosses
An exhausted market about to reverse upward immediately
Match each divergence pattern to its corresponding price and oscillator swing structure:
Match each item on the left with the correct item on the right
Classic Bullish Divergence
Classic Bearish Divergence
Hidden Bullish Divergence
Hidden Bearish Divergence
Sections you finish are checked off in the contents.