All indicators

Exponential Moving Average (Set of 3)

Jan 16, 2018

Static chart image
SignalsMoving Averages

The Exponential Moving Average (Set of 3) indicator consolidates three customizable exponential moving averages into a single tool to help traders identify trend direction, momentum, and potential reversal points while optimizing chart space.

Usage

The Usage section describes how the script can be used to interpret market trends and price action. By plotting three EMAs of varying lengths—typically categorized as very fast, fast, and slow—traders can visualize the relationship between short-term and long-term price movements.

  • Trend Identification: When the EMAs are stacked in order (e.g., Very Fast above Fast, and Fast above Slow), it confirms a strong bullish trend. Conversely, if the EMAs are stacked with the Slow EMA on top and the Very Fast EMA at the bottom, a bearish trend is indicated.
  • Crossover Strategies: Traders can monitor the interaction between the different periods. For instance, a "Very Fast" EMA crossing over the "Slow" EMA may signal a potential entry point for a long position, while crossing under may signal a short opportunity.
  • Dynamic Support and Resistance: In trending markets, price often retraces to these moving averages, which act as dynamic support or resistance zones.

Details

The indicator calculates three distinct exponential moving averages using a standard multiplier formula: $2 / (length + 1)$. Unlike simple moving averages, the EMA gives more weight to recent price data, making it more responsive to new information and volatility.

A unique feature of this script is the "Drop first N candles" function. This allows the user to exclude a specific number of initial candles from the calculation, which can be useful for avoiding the distortion caused by gaps or high volatility at the start of a trading session or historical data set. The script also includes built-in alert logic that triggers when the Very Fast MA crosses the Slow MA, facilitating timely decision-making.

Settings

Lengths

  • Very Fast Length: Sets the period for the first exponential moving average (default is 50).
  • Fast Length: Sets the period for the second exponential moving average (default is 100).
  • Slow Length: Sets the period for the third exponential moving average (default is 200).

Calculation

  • Source: Determines the price data used for the EMA calculations (e.g., Close, Open, High, Low).
  • Drop first N candles: Specifies the number of initial bars to be ignored by the indicator before it begins plotting.

FAQ

How do I interpret the three EMAs for trend strength? Trend strength is often determined by the "fanning out" of the averages. When the distance between the three lines increases, it suggests accelerating momentum in the current trend direction.

Can I use this indicator for intraday and swing trading? Yes, the lengths are fully adjustable. For intraday trading, users may prefer shorter lengths like 9, 21, and 50, whereas swing traders may prefer the default 50, 100, and 200 settings.

How do I access the Exponential Moving Average (Set of 3)? 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.