All indicators

Dual Exponential Moving Averages

Jun 7, 2017

Static chart image
SignalsMoving Averages

The Dual Exponential Moving Averages indicator plots two independent exponential moving averages on a single chart to help traders identify trend direction and potential crossover signals while optimizing indicator space.

Usage

The Dual Exponential Moving Averages tool is primarily used for trend identification and momentum analysis. By utilizing two EMAs with different lookback periods, traders can observe the relationship between short-term and long-term price action.

  • Trend Identification: When the shorter EMA is above the longer EMA, it typically signifies a bullish trend. Conversely, when the shorter EMA is below the longer EMA, it indicates a bearish trend.
  • Crossovers: A "Golden Cross" occurs when the short-term EMA crosses above the long-term EMA, signaling potential upward momentum. A "Death Cross" occurs when the short-term EMA crosses below the long-term EMA, signaling potential downward momentum.
  • Support and Resistance: These averages often act as dynamic support or resistance levels during trending markets.

Details

The script calculates two separate Exponential Moving Averages (EMA) based on user-defined lengths. Unlike a Simple Moving Average (SMA), an EMA places a higher weight on recent price data, making it more responsive to new market information and price fluctuations.

The indicator includes built-in alert conditions for crossovers. These alerts trigger at the close of a bar whenever the two averages intersect, allowing users to stay informed of momentum shifts without constant manual monitoring.

Settings

  • Exponential Moving Average 1: Sets the lookback period for the first EMA. A smaller value creates a faster, more sensitive line.
  • Exponential Moving Average 2: Sets the lookback period for the second EMA. A larger value creates a slower line used for identifying the broader trend.

FAQ

How can I identify a trend change using this indicator? A trend change is often signaled when the two EMAs cross. A bullish shift is indicated when the shorter EMA crosses above the longer one, while a bearish shift is indicated when it crosses below.

Can I change the source price for the calculations? The current version of this script calculates the EMAs based on the closing price of the bars to provide a consistent trend reading.

How do I get access to the Dual Exponential Moving Averages indicator? You can get access on the LuxAlgo Library for charting platforms like TradingView, MetaTrader (MT4/MT5), and NinjaTrader for free.

Free indicator

Get free access to this indicator on the platforms below.

TradingView
NinjaTrader
MetaTrader 4/5

Unlock the entire LuxAlgo Library

Every indicator, every strategy, full charts, and complete access to Quant — our AI agent.