All scripts
Pro Β· Invite-only on TradingView
Free Β· Open source
Multi-Anchor VWAP
Five average prices at a glance β and where they converge.
- Type
- Five VWAPs + clusters + distance table
- Replaces
- VWAP
- Recommended
- 5 minutes to daily chart
- Price
- Free, open source
Multi-Anchor VWAP shows you the volume-weighted average price (VWAP) from five different starting points at once: since the start of the session, the week and the month, and since the last confirmed swing high and swing low. A table tells you how far price is from each VWAP β measured in ATR, so itβs comparable on any market. And where several VWAPs sit close together, the script marks the area. This page explains what you do with it and why.
Overview
At a glance
What does it do?
It shows the average price traded since the session, the week, the month and the last turning points β and where these prices coincide.
What do I do with it?
You read who is currently in profit, use the lines as reference zones for pullbacks and see when price has run too far.
Why?
Many large participants measure their execution against the VWAP. Above it, buyers are in profit on average β below it, sellers are. That shapes who defends and who gives up.
What do I get?
A calm framework for every chart: you know which prices matter before price gets there, instead of drawing lines by feel.
On your chart in 3 minutes
Quickstart
- 01
Add it to your favorites
Open the script page on TradingView (button at the top of this page) and click Add to favorites (the star icon).
- 02
Add it to your chart
At the top of the chart, click Indicators, choose Favorites on the left and click Multi-Anchor VWAP. Alternatively, search for βIndicatrβ in the Indicators window.
- 03
Pick a market with real volume
Start with a liquid stock, an ETF like SPY or a future, on the 5- to 15-minute chart for day trading or the 1h to daily chart for swings.
- 04
Keep the defaults
All five VWAPs are on, and so are clusters and the table. Only change something once you understand what it does.
The chart explained
What you see on the chart
- 1Session VWAP (grey) Restarts every trading day. Intraday charts only.
- 2Weekly VWAP (blue) Restarts at the beginning of every week.
- 3Monthly VWAP (purple) Restarts at the beginning of every month.
- 4Swing-high VWAP (red) Anchored at the last confirmed swing high.
- 5Swing-low VWAP (green) Anchored at the last confirmed swing low.
- 6Cluster shading Light background when price trades into a VWAP cluster.
- 7Distance table Every VWAP with its level and distance in ATR.
Elements 1 to 3
Session, weekly and monthly VWAP
Three time windows, three groups of participants: day traders, swing traders and larger funds that buy or sell over weeks.
What does it do?
Each line shows the average price, weighted by volume, since the start of its period. When a new day, week or month begins, the line jumps and starts over.
What do I do with it?
You read which side price is on. Above the session VWAP, the dayβs buyers are in profit; above the monthly VWAP, the whole monthβs buyers are.
Why?
Those in profit are more likely to defend their position. Those at a loss like to get out when price returns to their entry. Thatβs why price reacts at VWAPs more often than at random prices.
What do I get?
You see whether short- and longer-term participants are on the same side β or whether the day is working against the month.
Elements 4 and 5
Swing VWAPs: anchored at the high and the low
Two VWAPs donβt start by the calendar but at turning points: at the last confirmed swing high (red) and at the last confirmed swing low (green).
What does it do?
The script looks for highs and lows that arenβt exceeded by 10 candles on each side. Once such a point is confirmed, a new VWAP starts exactly at the candle of the high or low.
What do I do with it?
The red VWAP shows the average price of everyone who got in since the last high. The green one that of everyone since the last low. You use them as tests of strength and weakness.
Why?
After a high, many have bought too expensive. If price climbs back above the red VWAP, these buyers are back in profit on average β the pressure to sell eases.
What do I get?
Levels based on the actual market structure instead of a clock β automatically, without placing anchors by hand.
Element 6
Clusters: where several VWAPs converge
What does it do?
If at least three VWAPs lie within 0.3 ATR of each other and price closes in that area, the candle gets a light background. The table then shows the range of the cluster.
What do I do with it?
You treat the cluster as a decision zone: if it holds, itβs a candidate for an entry with the trend. If price clearly runs through, the picture has changed.
Why?
In the cluster, several groups β day, week, month and swing participants β share a similar average price. Thatβs where many decide at the same time whether to defend or give up.
What do I get?
You focus on a few important zones instead of five separate lines.
Element 7
Reading the distance table
| Column / row | What it tells you |
|---|---|
| VWAP | Name of the line, in its colour. VWAPs that are switched off or not available are shown in grey with βoffβ. |
| Level | The current price of the VWAP. |
| Price vs. VWAP | Distance of the close from the VWAP in ATR. Green and positive = price above, red and negative = below. |
| Position | βAbove allβ, βBelow allβ or βMixedβ with the number of VWAPs price is above. |
| Cluster range | To the right of βPositionβ, βAt cluster β¦β appears in orange with the price range while price is trading in a cluster. |
In the example, SPY is 0.29 ATR above the weekly VWAP β practically on it β and 0.44 ATR below the swing-high VWAP. That means: those who bought since the last high are still slightly at a loss on average. That line is the next hurdle.
In practice
How to use it day to day
- 01
Check the situation
Look at Position first. βAbove allβ or βBelow allβ shows a clear side, βMixedβ a market that hasnβt made up its mind.
- 02
Find the hurdles
Which VWAPs lie between price and your target? Thatβs where you expect reactions β and you place your target in front of them rather than behind.
- 03
Judge the distance
If price is far from the nearest VWAP, you donβt chase it. You wait for a pullback to a VWAP or cluster.
- 04
Wait for a reaction
When price runs into a VWAP or cluster, watch whether it holds β for example a candle that bounces and closes on the right side.
- 05
Stop behind the zone
The stop goes on the other side of the VWAP or cluster, with some buffer. If price breaks through there, the idea was wrong.
- 06
Set alerts
Create an alert for βPrice at VWAP clusterβ or for the weekly VWAP, and the chart will let you know when things get interesting.
Recommendations
Which markets fit β and which donβt
A VWAP is only as good as the volume behind it. Two things decide: Is there real, central volume? And does the market have a clear trading session, so the session VWAP starts at a meaningful point?
Good example: the S&P 500 via the ETF
US stocks and ETFs (SPY, QQQ, large single stocks)
5 minutes to daily chart
- Real exchange volume: every trade is reported β exactly the data a VWAP needs.
- Clear session: the regular session from 9:30 to 16:00 New York time gives the session VWAP a clear start.
- Many participants measure themselves against the VWAP: large funds often have orders executed throughout the day and compare themselves with the VWAP. That makes the line relevant to many.
Index futures (ES, NQ) and Bitcoin
all timeframes
- Real volume, but trading runs almost around the clock. For the future, the session VWAP starts in the evening New York time and includes the thin overnight hours.
- Bitcoin trades continuously; on most exchanges the day changes at a fixed time (usually 00:00 UTC). So the session VWAP starts at a fairly arbitrary moment.
- Crypto volume is spread out: a chart only shows one exchangeβs volume. Pick a large exchange with high turnover.
- Tip: here, weekly, monthly and swing VWAPs are usually more meaningful than the session VWAP.
Poor example: spot forex, CFDs and plain indices
Spot forex and CFDs (e.g. EUR/USD, XAU/USD)
all timeframes
- No central volume: currencies and CFDs trade over the counter. The chart only shows the number of price changes (tick volume) at the data provider, not real volume.
- The VWAP becomes an estimate: the lines look similar, but they weight by activity instead of turnover.
- Around the clock: the session VWAP starts at a time set by the data provider.
- Better: for gold or currencies, use the future with real exchange volume if you want to work seriously with VWAPs.
Plain indices without volume (e.g. SPX, DAX index)
all timeframes
- No volume data: without volume, no VWAP can be calculated β the lines arenβt drawn at all.
- Solution: use the ETF (e.g. SPY) or the future on the same index.
Which timeframe?
- 1 to 15 minutes: the session VWAP is the most important line, the weekly VWAP provides the frame.
- 30 minutes to 4h: weekly, monthly and swing VWAPs carry the most information. The session VWAP gets less precise on larger timeframes, because a day consists of only a few candles.
- Daily chart: no session VWAP. Weekly and monthly VWAP plus the swing VWAPs, which stay anchored for weeks here.
- Above daily: not very useful β on the weekly chart, the weekly VWAP restarts with every candle.
How to spot a suitable market
- Real volume: stocks, ETFs, futures, large crypto exchanges.
- High liquidity: many participants, tight spreads β then average prices mean something.
- A clear session for the session VWAP. Without one, rely on week, month and swings instead.
- Your own check: scroll back and see whether price has reacted to VWAPs and clusters in the past or simply run through them.
Both directions
Long and short
- Above all VWAPs: buyers from every period are in profit on average. Pullbacks to a VWAP or cluster are candidates for longs.
- Below all VWAPs: sellers have the edge. Rallies up to a VWAP or cluster are candidates for shorts.
- Mixed: the market is undecided. Here VWAPs are targets rather than entries β many traders hold back until one side is clear.
- Swing-high VWAP reclaimed: after a sell-off, a sign that sellers are easing off.
- Swing-low VWAP lost: after a rally, a sign that buyers are easing off.
The part that makes the difference
Practical tips
- Fewer lines, clearer view. You donβt have to use all five VWAPs. A day trader often gets by with session and week, a swing trader with week, month and the swing VWAPs.
- Watch the calendar. Around central-bank decisions, major economic data or earnings, price likes to jump through all VWAPs. Skip new entries before them.
- Look at the bigger picture. What does the next higher timeframe look like? A long at the session VWAP below a falling monthly VWAP is a weaker trade.
- New weeks and months. At the start of a period, the matching VWAP is still jumpy because thereβs little volume behind it yet. It gains weight with every day.
- Set your position size. Always the same risk per trade. The distance to the stop behind the VWAP or cluster determines the size.
Donβt miss a thing
Setting up alerts
- 01
Open the alert window
At the top of the chart, click Alert or press
Alt + A. - 02
Choose the condition
Under Condition, select βMulti VWAP [Indicatr]β and below it the alert you want.
- 03
Trigger
Choose Once per bar close. VWAPs move while the candle is still running β a cross is only certain on the finished candle.
- 04
Notification
Choose app, email or webhook and save.
| Alert | When it fires |
|---|---|
| Price crossed weekly VWAP | The close crosses the weekly VWAP, in either direction. |
| Swing-high VWAP reclaimed | The close rises above the swing-high VWAP. |
| Swing-low VWAP lost | The close falls below the swing-low VWAP. |
| Price above all VWAPs | Price closes above all active VWAPs for the first time. |
| Price below all VWAPs | Price closes below all active VWAPs for the first time. |
| Price at VWAP cluster | Price trades into a VWAP cluster (first shaded candle). |
Reference
All settings
Double-click βMulti VWAP [Indicatr]β at the top left of the chart to open the settings. At the very top thereβs also Source (default: hlc3, the average of high, low and close) β the price every VWAP is calculated with. Best to leave it as it is.
1 Β· Anchors
- SourceDefault: hlc3
- At the very top, above the groups: which price per bar feeds the VWAP. The default is the average of high, low and close, just like the classic VWAP. Only change it if you deliberately want to use closes, for example.
- Session VWAP (intraday charts only)Default: on, grey
- VWAP from the start of the trading day. Appears on intraday charts only.
- Weekly VWAPDefault: on, blue
- VWAP from the start of the week.
- Monthly VWAPDefault: on, purple
- VWAP from the start of the month.
- Swing-high VWAPDefault: on, red
- VWAP from the last confirmed swing high.
- Swing-low VWAPDefault: on, green
- VWAP from the last confirmed swing low. VWAPs that are switched off donβt count for clusters, the table or alerts either.
2 Β· Swing detection Β· Bands
- Pivot bars leftDefault: 10
- How many candles to the left must not exceed a high or low. Higher = only larger turning points.
- Pivot bars right (confirmation)Default: 10
- How many candles to wait afterwards. Smaller = swing VWAPs appear earlier but change more often. Larger = later, but more stable.
- Standard deviation bands onDefault: None
- Draws bands around a chosen VWAP. They show how far price typically spreads around this average.
- Band 1 (x stdev)Default: 1
- Distance of the inner band in standard deviations. The space between them is lightly filled.
- Band 2 (x stdev)Default: 2
- Distance of the outer band. Prices there are far from the average.
3 Β· Confluence and context
- ATR lengthDefault: 14
- How many candles normal volatility is measured over. The basis for distances and clusters.
- Confluence: VWAPs within (x ATR)Default: 0.3
- How close VWAPs must be to count as a cluster. Larger = more, but looser clusters.
- Confluence: minimum VWAPs in clusterDefault: 3
- The minimum number of VWAPs in a cluster (2 to 5). 2 gives many hits, 4 or 5 only rare, strong clusters.
- Shade bars that trade into a VWAP clusterDefault: on
- Light background on candles in a cluster.
- Show distance tableDefault: on
- Shows or hides the table at the top right.
- Show line labelsDefault: on
- Labels to the right of the lines. With tight clusters you can switch them off if they get in the way.
From practice
Common mistakes
- Treating every VWAP touch as an entry. VWAPs are zones to watch. Only priceβs reaction turns them into a trade.
- Trusting markets without real volume. On spot forex and CFDs the VWAP is only an approximation; on plain indices itβs missing entirely.
- Putting the stop right on the VWAP. Price often swings around the line. The stop belongs behind it, with a buffer.
- Misreading the jump in the swing VWAPs. The line jumps when a new high or low is confirmed. Thatβs not a price signal, but a new anchor.
- Forgetting the pre-market. With extended hours on, the session VWAP for stocks includes the thin pre-market volume.
- Treating all five lines as equally important. Choose the VWAPs that fit your timeframe and holding period.
FAQ
Does Multi-Anchor VWAP repaint?
No. Swing VWAPs only start once a high or low is confirmed, and they arenβt drawn back into the past. Only the values of the current candle change until it closes β as with any VWAP.
Why donβt I see any lines?
Most likely the symbol has no volume data, for example a plain index like SPX. Use the ETF or the future on the same index.
Why is the session VWAP missing?
It only appears on intraday charts. On the daily chart the script hides it automatically, and the table shows βoffβ.
Why does the red or green line suddenly jump?
A new swing high or low has been confirmed, and the VWAP starts over from there. A point is only confirmed after 10 candles (default).
What does β+1.19 ATRβ in the table mean?
The close is 1.19 times the normal candle range above this VWAP. That way, distances can be compared across all markets.
Does it work on forex?
To a limited extent. Spot forex only has tick volume, so the VWAP is an approximation. Currency futures are better suited for real VWAPs.
How do you like Multi-Anchor VWAP?
Your vote tells us what to work on next.
Support
Report a problem or share feedback
Something off with the script, unclear in the docs, or you have an idea? Write to us. We reply by email.
Multi-Anchor VWAP
Session, weekly and monthly VWAP plus two automatically anchored swing VWAPs from one consistent calculation.
For educational and analytical purposes only. Not financial advice. Lines, marks and alerts are not recommendations to buy or sell. Past price behaviour is no guarantee of future results. Trading involves a risk of loss.