All indicators

Multi-Timeframe VWAP

Aug 22, 2017

Static chart image
Support and ResistanceVolume BasedVolatility

The Multi-Timeframe VWAP indicator provides a comprehensive view of Volume Weighted Average Price across multiple horizons, including daily, weekly, monthly, quarterly, and yearly periods, to identify key institutional support and resistance levels.

Usage

The Usage section describes how the script can be used to identify trend direction and potential reversal zones. Traders can use the various anchor periods to observe how price interacts with volume-weighted benchmarks over different time scales.

  • Institutional Benchmarks: Multi-year and yearly VWAPs often act as significant psychological and liquidity levels for long-term investors.
  • Previous Period VWAP: The script can display the closing VWAP from the previous period. These levels often align closely with HLC3 standard pivots and serve as magnets for price action in the current session.
  • Standard Deviation Bands: By enabling the STDEV bands, users can visualize volatility around a selected timeframe (e.g., Daily or Weekly). These bands can be used to identify overextended market conditions. Unlike Bollinger Bands, which use a fixed lookback, these bands use an expanding lookback that resets at the start of each new session.

Details

The script calculates VWAP by accumulating the product of price (HLC3) and volume, then dividing by the total accumulated volume for the specific period.

  • Standard Deviation Calculation: The standard deviation is calculated using an incremental weighted method. This ensures that the volatility measurement is relative to the volume-weighted mean of the current anchor period (Day, Week, etc.) rather than a simple moving average.
  • Anchoring: Each VWAP line resets at the start of its respective timeframe. For example, the Weekly VWAP resets at the first bar of the trading week.
  • Labeling: Dynamic labels are provided at the end of the chart to identify which timeframe each line represents, along with its current numerical value.

Settings

  • STDEV 1/2/3: Sets the multiplier for the first, second, and third standard deviation bands.
  • Show STDEV Bands: Toggles the visibility of the volatility bands.
  • Show Previous VWAP: Displays the final VWAP value of the prior session as a horizontal level.
  • Show Previous STDEV = 1 Bands: Displays the first standard deviation level from the prior session.
  • STDEV Bands Timeframe: Determines which timeframe (Day, Week, Month, Quarter, or Year) is used to calculate the displayed bands.

Labels

  • VWAP Labels (Day/Week/Month/Quarter/Year): Toggles labels for individual VWAP timeframes.
  • Color Inputs: Customizes the color for each specific timeframe label.

Miscellaneous

  • Text Color: Sets the color for the text inside labels.
  • Label Size: Adjusts the size of the on-chart labels (Auto, Tiny, Small, Normal, Large, Huge).
  • Label Offset: Moves labels to the right to prevent overlap with price action.
  • Show Price Values: Toggles the numerical price display on labels.
  • Show Session Type: Toggles the session name (e.g., "Day") on labels.

FAQ

How do I change which timeframe the bands are based on? You can adjust the "STDEV Bands Timeframe" setting in the inputs menu to switch the volatility bands between Daily, Weekly, Monthly, Quarterly, or Yearly anchors.

Why do the bands look different from Bollinger Bands? Bollinger Bands use a fixed lookback period (e.g., 20 bars). This tool uses an anchored lookback that grows from the start of the session, providing a cumulative view of volatility since the period began.

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.