All indicators

All-In-One Auto Anchored VWAPs

May 16, 2023

Static chart image
Volume BasedPivot Based (Retrospective)Volatility

The All-In-One Auto Anchored VWAPs indicator provides a comprehensive solution for tracking Volume Weighted Average Price from multiple automated anchor points, enabling traders to identify key institutional levels across various timeframes. This tool automatically calculates and plots up to three independent VWAPs, each with customizable anchor periods, start conditions, and optional standard deviation bands.

Usage

The Usage section allows users to monitor different market cycles simultaneously by selecting varied anchor periods for each of the three available VWAPs.

  • Period Selection: Users can set the anchor period to Daily, Weekly, Monthly, Quarterly, Yearly, or All Time.
  • Event-Based Anchors: Beyond fixed timeframes, the script can anchor to specific Pivots (based on a lookback setting) or Session starts.
  • Price Anchoring: For each period, you can choose to anchor the calculation to the Open, High, or Low price of that specific interval.
  • Trend Identification: Use the standard deviation bands to identify overextended price action relative to the volume-weighted mean.

Details

The indicator manages historical and real-time data to ensure anchor points are updated dynamically. When a new period starts or a new pivot is detected, the script resets the cumulative volume and price-volume calculations.

  • Pivots and Sessions: Pivots are determined by the "Left Bars for Pivots" setting, identifying significant local highs or lows. Session anchors utilize a user-defined session string and timezone to reset at specific times of the day.
  • Historical Data: The "Show Historical Periods" toggle allows you to choose between seeing every historical anchor path or only the current active ones, which helps in cleaning up the chart for real-time analysis.

Settings

Settings

  • Timezone: Sets the reference timezone for session and period resets.
  • VWAP Source: Determines the price source used in the VWAP calculation (e.g., Close, hlc3).
  • Std Deviation Multiplier: Controls the width of the optional standard deviation bands.
  • Left Bars for Pivots: Specifies the number of bars required to confirm a pivot high or low.
  • Session Time: Defines the start and end times for the session-based anchor.

AVWAPs

  • Show Historical Periods?: Toggles whether to display past VWAP paths or only the most recent one.
  • VWAP [1-3] Period: Selects the anchor frequency (Daily, Weekly, etc.).
  • Colour: Sets the visual color for the specific VWAP line and its bands.
  • Open/High/Low Anchor: Selects which price point within the period triggers the anchor.
  • With Std Deviation Band: Enables or disables the visual bands for that specific VWAP.

FAQ

How do I use pivots as an anchor? Set the "VWAP Period" to "Pivot" and ensure you have either "High Anchor" or "Low Anchor" selected, as pivots cannot be anchored to an "Open" value.

Can I display all three VWAPs at once? Yes, you can enable all three VWAPs independently, allowing you to see (for example) a Daily, Weekly, and Monthly VWAP on the same chart.

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.