← Back to Home
Trading Signal / Indicator
βš–οΈ

VWAP β€” Volume Weighted Average Price

The benchmark price that institutions use to evaluate trade quality.

Start Automating Free β†’

Want to automate this strategy? Try auto-Trading free β€” no credit card required.

VWAP β€” Volume Weighted Average Price chart

Overview

What is VWAP β€” Volume Weighted Average Price?

VWAP (Volume Weighted Average Price) is the average price of an asset weighted by volume, calculated from the open of the trading session. It represents the "true average price" paid by all market participants during the day and is the primary benchmark used by institutional traders to evaluate whether they executed their orders at a good price.

VWAP = Cumulative (Price Γ— Volume) Γ· Cumulative Volume

Because VWAP resets at the start of each session, it is primarily an intraday tool. Price above VWAP is considered bullish (buyers are in control); price below VWAP is considered bearish. Institutional algorithms often target VWAP when executing large orders to avoid moving the market, which means VWAP acts as a strong magnet for intraday price.

Anchored VWAP (AVWAP) extends the concept by allowing traders to anchor the calculation to any significant event: an earnings announcement, a swing high, the start of an uptrend. This makes AVWAP useful beyond the intraday context for swing and position traders.

Common VWAP strategies include: buying pull-backs to VWAP in uptrending sessions, using VWAP as a dynamic intraday support/resistance, and trading VWAP band expansions (similar to Bollinger Bands but volume-weighted).

How It Works in auto-Trading

Automate It

auto-Trading calculates session VWAP and AVWAP in real time, with user-configurable anchor points. Strategy blocks include VWAP crossover signals, deviation band alerts, and session open relative to VWAP (bullish if price opens above). The VWAP band indicator displays Β±1 and Β±2 standard deviation bands around the VWAP for additional context.

Try Free β†’

Strategy Code

Pick a script below, copy it, and use it on your chart.

Pine Script (TradingView)

This is a TradingView Pine Script example for this indicator. Paste it into the TradingView Pine Editor, add it to your chart, and adjust inputs for your market and timeframe.

//@version=6
strategy("VWAP β€” Volume Weighted Average Price", overlay=true)
v = ta.vwap(close)
emaLen = input.int(20, "Trend EMA")
trend = ta.ema(close, emaLen)

Get full strategy code access

Enter your email address and full name to unlock this strategy code.

ThinkScript (thinkorswim)

This is a thinkorswim ThinkScript example for this indicator. Open thinkorswim, create a custom study, paste the script, and apply it to your chart.

def vwapVal = VWAP();
def trend = ExpAverage(close, 20);
def buySignal = close crosses above vwapVal and close > trend;
def sellSignal = close crosses below vwapVal;
AddOrder(OrderType.BUY_AUTO, buySignal, close, 1, Color.GREEN, Color.GREEN, "VWAP Buy");

Get full strategy code access

Enter your email address and full name to unlock this strategy code.

Ready to automate VWAP β€” Volume Weighted Average Price?

Join thousands of traders who use auto-Trading to execute this strategy automatically, 24/7.

Get Started Free β†’

All Strategies & Signals

Continue Learning

Trading Strategies

Trading Signals & Indicators