All indicators

Volume Weighted Exponential Moving Average

May 21, 2020

Static chart image
Support and ResistanceVolume BasedSignalsMoving Averages

The Volume Weighted Exponential Moving Average (VWEMA) indicator provides a dynamic trend-following tool that incorporates volume data into an exponential moving average calculation to better reflect market conviction and price action.

Usage

The VWEMA is primarily used to identify the prevailing trend while filtering out price fluctuations that occur on low relative volume. Because the indicator weights price by volume before applying an exponential decay, it reacts more quickly to price movements supported by high trading activity compared to a standard EMA.

Traders can utilize the VWEMA in several ways:

  • Trend Identification: When the price remains above the VWEMA, the trend is considered bullish; when below, the trend is considered bearish.
  • Dynamic Support and Resistance: In trending markets, the VWEMA often acts as a level of dynamic support or resistance where price may find a floor or ceiling.
  • Alternative to VWAP: Unlike the standard Volume Weighted Average Price (VWAP) which often resets daily, the VWEMA provides a continuous rolling calculation suitable for long-term trend analysis.
  • Crossover Signals: The script includes built-in alerts for price crossovers, which can signal potential entries or trend reversals when the price breaks through the volume-weighted average.

Details

The VWEMA calculation deviates from a standard moving average by multiplying the source price by the volume of each bar. This product is then smoothed using an exponential moving average (EMA) and subsequently divided by the EMA of the volume itself. This mathematical approach ensures that periods with higher trading activity have a greater impact on the indicator's trajectory.

A unique feature of this script is the "Simulative Volume" option. In markets where tick volume or actual volume data is unavailable or unreliable, the script calculates a synthetic volume proxy. This proxy is derived from the price range, specifically the absolute difference between the current and previous close, combined with the "wicks" of the candle (the distance between the high/low and the candle body). This ensures the tool remains functional across various asset classes and exchanges.

Settings

  • Period: Determines the lookback window for the exponential smoothing. Higher values result in a smoother line that is less sensitive to short-term price changes.
  • Simulative Volume: When enabled, the script calculates an internal volume proxy based on price volatility instead of using the exchange-provided volume data.
  • Source: Defines which price data point is used for the calculation (e.g., HLC3, Close, Open).
  • Offset: Allows the user to shift the indicator forward or backward on the horizontal axis.

FAQ

How does VWEMA differ from a standard Volume Weighted Moving Average (VWMA)? The standard VWMA uses a simple moving average (SMA) base, which can be prone to "barking" or lagging. The VWEMA uses an exponential calculation, providing a smoother output that reacts more efficiently to recent high-volume price shifts.

When should I use Simulative Volume? Simulative Volume is best used on instruments that do not provide real-time volume data, such as certain Forex pairs or Indices, or when you want to weight the average based on price volatility rather than raw transaction counts.

How can I access the Volume Weighted Exponential Moving Average? 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.