All indicators

VWMA/SMA Breakout and Divergence Detector

Jun 23, 2019

Static chart image
Dynamic OverlaysVolume BasedSignalsDivergencesMoving Averages

The VWMA/SMA Breakout and Divergence Detector indicator compares Simple Moving Averages (SMA) and Volume Weighted Moving Averages (VWMA) to identify volume-supported trends, potential breakouts, and bearish or bullish divergences.

Usage

The indicator can be used to confirm the strength of a trend by analyzing the relationship between price action and volume. Since the VWMA accounts for volume while the SMA does not, the distance and crossover between these lines provide insight into market conviction.

  • Trend Confirmation: In a healthy uptrend, the VWMA should ideally be higher than the SMA of the same length, indicating that higher volume is occurring at higher price levels. Conversely, in a downtrend, a VWMA below the SMA suggests volume is supporting the move lower.
  • Divergence Detection: If the price is rising but the VWMA falls below the SMA, it suggests a "bearish divergence," indicating that the uptrend lacks volume support and may be weakening.
  • Breakout Identification: Crossovers between the fast and slow lines can signal the start of a new trend. Typically, a VWMA crossover (fast crossing slow) that is quickly followed by an SMA crossover serves as a confirmation of a bullish or bearish breakout.

Details

The tool plots four distinct lines on the chart:

  • Fast SMA & Fast VWMA: Displayed as dotted lines, these represent short-term momentum and volume trends.
  • Slow SMA & Slow VWMA: Displayed as solid lines, these represent longer-term trend baselines.

The indicator uses dynamic background fills to help traders visualize the relationship between volume and price. When the VWMA is above the SMA (indicating volume support), the area between them is shaded green. When the SMA is above the VWMA (indicating a lack of volume support or bearish pressure), the area is shaded red.

Settings

  • Fast VWMA Length: Sets the lookback period for the short-term Volume Weighted Moving Average.
  • Slow VWMA Length: Sets the lookback period for the long-term Volume Weighted Moving Average.
  • Fast SMA Length: Sets the lookback period for the short-term Simple Moving Average.
  • Slow SMA Length: Sets the lookback period for the long-term Simple Moving Average.
  • Source: Determines the price data used for all calculations (e.g., Close, Open, HL2).

FAQ

How do I interpret the colored fills on the chart?

A green fill indicates that the Volume Weighted Moving Average is higher than the Simple Moving Average, suggesting volume-backed momentum. A red fill indicates the Simple Moving Average is higher, suggesting volume is not supporting the current price level or trend.

What is the significance of the dotted vs. solid lines?

Dotted lines represent the "Fast" settings (shorter periods), which react quickly to price and volume changes. Solid lines represent the "Slow" settings (longer periods), providing a more stable view of the underlying trend.

How can I access the VWMA/SMA Breakout and Divergence Detector?

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.