Skip to content

DEMA Overview

Double Exponential Moving Average (DEMA) is a trend-following overlay indicator that smooths price data to identify the underlying trend direction — filtering out short-term noise to reveal whether price is generally moving up or down.


How Double Exponential Moving Average Works

Section titled “How Double Exponential Moving Average Works”
  1. Apply Double-smoothed EMA: Applies EMA twice and uses the formula 2×EMA - EMA(EMA) to reduce lag while maintaining smoothness
  2. Plot on Chart: DEMA line overlays directly on the price chart
  3. Compare to Price: When price is above DEMA, trend is bullish; below = bearish
  4. Detect Crosses: Price crossing above/below DEMA signals potential trend changes

Key Characteristics:

  • Trend Filter = DEMA smooths price to show direction, removing noise
  • Dynamic Support/Resistance = DEMA line acts as a moving support (uptrend) or resistance (downtrend) level
  • Applies EMA twice and uses the formula 2×EMA - EMA(EMA) to reduce lag while maintaining smoothness
  • Period Sensitivity = Shorter periods react faster but produce more whipsaws; longer periods are smoother but lag more

DEMA Behavior:

  • DEMA line smooths price action to show the dominant trend
  • When price crosses above DEMA, momentum shifts bullish
  • When price crosses below DEMA, momentum shifts bearish
  • The slope of DEMA indicates trend strength — steeper = stronger
  • DEMA acts as dynamic support in uptrends and resistance in downtrends

These are the signal names you select when configuring DEMA in the algorithm builder or via the MCP agent:

SignalTriggers WhenTypical Use
price_above_demaPrice is above the DEMA lineBullish — price trending above DEMA
price_below_demaPrice is below the DEMA lineBearish — price trending below DEMA

Display: Overlay (on price chart)

Category: Trend

Threshold range: Price-based (compared to actual price values)


What Double Exponential Moving Average Does Well:

  • Trend Identification: DEMA clearly shows whether price is in an uptrend or downtrend
  • Dynamic Support/Resistance: Acts as a moving level that price tends to respect
  • Noise Filtering: Smooths out random price fluctuations to reveal the true trend
  • Universal Application: Works across all assets and timeframes with period adjustments