All indicators

VWAP with period

Jul 12, 2018

Static chart image
Support and ResistanceVolume BasedSignals

The VWAP with period indicator provides a dynamic volume-weighted average price calculation over a user-defined lookback window, helping traders identify the average price based on both volume and price action within a specific timeframe.

Usage

The Usage section focuses on how the Volume-Weighted Average Price (VWAP) can be applied to identify market trends and potential reversal points. Unlike a standard VWAP that anchors to a specific start time (like a session open), this version uses a rolling period.

  • Trend Identification: When the price is trading above the VWAP line, it suggests a bullish sentiment within the specified period. Conversely, price trading below the VWAP suggests a bearish sentiment.
  • Mean Reversion: Traders often look for price to return to the VWAP line during overextended moves.
  • Support and Resistance: The rolling VWAP can act as a dynamic level of support or resistance.
  • Crossover Signals: The indicator includes built-in logic for price crossings, which can be used to signal potential entries or exits when price momentum shifts relative to volume-weighted value.

Details

The calculation of this indicator follows a standard VWAP formula but applies it over a sliding window (period) rather than a fixed anchor point.

The process involves five main steps:

  1. Typical Price: Calculating the average of High, Low, and Close (HLC3).
  2. Price-Volume Product: Multiplying the Typical Price by the Volume for each bar.
  3. Cumulative Price-Volume: Calculating the sum of the Price-Volume products over the selected period.
  4. Cumulative Volume: Calculating the total volume over the same period.
  5. Division: Dividing the Cumulative Price-Volume sum by the Cumulative Volume to arrive at the final VWAP value.

By using a moving period, the indicator remains sensitive to recent volume changes without being influenced by data from the very beginning of a trading session.

Settings

  • Period: Determines the number of bars used to calculate the rolling cumulative totals for volume and price. A higher period results in a smoother, slower-reacting line, while a lower period tracks price more closely.

FAQ

How do I use the rolling VWAP instead of a session VWAP?

A session VWAP resets at the start of every day, whereas this rolling VWAP maintains a consistent lookback window (e.g., 14 bars) regardless of session breaks, providing a continuous weighted average.

What does it mean when the price crosses the VWAP?

A crossover often indicates a shift in market control. A cross above suggests buyers are paying more than the average volume-weighted price of the recent period, while a cross below suggests sellers are in control.

How can I access this indicator?

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.