Directional Movement (+DM/-DM)
period
= 14 (10–30) Overview
Directional Movement (+DM and -DM) represents the foundation of Welles Wilder's groundbreaking Directional Movement System, introduced in his 1978 book "New Concepts in Technical Trading Systems." These raw measurements capture the essence of market movement by quantifying how much progress price makes in the upward or downward direction from one period to the next, focusing on the market's ability to make new extremes.
The brilliance of Directional Movement lies in its simplicity and effectiveness. Rather than just measuring price change, it specifically identifies when the market is making directional progress by comparing current highs to previous highs (+DM) and current lows to previous lows (-DM). This approach filters out sideways movement and captures only meaningful directional activity, making it invaluable for trend identification and momentum analysis.
How It Works
The DM calculation captures directional price movements:
- Calculate Upward Movement: Current High minus Previous High
- Calculate Downward Movement: Previous Low minus Current Low
- Apply Directional Rules: Only positive values count, larger movement wins
- Smooth the Values: Apply Wilder's smoothing method
- Track Separately: Maintain +DM and -DM as distinct measurements
Up Move = High[0] - High[1]
Down Move = Low[1] - Low[0]
Directional Movement Rules:
If Up Move > Down Move and Up Move > 0:
+DM = Up Move
-DM = 0
If Down Move > Up Move and Down Move > 0:
-DM = Down Move
+DM = 0
If Up Move ≤ 0 and Down Move ≤ 0:
+DM = 0
-DM = 0
Smoothed +DM = ((Prior +DM × (Period - 1)) + Current +DM) / Period
Smoothed -DM = ((Prior -DM × (Period - 1)) + Current -DM) / Period
Key Features
- Pure Direction: Measures only meaningful directional movement
- Mutually Exclusive: Only +DM or -DM can be positive for any period
- Trend Foundation: Forms basis for DI and ADX calculations
- Price Progress: Captures market's ability to make new extremes
Interpretation & Trading Signals
DM Analysis
Movement Patterns:
- Consistent +DM: Uptrend with higher highs
- Consistent -DM: Downtrend with lower lows
- Alternating DM: Choppy, directionless market
- Low Both DMs: Tight consolidation pattern
Trading Insights:
- Rising Smoothed +DM: Increasing bullish pressure
- Rising Smoothed -DM: Increasing bearish pressure
- DM Crossovers: Potential trend changes
- DM Expansion: Trend acceleration
Strengths
- Captures true directional movement
- Filters out non-directional noise
- Foundation for complete trend system
- Works across all markets
- Simple yet powerful concept
Limitations
- Raw values need further processing
- Can be erratic without smoothing
- Doesn't account for closing prices
- May miss subtle trend changes
- Requires other indicators for complete system
Example Usage
Code examples will be available once the Rust implementation is complete.
Performance Analysis
Related Indicators
Average Directional Index
Technical analysis indicator
Average Directional Movement Index Rating
Technical analysis indicator
Alligator
Technical analysis indicator
Aroon
Technical analysis indicator
Aroon Oscillator
Technical analysis indicator
Directional Indicator (+DI/-DI)
Technical analysis indicator