Double Exponential Moving Average (DEMA)
What Is the Double Exponential Moving Average?
The Double Exponential Moving Average (DEMA) is a technical indicator that applies exponential smoothing twice to reduce lag in traditional moving averages, providing faster trend signals while maintaining smoothness and reducing whipsaw noise.
The Double Exponential Moving Average (DEMA) is an advanced technical indicator developed by Patrick Mulloy that addresses one of the main limitations of traditional moving averages: lag. By applying exponential smoothing twice, DEMA provides a smoother, more responsive moving average that reacts faster to price changes while reducing false signals. Traditional exponential moving averages (EMAs) are inherently lagging indicators because they incorporate historical data. The DEMA attempts to predict where the EMA would be if it had perfect foresight, essentially creating a leading indicator that anticipates future EMA values. This makes DEMA particularly useful for traders who want the smoothing benefits of moving averages but need faster signals for trend identification and entry/exit timing. The indicator is commonly used in various trading strategies, from trend following to mean reversion approaches. The mathematical elegance of DEMA lies in its ability to extrapolate where a traditional EMA will likely be in the near future, effectively turning a lagging indicator into something closer to a coincident indicator. This characteristic makes it especially valuable for short-term traders and scalpers who need quick responses to price movements. DEMA can be applied to any timeframe and asset class, though it works best in trending markets where its reduced lag provides genuine timing advantages over traditional moving averages.
Key Takeaways
- Applies exponential smoothing twice to reduce moving average lag
- Provides faster trend signals than traditional EMAs
- Maintains smoothness while being more responsive to price changes
- Reduces whipsaw signals in sideways markets
- Can be used for trend identification and crossover signals
- Works well in combination with other technical indicators
How DEMA Works
DEMA operates through a two-stage exponential smoothing process: 1. First EMA: Calculate a standard exponential moving average of price 2. EMA of EMA: Apply exponential smoothing again to the first EMA 3. DEMA Formula: DEMA = 2 × EMA₁ - EMA(EMA₁) This double smoothing creates a moving average that anticipates future values of a single EMA, effectively reducing lag by approximately half. The result is an indicator that responds more quickly to price changes while maintaining the smoothness that traders value in moving averages. The indicator fluctuates around price action, providing dynamic support and resistance levels. When price is above DEMA, it suggests bullish momentum; when below, it indicates bearish momentum. Crossovers and divergences can provide additional trading signals. The mathematical intuition behind the DEMA formula is that 2×EMA₁ - EMA(EMA₁) essentially predicts where the EMA would be if it could "catch up" to current price action instantly. The first term doubles the current EMA's responsiveness, while the second term subtracts the smoothed version to remove the excess lag. This creates an indicator that hugs price more closely than traditional moving averages while still filtering out short-term noise. The result is a moving average that provides earlier signals for trend changes without sacrificing the smoothing that makes moving averages useful for filtering market noise.
Step-by-Step: Calculating DEMA
The DEMA calculation involves multiple steps of exponential smoothing: 1. Choose Period: Select look-back period (typically 20-50) 2. Calculate First EMA: EMA₁ = Price × Multiplier + Previous EMA₁ × (1 - Multiplier) 3. Calculate EMA of EMA: EMA₂ = EMA₁ × Multiplier + Previous EMA₂ × (1 - Multiplier) 4. Apply DEMA Formula: DEMA = 2 × EMA₁ - EMA₂ 5. Repeat: Update with each new price bar The multiplier equals 2 ÷ (period + 1), same as standard EMA calculation. This process creates a moving average that leads the traditional EMA, providing earlier signals of trend changes. For a 20-period DEMA: - Multiplier = 2 ÷ (20 + 1) = 0.0952 - EMA₁ incorporates current price information - EMA₂ smooths the EMA₁ values - DEMA leads the EMA₁ by predicting its future value
Important Considerations for DEMA
Several factors influence DEMA's effectiveness and interpretation: 1. Period Selection: Shorter periods (10-20) are more responsive but noisier 2. Market Conditions: Works best in trending markets, less reliable in sideways 3. Lag Reduction: Cuts traditional EMA lag by ~35-50% 4. False Signals: Still generates whipsaws in choppy markets 5. Parameter Optimization: Requires testing for different assets and timeframes 6. Complementary Use: Best combined with other indicators Understanding these characteristics helps traders optimize DEMA for their specific trading style and market conditions.
Trading Applications of DEMA
DEMA serves multiple purposes in technical analysis: 1. Trend Identification: Price above DEMA suggests uptrend, below suggests downtrend 2. Crossover Signals: DEMA crossing price or other MAs generates trade signals 3. Support/Resistance: Acts as dynamic S/R levels during trends 4. Divergence Trading: Divergences between DEMA and price can signal reversals 5. Filter Tool: Used to filter trades in the direction of the prevailing trend 6. Exit Signals: Price crossing below DEMA can trigger exit signals The indicator's reduced lag makes it particularly useful for short-term trading and scalping strategies where timely signals are crucial.
Advantages of DEMA
DEMA offers several advantages over traditional moving averages: 1. Reduced Lag: Responds faster to price changes than standard EMAs 2. Smooth Output: Maintains smoothness while being more responsive 3. Fewer Whipsaws: Reduces false signals in sideways markets 4. Leading Indicator: Anticipates future EMA values 5. Versatile Application: Works across different timeframes and assets 6. Easy Implementation: Simple calculation once understood These advantages make DEMA a valuable tool for traders seeking improved timing.
Disadvantages of DEMA
Despite its benefits, DEMA has some limitations: 1. Still Lagging: Not a true leading indicator despite reduced lag 2. Complex Calculation: More computationally intensive than simple MAs 3. Parameter Sensitivity: Performance varies significantly by period 4. False Signals: Can still generate premature signals 5. Over-Optimization Risk: Easy to curve-fit parameters to historical data 6. Learning Curve: Requires understanding of exponential smoothing Understanding these limitations helps traders use DEMA appropriately.
Real-World Example: DEMA in Action
Examine how DEMA provided earlier signals compared to traditional EMA during a trend change.
Tips for Using DEMA Effectively
To maximize DEMA's effectiveness in your trading: 1. Optimize Period: Test different periods (15-30) for your timeframe 2. Combine with Price: Use DEMA crossovers with price for signals 3. Add Confirmation: Use volume or momentum indicators for confirmation 4. Multiple Timeframes: Analyze DEMA across different chart periods 5. Trend Filter: Use longer-term DEMA to filter shorter-term signals 6. Risk Management: Always combine with stop losses and position sizing 7. Backtest Thoroughly: Test DEMA strategies on historical data 8. Market Adaptation: Adjust parameters for different market conditions These practices help improve the reliability of DEMA-based trading strategies.
DEMA vs. Other Moving Averages
Compare DEMA with other popular moving average types.
| Aspect | DEMA | EMA | SMA | TEMA |
|---|---|---|---|---|
| Lag Reduction | High (~50%) | Moderate | High | Very High |
| Smoothness | High | High | Highest | High |
| Complexity | High | Low | Low | Very High |
| Responsiveness | High | Moderate | Low | Very High |
| False Signals | Moderate | Moderate | Low | Low |
| Best For | Trend following | General use | Long-term | Short-term trading |
| Computational Load | High | Low | Low | Very High |
FAQs
DEMA typically reduces lag by approximately 35-50% compared to a traditional EMA of the same period. This means a 20-period DEMA responds roughly like a 10-13 period EMA in terms of lag, while maintaining the smoothness of the 20-period EMA.
The optimal period depends on your trading style and timeframe. Short-term traders often use 10-15 periods, swing traders use 20-30 periods, and longer-term traders use 40-60 periods. Start with 20 periods and adjust based on backtesting results for your specific market.
Yes, DEMA can be applied to any market (stocks, forex, commodities, crypto) and timeframe (intraday to monthly). However, it works best in trending markets and may produce more false signals in choppy, sideways markets. Adjust parameters based on market volatility.
DEMA reduces lag by ~50% while TEMA reduces lag by ~65%, but TEMA is more complex and can be noisier. DEMA offers a good balance between reduced lag and smoothness, making it more practical for most traders. TEMA is better suited for very short-term trading.
Not necessarily as a replacement, but as a complement. DEMA provides faster signals when you need them, while regular EMA offers smoother trends for longer-term analysis. Many traders use both: DEMA for timing and EMA for trend identification.
The Bottom Line
The Double Exponential Moving Average represents a significant advancement in moving average technology, addressing the fundamental trade-off between smoothness and responsiveness. By applying exponential smoothing twice, DEMA provides traders with a tool that reacts faster to price changes while maintaining the trend-following characteristics that make moving averages valuable. The indicator's ability to reduce lag by approximately 50% makes it particularly useful for traders who need timely signals without sacrificing smoothing benefits. This makes DEMA especially valuable in fast-moving markets where quick trend identification matters. However, DEMA is not a magic solution to the lagging nature of moving averages. It still produces false signals in choppy markets and requires careful parameter optimization. Success with DEMA depends on understanding its strengths and limitations. When used appropriately, DEMA can enhance trend-following strategies, improve entry and exit timing, and provide more responsive support and resistance levels. The key lies in combining it with other forms of analysis, thorough backtesting, and disciplined execution.
More in Indicators - Trend
At a Glance
Key Takeaways
- Applies exponential smoothing twice to reduce moving average lag
- Provides faster trend signals than traditional EMAs
- Maintains smoothness while being more responsive to price changes
- Reduces whipsaw signals in sideways markets