All indicators

EVWMA MACD Strategy

Nov 7, 2019

Static chart image
Volume BasedSignalsOscillatorsMoving Averages

The EVWMA MACD Strategy indicator is a trend-following trading tool that utilizes the Elastic Volume Weighted Moving Average (EVWMA) to generate momentum-based signals through a MACD-style calculation.

Usage

The EVWMA MACD Strategy is used to identify trend shifts and momentum cycles by comparing two volume-weighted averages of different lengths. Traders can interpret the output in several ways:

  • Crossovers: A bullish signal is generated when the fast EVWMA crosses above the slow EVWMA (MACD line crossing above zero). Conversely, a bearish signal is generated when the fast EVWMA crosses below the slow EVWMA.
  • Histogram: The histogram shows the difference between the MACD line and the Signal line, helping to visualize accelerating or decelerating momentum.
  • Signal Line: Similar to a traditional MACD, the signal line (EMA of the MACD value) can be used to identify shorter-term momentum shifts within the broader trend.

The strategy automatically plots entry signals based on the crossover of the underlying EVWMA lines.

Details

The Elastic Volume Weighted Moving Average (EVWMA) is a unique moving average where the smoothing period is determined by the volume itself. Unlike standard moving averages that use a fixed time period, the EVWMA incorporates volume naturally, making it an approximation of the average price paid per share over a specific volume "window."

In this implementation:

  1. Volume Period: The user defines the volume window as the sum of volume over the last X bars.
  2. Calculation: The EVWMA is calculated recursively, where the current price is weighted by the current volume relative to the total volume period.
  3. MACD Logic: The script calculates a "Fast" and "Slow" EVWMA. The difference between these two forms the MACD line. A signal line (EMA) is then applied to this result to create the histogram.

Settings

  • Fast Sum Length: Determines the volume lookback period for the fast EVWMA calculation.
  • Slow Sum Length: Determines the volume lookback period for the slow EVWMA calculation.
  • Signal Smoothing: The period used to calculate the EMA of the MACD value, creating the signal line.

FAQ

How do I interpret the histogram colors?

The histogram is color-coded to show momentum. Bright green indicates positive momentum increasing, while dull green indicates positive momentum fading. Bright red indicates negative momentum increasing, and dull red indicates negative momentum fading.

What is the advantage of using EVWMA over standard EMA?

EVWMA adjusts its sensitivity based on volume. In high-volume periods, the average reacts more quickly to price changes, potentially offering a more accurate representation of market participation than time-based averages.

How can I access this tool?

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.