StratBase.aiStratBase.ai
DashboardCreate BacktestMy BacktestsCatalogBlogNewsToolsHelp

Products

  • Researcher Dashboard
  • Create Backtest
  • My Backtests
  • Catalog
  • Blog
  • News

Alerts

  • Calendar
  • OI Screener
  • Funding Rate
  • REKT
  • Pump/Dump

Company

  • About Us
  • Pricing
  • Affiliate
  • AI Widget
  • Contact

Legal

  • Privacy
  • Terms
  • Refund Policy

Support

  • Help Center
  • Reviews
StratBase.aiStratBase.ai

Think it. Test it.

StratBase.ai does not provide financial advice or trading recommendations. AI only formalizes user ideas into testable strategy configurations for research purposes. Past backtesting performance does not guarantee future results. All trading decisions and associated risks are the sole responsibility of the user. This platform is not a broker and does not facilitate real trading.

© 2026 StratBase.ai · AI-powered strategy research and backtesting platform

support@stratbase.ai
Help Center/Indicators/DEMA (Double Exponential Moving Average)

DEMA (Double Exponential Moving Average)

📈Indicators
📌

DEMA (Double Exponential Moving Average)

📋

What is DEMA?

The Double Exponential Moving Average (DEMA), developed by Patrick Mulloy, is a technical indicator designed to reduce the lag found in traditional moving averages. It combines a single EMA with a double-smoothed EMA to produce a faster, more responsive average.

⚙️

How it works

DEMA(N) = 2 × EMA(N) - EMA(EMA(N))

By subtracting the double-smoothed EMA from twice the single EMA, DEMA cancels out a portion of the inherent lag.

⭐

Key features

  • Reduced lag — reacts faster than both SMA and standard EMA of the same period.
  • Smoother than raw price — still provides meaningful noise filtering.
  • Drop-in replacement — can replace SMA or EMA in most crossover and trend-following strategies.
📌

Trading signals

Trend direction

  • Price above DEMA — uptrend.
  • Price below DEMA — downtrend.

Crossovers

  • DEMA of short period crossing above DEMA of long period — bullish.
  • DEMA of short period crossing below DEMA of long period — bearish.
📌

Parameters

| Parameter | Default | Description | |-----------|---------|-------------| | Period | 20 | Lookback length |

💡

Example conditions

| Condition | Meaning | |-----------|---------| | close > DEMA(20) | Price above the 20-period DEMA | | DEMA(10) cross_over DEMA(30) | Fast DEMA crosses above slow — bullish | | close cross_under DEMA(50) | Price drops below DEMA — bearish signal |

📌

DEMA vs Other Moving Averages

| Moving Average | Lag | Smoothness | Best For | |---------------|-----|-----------|----------| | SMA | High | High | Long-term trend identification | | EMA | Medium | Medium | General-purpose trend following | | DEMA | Low | Medium | Fast markets, intraday trading | | TEMA | Very low | Lower | Scalping, very short-term | | ALMA | Tunable | High | Custom lag/smooth balance |

DEMA sits in a sweet spot between EMA and TEMA — fast enough to catch early moves, smooth enough to avoid excessive noise.

💡

Strategy Examples

Trend Following

Use DEMA(20) as a dynamic trend filter:

  • Enter long when close > DEMA(20) and RSI < 70
  • Enter short when close < DEMA(20) and RSI > 30

Mean Reversion

Use DEMA as a magnet for price:

  • When price deviates significantly from DEMA, expect a pullback toward the average
  • Combine with Bollinger Bands: enter when price touches outer band and DEMA slope is flat
💡

Tips

  • DEMA is excellent for fast-moving markets (crypto, scalping).
  • Because of lower lag, DEMA generates earlier signals — confirm with volume or momentum oscillators.
  • On higher timeframes (daily, weekly) DEMA behaves similarly to EMA; the benefit is most noticeable on intraday charts.
  • Compare DEMA, TEMA, and ALMA to find the best lag/smoothness trade-off for your strategy.
Related Resources|Fibonacci CalculatorPivot Points CalculatorTrading Blog