Anchored VWAP guide
Anchored VWAP: define the anchor before reading the line
Anchored VWAP is a volume-weighted average that starts at a bar or event you choose instead of resetting only at the regular session boundary.
Direct answer
Anchored VWAP equals cumulative price multiplied by volume divided by cumulative volume, with both totals beginning at a selected anchor. Use it to describe volume-weighted price since a reproducible event or bar. Being above or below the line describes location relative to that average; it does not predict the next move.
What to set before testing
Formula
Cumulative price-volume / cumulative volume
Start
A user-selected bar, date, or event
Common use
Measure value since a defined market event
Main risk
Moving the anchor after seeing the result
Anchored VWAP and session VWAP are different questions
Both calculations weight price by volume. The start rule determines which bars are included and therefore which market question the line can answer.
| Decision | Session VWAP | Anchored VWAP |
|---|---|---|
| Starting point | A defined session or period boundary | A bar, date, swing, gap, or event chosen by the user |
| Question answered | Where is volume-weighted value for this session? | Where is volume-weighted value since this event? |
| Typical scope | Intraday analysis with a regular reset | Intraday or higher-timeframe analysis from a stated anchor |
| Failure mode | Comparing lines built from different session definitions | Choosing an anchor because it makes the past move look convincing |
A test workflow you can audit
- 1
Write the market question
Decide whether the line should describe today's session, price since an earnings bar, a dated gap, or another event before opening the chart.
- 2
Record the anchor
Save the symbol, timezone, date, timestamp, chart timeframe, and whether extended-hours volume is included.
- 3
Read the calculation
Compare price with the line and note volume at each interaction. Label a cross, touch, or rejection as an observation until a rule defines it.
- 4
Test the rule separately
Keep the anchor rule fixed, include costs and slippage, and review a later sample before treating the result as useful evidence.
Notes from the chart review
These checks keep the rule separate from the story told after a move has already happened.
Lock the anchor timestamp before reviewing the candles that follow it.
Record the session and extended-hours policy because different volume inputs can produce different lines.
Treat support or resistance around the line as an observation to test, not as a guaranteed reaction.
Turn an anchored VWAP idea into inspectable Pine Script
Pineify's Pine Script AI Coding Agent can turn a written anchor, source, plot, and test rule into editable TradingView code. The output still needs review and testing on the chart.
Create a Pine Script v6 indicator for TradingView that calculates Anchored VWAP from a user-selected timestamp using HLC3 and volume. Start both cumulative totals at the first bar on or after the timestamp, plot the line, show the anchor time in the settings, and do not add buy or sell claims. Include an optional session filter for extended-hours data.Turn the rule into inspectable Pine ScriptAnchored VWAP definition and formula
Anchored VWAP is the running average of a price source weighted by volume from a chosen starting point. With HLC3 as the source, each bar contributes (high + low + close) / 3 multiplied by that bar's volume.
The running price-volume total is divided by the running volume total. A high-volume bar therefore moves the line more than a low-volume bar at the same price distance. The calculation is descriptive: it summarizes included trades rather than forecasting the next candle.
How to choose an anchor on TradingView
TradingView's Anchored VWAP drawing tool lets the user select the starting point on a chart. For a repeatable test, translate that visual choice into a rule another person could reproduce from a timestamp or event description.
- Use the first bar after a dated earnings release, gap, or session open when that event is the question.
- Record the chart timezone and whether the anchor refers to regular or extended hours.
- Use a fixed pivot definition if the anchor is a swing rather than a dated event.
- Do not move the anchor after reviewing the later price path.
How to read an anchored VWAP line
Price above the line is above the volume-weighted average since the anchor; price below it is below that average. A touch, cross, or rejection can become a rule, but the chart observation alone is not a signal or a return estimate.
A line can appear to act as support or resistance because many included trades cluster around that price. Check the same definition across more than one sample and keep the market, timeframe, volume policy, and cost assumptions visible.
- Describe the event and timestamp before interpreting the level.
- Separate a price-location observation from an entry, exit, or risk rule.
- Compare the line with volume and other context without claiming that one indicator confirms a trade.
Build and test an anchored VWAP rule
A Pine Script implementation needs an explicit anchor condition, price source, volume policy, and plot behavior. If the rule is used in a strategy, also define closed-bar timing, entry and exit assumptions, commission, slippage, and a holdout period.
The VWAP Calculator can check the arithmetic from OHLCV rows and a selected starting bar. The Pine Script AI Coding Agent or Visual Pine Script Editor can then express the same definition as editable code for TradingView testing.
- Keep the anchor fixed across the design and validation samples.
- Check whether missing, zero, or extended-hours volume changes the calculation.
- Review drawdown, losing trades, and costs instead of relying on one headline metric.
Continue the VWAP research
VWAP vs Anchored VWAP
Compare the two starting rules and keep the same assumptions when testing them.
VWAP indicator for TradingView
Review the indicator formula, inputs, bands, and Pine Script implementation.
VWAP calculator
Calculate a volume-weighted average from price and volume rows.
VWAP trading strategy
Study rule-based VWAP entries and exits before testing a setup.
VWAP strategy optimizer
Compare VWAP parameters without hiding costs or holdout results.
Anchored VWAP in Pine Script with deviation bands
Read a separate Pine Script example for anchored VWAP and deviation bands.
Visual Pine Script Editor
Build the indicator logic visually, then inspect the generated Pine Script before testing it in TradingView.
Sources
- Volume Weighted Average Price (VWAP)
TradingView Help Center. Documents the VWAP formula, anchor periods, source input, bands, and timeframe behavior. Checked July 18, 2026.
- Anchored VWAP drawing tool
TradingView Help Center. Explains that Anchored VWAP starts at a point selected by the user on the chart. Checked July 18, 2026.
Frequently asked questions
This page is an educational information tool, not investment advice or a recommendation to trade. Examples are test definitions, not live signals, historical results, or promises of returns. VWAP is based on past price and volume, and actual fills can differ from chart prices. Check current market data, costs, product rules, and your own risk limits before trading.
Tools for the next test
VWAP vs Anchored VWAP
Compare session VWAP and Anchored VWAP by starting point, reset, timeframe, and test use case.
What Is VWAP?
Learn the VWAP formula, session reset, chart meaning, and calculation limits with a small worked example.
VWAP Calculator
Calculate VWAP (Volume Weighted Average Price) from OHLC and volume data. Supports anchored VWAP from specific dates for institutional trading levels.
VWAP Reclaim Strategy
Define a closed-bar VWAP reclaim, entry, invalidation, session window, and cost assumptions before testing.
Put the VWAP rule in writing
Pineify turns a plain-language setup into Pine Script you can read, edit, and test. The script does not predict the next price.
Build a VWAP test rule