Volume Indicators

Volume Weighted Momentum | AlfaTactix

📖 6 min read

📝 1,058 words

🏷️ Volume Indicators

In this page: what Volume Weighted Momentum is, how it works, when to use it, a practical example with code, and a bonus tip.

Use Volume Weighted Momentum in a real strategy—no code required

Create a free account to save your progress and build strategies with this indicator and 80+ others in minutes. Backtest, then export to MQL5.


Volume Weighted Momentum Indicator Explanation

The Volume Weighted Momentum (VWM) is a momentum indicator that combines price momentum with volume weighting to measure the strength of price movements relative to trading activity. Developed to provide a more accurate representation of momentum by incorporating volume, VWM multiplies price momentum (typically measured as rate of change or price difference) by volume, creating a measurement that reflects both the magnitude of price movement and the conviction behind it. The indicator oscillates around a zero line, with positive values indicating upward momentum with volume support and negative values indicating downward momentum with volume support. VWM helps traders identify momentum shifts with volume confirmation, providing more reliable signals than price-only momentum indicators.

How Volume Weighted Momentum Works: VWM is calculated by multiplying price momentum by volume, then smoothing the result with a moving average. The formula is: Price Momentum = Current Close - Close n periods ago (or Rate of Change), VWM = (Price Momentum × Volume), and VWM (smoothed) = SMA(VWM, period), typically using 14 periods for smoothing. When prices rise with high volume, VWM is positive and large, indicating strong upward momentum with conviction. When prices fall with high volume, VWM is negative and large, indicating strong downward momentum with conviction. The volume weighting ensures that momentum signals are only considered significant when supported by trading activity.

When to Use Volume Weighted Momentum:

  • Momentum Confirmation with Volume: VWM is highly effective at identifying momentum shifts with volume confirmation. Positive and rising VWM indicates strong upward momentum with volume support, while negative and falling VWM indicates strong downward momentum with volume support. The volume component adds reliability to momentum signals.
  • Trend Strength Identification: VWM can identify trend strength by measuring momentum relative to volume. When VWM is consistently positive and increasing in an uptrend, it confirms strong trend with volume backing. Conversely, when VWM is consistently negative and decreasing in a downtrend, it confirms strong trend with volume backing.
  • Divergence Analysis: VWM divergence occurs when price makes new highs or lows while VWM fails to confirm, often signaling potential trend reversals. Bullish divergence (price makes lower low, VWM makes higher low) suggests upward momentum building with volume, while bearish divergence (price makes higher high, VWM makes lower high) suggests downward momentum building with volume.

Advantages:

  • Provides momentum measurement that incorporates volume, making it more reliable than price-only momentum indicators. The volume weighting filters out weak momentum signals that occur on low volume.
  • Works effectively across multiple timeframes and asset classes, including stocks, forex, commodities, and cryptocurrencies, particularly in markets where volume data is available and reliable.
  • Helps identify momentum shifts early through volume-weighted analysis, providing clear signals for entry and exit points. The volume confirmation improves reliability.

Limitations:

  • VWM requires reliable volume data, which may not be available or accurate in all markets, particularly in forex markets where volume data can be less reliable. The indicator's effectiveness depends on the quality of volume information.
  • The indicator may lag behind price movements during rapid market changes, as it relies on moving average smoothing. This lag can result in delayed entry and exit signals.
  • VWM does not provide information about overbought or oversold conditions on its own, only momentum direction and strength with volume confirmation. Traders should combine it with other indicators for more comprehensive analysis.

In summary, Volume Weighted Momentum is a valuable volume indicator that provides momentum measurement with volume weighting, making it ideal for identifying momentum shifts with volume confirmation and improving signal reliability. For comprehensive understanding, refer to technical analysis literature on volume-weighted momentum indicators, Investopedia's Volume Weighted Momentum guide, and academic research on volume-price relationships in financial markets published in journals such as the Journal of Finance and the Review of Financial Studies.

Practical Example: Using the Volume Weighted Momentum Indicator in a Trading Strategy

The Volume Weighted Momentum (VWM) is a momentum indicator used to identify momentum shifts with volume confirmation through volume-weighted price momentum analysis. In a trading strategy, the VWM indicator helps traders make entry and exit decisions based on momentum direction and volume support.

Scenario: You're creating a trend-following strategy for Apple stock (AAPL) on a daily chart. You want to buy when VWM crosses above zero and continues to rise (indicating upward momentum with volume support), and sell when VWM crosses below zero or falls significantly (indicating downward momentum or weakening upward momentum).

Strategy Logic:

  • Calculate the VWM(14) using a 14-period smoothing. VWM = (Price Momentum × Volume), smoothed with SMA. The indicator oscillates around zero, with positive values indicating upward momentum with volume support and negative values indicating downward momentum with volume support.
  • Buy signal: When VWM crosses above zero and continues to rise, indicating upward momentum beginning with volume confirmation.
  • Sell signal: When VWM crosses below zero or falls significantly, indicating downward momentum beginning or upward momentum weakening.

Backtrader Example:

import backtrader as bt

class VWMTrendStrategy(bt.Strategy):
    params = dict(
        vwm_period=14,
        momentum_period=12
    )
    
    def __init__(self):
        # Calculate Price Momentum: Rate of Change
        price_momentum = bt.ind.ROC(self.data.close, period=self.p.momentum_period)
        # Calculate VWM: Price Momentum × Volume
        vwm_raw = price_momentum * self.data.volume
        # Smooth with SMA
        self.vwm = bt.ind.SMA(vwm_raw, period=self.p.vwm_period)
        
    def next(self):
        if not self.position:
            # Buy when VWM crosses above zero and rising
            if (self.vwm[0] > 0 and self.vwm[0] > self.vwm[-1] and 
                self.vwm[-1] <= 0):
                self.buy()
        else:
            # Sell when VWM crosses below zero or falling
            if (self.vwm[0] < 0 or 
                (self.vwm[0] < self.vwm[-1] and self.vwm[-1] >= 0)):
                self.sell()

# Usage
cerebro = bt.Cerebro()
cerebro.addstrategy(VWMTrendStrategy)

Expected Outcome: By using the VWM indicator, your strategy identifies momentum shifts with volume confirmation, helping you enter trades when momentum is building with volume support and exit when momentum weakens or reverses. This approach leads to better momentum identification, improved signal reliability, and enhanced entry timing by requiring volume confirmation for momentum signals.

💡 Bonus Tip

Consider using VWM in combination with price action analysis for confirmation. When VWM is positive and price is making higher highs and higher lows, it suggests strong upward momentum with volume backing and higher probability of trend continuation. This technique, documented in technical analysis literature, can significantly improve the accuracy of VWM-based trading strategies.

Using the VWM indicator ensures your strategy captures momentum shifts effectively with volume confirmation, improving entry and exit timing based on volume-weighted momentum analysis.

Use Volume Weighted Momentum in a real strategy—no code required

Create a free account to save your progress and build strategies with this indicator and 80+ others in minutes. Backtest, then export to MQL5.

Try Strategy Builder

Use this indicator in Strategy Builder — free

Create free account