All indicators

Difference % between PRICE and VWAP V2

Jun 28, 2016

Static chart image
Volume BasedSignalsVolatility

The Difference % between PRICE and VWAP V2 indicator tracks the percentage deviation between the current market price and the Volume Weighted Average Price (VWAP) across various timeframes to identify overextended market conditions.

Usage

The Usage of this tool focuses on identifying how far price has drifted from its average value weighted by volume. Traders can use the histogram to visualize the current percentage difference, where higher values often indicate exhaustion or potential mean reversion points.

  • Histogram Analysis: The histogram changes color as the percentage difference crosses user-defined threshold levels (Level 1 through Level 5).
  • Average Deviation: An integrated area plot shows the Simple Moving Average (SMA) of the percentage difference, helping users understand the historical average volatility relative to the VWAP.
  • Bar Coloring: Enabling the bar coloring feature allows users to see these overextended conditions directly on their price candles, facilitating easier trend and reversal identification.

Details

The script calculates the VWAP based on a user-selected anchor timeframe (e.g., Daily, Weekly, Monthly). It determines the percentage difference using the formula: abs(Price - VWAP) * 100 / Price. This normalization allows for consistent comparison across different assets regardless of their nominal price. The indicator also incorporates a custom SMA calculation of this percentage difference over a defined period to provide a baseline for "normal" price action.

Settings

  • Color bars/Candles?: Toggles the highlighting of price bars on the main chart based on the deviation levels.
  • Length: Sets the period for the Simple Moving Average (SMA) of the percentage difference.
  • Timeframe: Defines the anchor period for the VWAP calculation (e.g., 'D' for Daily, 'W' for Weekly).
  • Source: The price input used for calculations (default is Close).
  • Level 1 - 5: Custom percentage thresholds that trigger visual color changes in the histogram and bar colors.

FAQ

How do I access the Difference % between PRICE and VWAP V2?

You can get access on the LuxAlgo Library for charting platforms like TradingView, MetaTrader (MT4/MT5), and NinjaTrader for free.

Which timeframe should I use for the VWAP anchor?

This depends on your trading style; intraday traders often use 'D' (Daily), while swing traders may prefer 'W' (Weekly) or 'M' (Monthly) to identify long-term value areas.

What do the different histogram colors represent?

The colors represent different tiers of price deviation. As the percentage difference crosses higher levels (Level 1 through Level 5), the colors typically shift from neutral blues to more intense reds, signaling increasing distance from the VWAP.

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.