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.

Last updated: December 2026

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 00 to 100100 inclusive when the lookback range is nonzero with a standard lookback of n=14n = 14 periods, the Fast Stochastic is calculated as:

Fast %K=Close−Lowest Low14Highest High14−Lowest Low14×100\text{Fast }\%K = \frac{\text{Close} - \text{Lowest Low}_{14}}{\text{Highest High}_{14} - \text{Lowest Low}_{14}} \times 100 Fast %D=3-SMA(Fast %K)\text{Fast }\%D = 3\text{-SMA}(\text{Fast }\%K)

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:

Slow %K=3-SMA(Fast %K)(=Fast %D)\text{Slow }\%K = 3\text{-SMA}(\text{Fast }\%K) \quad (= \text{Fast }\%D) Slow %D=3-SMA(Slow %K)\text{Slow }\%D = 3\text{-SMA}(\text{Slow }\%K)

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 68.00%68.00\% and 70.00%70.00\%, and the prior two days' Slow %K values were 65.00%65.00\% and 68.00%68.00\%:

  1. Fast %K: 79.00−64.0084.00−64.00×100=15.0020.00×100=75.00%\frac{79.00 - 64.00}{84.00 - 64.00} \times 100 = \frac{15.00}{20.00} \times 100 = 75.00\%.
  2. Slow %K (= Fast %D): 68.00+70.00+75.003=213.003=71.00%\frac{68.00 + 70.00 + 75.00}{3} = \frac{213.00}{3} = 71.00\%.
  3. Slow %D: 65.00+68.00+71.003=204.003=68.00%\frac{65.00 + 68.00 + 71.00}{3} = \frac{204.00}{3} = 68.00\%.

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 (n,ksmooth,dsmooth)(n, k_{\text{smooth}}, d_{\text{smooth}}), where (14,1,3)(14, 1, 3) reproduces the Fast Stochastic and (14,3,3)(14, 3, 3) 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 UpMove=Hight−Hight−1\text{UpMove} = \text{High}_t - \text{High}_{t-1} and DownMove=Lowt−1−Lowt\text{DownMove} = \text{Low}_{t-1} - \text{Low}_t. If UpMove>DownMove\text{UpMove} > \text{DownMove} and UpMove>0\text{UpMove} > 0, then +DM=UpMove+\text{DM} = \text{UpMove} (else 00). If DownMove>UpMove\text{DownMove} > \text{UpMove} and DownMove>0\text{DownMove} > 0, then −DM=DownMove-\text{DM} = \text{DownMove} (else 00).
  • Directional Indicators (+DI and -DI): Smooth +DM+\text{DM}, −DM-\text{DM}, and True Range (TR) over 14 periods using Wilder's smoothing, then divide by smoothed TR to express directional movement as percentages:
+DI14=Smoothed (+DM)Smoothed TR14×100,−DI14=Smoothed (−DM)Smoothed TR14×100+\text{DI}_{14} = \frac{\text{Smoothed }(+\text{DM})}{\text{Smoothed TR}_{14}} \times 100, \qquad -\text{DI}_{14} = \frac{\text{Smoothed }(-\text{DM})}{\text{Smoothed TR}_{14}} \times 100
  • 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:
DX=∣+DI−(−DI)∣+DI+(−DI)×100,ADXt=ADXt−1×13+DXt14\text{DX} = \frac{\lvert +\text{DI} - (-\text{DI}) \rvert}{+\text{DI} + (-\text{DI})} \times 100, \qquad \text{ADX}_t = \frac{\text{ADX}_{t-1} \times 13 + \text{DX}_t}{14}

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 −DI>+DI-\text{DI} > +\text{DI}, the market is in an accelerating downtrend, not a rally.

Direction comes strictly from comparing +DI+\text{DI} vs. −DI-\text{DI}: bullish bias when +DI>−DI+\text{DI} > -\text{DI}, and bearish bias when −DI>+DI-\text{DI} > +\text{DI}. Wilder also noted the Extreme Point Rule on +DI/−DI+\text{DI}/-\text{DI} crossovers: the extreme price of the crossover bar serves as a confirmation trigger (and stop reference) before entering.

ADX Reading / SlopeMarket RegimePreferred Analytical Tools
ADX < 20Weak trend / sideways consolidationMean-reversion oscillators (RSI 30/70, Stochastics 20/80)
ADX crossing 20–25 upwardEmerging trend transitionBreakout confirmation; shift away from countertrend fades
ADX > 25 and risingStronger trend by conventional thresholdTrend-following tools (moving averages, MACD, +DI/−DI+\text{DI}/-\text{DI} bias)
High ADX and fallingTrend strength may be weakening, not necessarily sideways or reversingTighten 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 TypePrice Swing StructureOscillator Swing StructureMarket Implication
Classic BullishLower Lows (LL)Higher Lows (HL)Waning downside momentum; potential bullish reversal
Classic BearishHigher Highs (HH)Lower Highs (LH)Waning upside momentum; potential bearish reversal
Hidden BullishHigher Lows (HL)Lower Lows (LL)Pullback absorbed in uptrend; favors uptrend continuation
Hidden BearishLower 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.

Loading diagram...
Regime Selection Using ADX and Directional Indicators
Test Your Knowledge

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?

A

20.0%

B

26.7%

C

93.8%

D

80.0%

Test Your Knowledge

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

A strengthening uptrend because ADX is rising above 25

B

A strengthening downward directional bias, since ADX rises and −DI exceeds +DI

C

A sideways trading range suitable for buying Stochastic oversold crosses

D

An exhausted market about to reverse upward immediately

Test Your Knowledge
Matching

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

1

Classic Bullish Divergence

2

Classic Bearish Divergence

3

Hidden Bullish Divergence

4

Hidden Bearish Divergence

Sections you finish are checked off in the contents.