VolumePine Script v6Built-in Variable

ta.vwapVolume Weighted Average Price (Variable)

Volume Weighted Average Price. It uses hlc3 as its source series.

TradingView language reference

Syntax

Syntax
ta.vwap

Returns

series float

Remarks

This is the built-in VWAP series. ta.vwap() is the function form with additional parameters; compare both in the Pine reference for your version.

Code Examples

Pine Script v6 Example
//@version=6
indicator("VWAP (variable)")
plot(ta.vwap, color=color.teal)

Trading Applications

Quick access to session VWAP

Compare price with a volume-weighted reference, not an estimate of intrinsic value

Use as intraday support/resistance

Compare price to VWAP for bias direction

Related Functions

Frequently Asked Questions

ta.vwap is a built-in series representing volume-weighted average price, typically resetting each session. The variable form uses hlc3 as the price source in standard behavior.

The variable exposes the default VWAP series. In v6, ta.vwap(source) accepts a source; ta.vwap(source, anchor) adds an explicit reset condition. The three-argument form with stdev_mult returns a tuple of VWAP and bands. The variable takes no arguments and uses hlc3.

VWAP shows the volume-weighted average price for the session, used as a trading benchmark. It does not establish fundamental value or identify institutional orders. Many traders treat price above VWAP as relative strength and below as weakness on intraday timeframes.

Generate ta.vwap Code with AI

Draft Pine Script using ta.vwap with Pineify's AI Coding Agent, then review the arguments and test the result on your chart. Usage depends on your plan and available credits.