Skip to content
Script type
Indicator
Source code
Open-source

Smart Swing VWAP (Zeiierman)

Auto-anchored AVWAP that picks swings for you and colors the line by market structure

4.0 / 5.0 Overall

  • Effectiveness 4.3
  • Originality 4.4
  • Clarity 3.9
  • Flexibility 4.6
  • Reliability 3.5

Difficulty Intermediate

No.VOW-000066

About this rating This is an analysis and visualization tool for reading market structure, and its biggest strength is automating anchored VWAP placement using volume and move strength. Its wide range of adjustments, letting you match the swing size you care about from lower timeframes up to the daily, also pushed the score up. Reliability is a bit lower because the behavior of labels moving to a different spot when structure flips is not documented. A small deduction was also made because, while the line is described as quickly following new price action, in practice it keeps weighting the anchor price for a long time and lifts off more slowly than a standard AVWAP.
About the difficulty On the surface it is simple, since all it plots is lines and labels. But a few behaviors are easy to misread if you do not know how it works: anchors are accepted with a delay after the swing and the line is backfilled at that point, the line color reflects swing structure rather than where price sits, and labels get moved when structure flips. We rate it intermediate because it is best suited to traders who already know the basics of anchored VWAP and take the time to understand how it behaves.

Overall 4.0/ 5.0

About our rating standards

  • Effectiveness 4.3 It covers anchor selection, AVWAP plotting, structure-based coloring and retest alerts, so it can almost fully replace redrawing AVWAPs by hand.
  • Originality 4.4 Scoring candidates from five swing lengths by volume and momentum, combined with a calculation that starts from the anchor price and gradually dilutes it, is a fresh approach with few precedents.
  • Clarity 3.9 Lines and labels keep it easy to read, but anchor switches leave stretches where the old and new lines run side by side, and there is no setting to hide only the past lines.
  • Flexibility 4.6 You can fine-tune each of the five lengths, the acceptance thresholds, tracking speed, volatility adjustment and how lines are drawn, so it adapts to any timeframe.
  • Reliability 3.5 Values do not change after bar close and the backfilling behavior is documented, but the way labels get moved when structure flips is not explained.
Repainting
Repaints
  1. Live barChanges
  2. On closeChanges
  3. HistoryChanges
Values never change after bar close, but when a new anchor is accepted the line and label are backfilled into past bars, a structure flip moves the latest label to a different spot, and by default the line's historical color is repainted on the flip bar.
Best timeframes
  • Lower TFs≤15m
  • Mid TFs30m–4H
  • Higher TFs1D+
Tested on BTCUSDT (5m, 15m, 30m, 1H, 4H, 1D, 1W)
Alerts
8 conditions
Buy/sell signals
Not providedN/A for analysis tools
Market conditions
Trending
Display
Overlay
Chart elements
LinesLabels
Base indicator
ATRVWAPSwing Highs / LowsVolume
Trading style
Swing TradingDay Trading

Our review of this indicator

TRENDMARKET STRUCTURE

An Anchored VWAP That Picks Its Own Swings: How Well Does It Actually Work?

An Anchored VWAP That Picks Its Own Swings: How Well Does It Actually Work?

Diagram gallery 10

Article Summary
What does this indicator do?
Bottom line

Smart Swing VWAP automatically picks anchored VWAP starting points based on volume and move strength and colors the line by structure. It works well for pullback and rally levels, but since lines are backfilled, use the acceptance bar as your reference.

Tell me more
Key points
  • It scans five swing lengths (10, 20, 35, 50 and 80 bars) and anchors an AVWAP to the top-scoring swing that clears the thresholds.
  • The score combines cross-length agreement, swing size, and move strength based on direction, volatility and volume.
  • Green lines come from low-side anchors and red lines from high-side anchors; color shows swing structure, not where price sits.
  • HH, HL, LH and LL compare each anchor with the previous one on the same side, and L10 to L80 shows the winning swing length.
  • Anchors are accepted a few to dozens of bars after the swing, and the line and label are backfilled on that bar.
  • It starts from the anchor price and dilutes its weight gradually, so it hugs the swing longer than a standard anchored VWAP.
  • A retest fires when price moves away, returns to the zone and closes on a bounce candle; there are eight alerts in total.
  • When structure flips, the latest label moves to a new spot, and by default the line's past color is repainted too.

Smart Swing VWAP: Stop Guessing Where to Anchor Your VWAP

An anchored VWAP (AVWAP) plots the volume-weighted average price from a bar you choose up to the current bar. It is one of the more reliable tools for spotting where a pullback or a rally might stall, but the annoying part has always been deciding which high or low to anchor it to, every single time. Price moves on, you redraw, delete the old line, draw again. Do that enough and you end up spending more time drawing than actually analyzing the chart.

“Smart Swing VWAP” is a TradingView indicator that takes that anchoring job off your hands. It scans for swing highs and lows across five lookback lengths, automatically anchors to the one with the highest score, and draws an AVWAP from there. Bullish structure gets a green line, bearish structure gets a red one. When a new swing gets accepted, the next line takes over.

Picking a swing and re-anchoring the AVWAP from there

The labeled highs and lows are the anchors. Each line starts there and hands off to the next one as soon as a new anchor is locked in.

Picking a swing and re-anchoring the AVWAP from thereChart diagram showing Smart Swing VWAP anchoring a red line to the latest swing high, then handing over to a green line once a higher low is accepted.L10LHL10LLL10HHL10HLL10Recent swing high picked as the anchorL10 = the winning swing lengthBearish (red) AVWAPdrawn from the anchorHigher low (HL) accepted,hand-off to the green line

Vowars DE ver.3.12.33

The top row of each label compares the anchor with the previous one (HH, HL, LH, LL); the bottom row is the swing length that won. The red line stops one bar before the new anchor (HL) is confirmed, and the green line is redrawn from the HL low.

I loaded it on the BTC 1H chart, and all you get is lines and labels. It is surprisingly clean. When a swing high is accepted as the anchor, it gets an HH or LH tag as in Figure ①, and a red line extends from there. Once a higher low is accepted later on, the chart hands over to a green line, as shown in Figure ③.

That said, this line behaves quite differently from a regular AVWAP. First, it remembers the anchor price for a long time. Second, the anchor is accepted a bit after the swing actually prints, and at that point the line is drawn backward in time. If you use it without knowing these two things, it is easy to misread the chart. This review goes through how to read the display, how it works, the settings, and how repainting is handled, so you can decide whether it belongs on your chart.

Smart Swing VWAP on the 1H chart, with labels on swing highs and lows and the red and green anchored VWAPs drawn from them.
Smart Swing VWAP on the 1H chart, with labels on swing highs and lows and the red and green anchored VWAPs drawn from them.

Only Two Things on the Chart: Lines and Labels

The Green and Red AVWAP

The line color tells you which side the current anchor is on. If the anchor is a swing low, such as a higher low, the line is green (bullish structure). If it is a swing high, the line is red (bearish structure). Only one line is “active” at a time. When a new anchor is set, the previous line stops on that bar and stays on the chart, and a new line is drawn.

The key thing to remember is that the color is not based on whether price is above or below the line. Price can slice through the green line and it will not turn red right away. The color only changes when a candle closes beyond the anchor price (the anchor low for green, the anchor high for red), or when a new anchor on the opposite side is accepted.

Color = structure, position = momentum

Read the line color as the direction of swing structure and the position of price relative to the line as current momentum, and you will not get confused. Price trading below a green line means the bullish structure is still intact, but sellers are in control for now.

How to Read the Labels

When an anchor is accepted, a label appears at that swing. The top row compares it with the previous anchor, and the bottom row shows the swing length that won.

LabelMeaning
HHHigh-side anchor above the previous high-side anchor (Higher High)
LHHigh-side anchor at or below the previous high-side anchor (Lower High)
HLLow-side anchor at or above the previous low-side anchor (Higher Low)
LLLow-side anchor below the previous low-side anchor (Lower Low)
L10 to L80The lookback length that found the accepted swing (10, 20, 35, 50 or 80 bars by default)
Blank top rowThe very first label, with no previous anchor to compare against. You will see it at the far left of the chart

The comparison is not against the most recent swing, but against the previously accepted anchor on the same side. Minor highs and lows in between that never got a label are ignored. You can hide the bottom row with Show Winning Pivot Length.

Whether you mostly see L10 or get L50 and L80 mixed in also gives you a rough idea of how big the swings driving the market are. On the daily chart, the sequence went from “HH L80” to “LH L50”, which made it easy to spot exactly where the bigger trend turned.

How the Anchor Gets Picked

Five Swing Lengths Each Nominate a Candidate

“Smart Swing VWAP” tracks the latest high and low on five lookback lengths: 10, 20, 35, 50 and 80 bars. Each length decides its current direction based on whether its latest high or latest low is more recent, then nominates the extreme on the opposite side as an anchor candidate. For example, if a length just printed a new high, the low before it becomes a bullish anchor candidate.

Five swing lengths nominate candidates, and the top score wins

The anchor is never hard-wired to a single length. Every confirmed bar, all five candidates get scored, and only the highest one that clears the filters is accepted.

Five swing lengths nominate candidates, and the top score winsChart diagram showing the anchor candidates nominated by each of the five swing lengths (10, 20, 35, 50, 80) on bar 234, along with their scores. The L10 low that met the thresholds is the one that got accepted.L10LHL10LLL10HHL10HLL10L10 candidate (this low)score 60.5, strength 0.71: acceptedL20 nominates the prior highscore 42.0: rejectedL35/L50/L80 point to an off-screen lowscore 53.0: below the 58 threshold

Vowars DE ver.3.12.33

The score runs from 0 to 100 and adds up cross-length agreement (25%), swing size (20%) and move strength (55%). Move strength combines directional progress, volatility expansion and volume participation. A candidate has to clear both Minimum Anchor Score (58) and Minimum Move Strength (0.35). The numbers come from the price action in this diagram.

All five candidates are scored on every confirmed bar. The low in Figure ① was nominated by L10 and accepted with a score of 60.5. Meanwhile, L20 was pointing to the prior high in Figure ②, and L35, L50 and L80 were pointing to an older low off the left edge of the chart in Figure ③.

What Goes Into the Score

ComponentWeightWhat it measures
Cross-length agreement25%Higher when candidates on the same side sit close together in price (0.5 ATR scale) or in time (3-bar scale)
Swing size20%Maxes out when the distance between the latest high and low reaches 4x ATR
Move strength55%Built from directional progress, volatility expansion and volume participation

Move strength carries the most weight. How far has price traveled in one direction since the swing? Was the range during that move larger than average? Was volume above average? These three are multiplied together and then discounted by the weakest of them, so if even one of the three is weak, the score will not get far. Swings where volume is heavy but price goes nowhere are unlikely to be accepted.

To be accepted, a candidate needs a score of at least Minimum Anchor Score (default 58) and a move strength of at least Minimum Move Strength (default 0.35). On top of that, the indicator will not switch anchors until Bars Between New Anchors (default 8 bars) have passed since the previous one.

Switching to a same-side anchor is a bit stricter

To switch to a candidate on the same side as the current anchor, it has to beat the current anchor’s score by at least 4 points. Also, a candidate that is nearly identical to the current anchor in both price (within 0.2 ATR) and time (within 3 bars) is treated as the same swing and ignored. That is why the green line does not keep getting redrawn in the middle of an uptrend.

The Anchor Is Locked In After the Swing

This is the most important thing to understand about “Smart Swing VWAP”. Scores are calculated on every bar, but the anchor decision only happens on a bar where at least one of the five lengths flips direction (or until the very first anchor is set). In other words, nothing happens at the moment the low prints. Only after price rallies and makes a new high does that low finally get scored as a candidate.

Anchor lines are backfilled at the moment they are confirmed

The red line starts at bar 198, but on bar 198 itself the only line on the chart was the green one.

Anchor lines are backfilled at the moment they are confirmedChart diagram showing that the swing high on bar 198 was only accepted as the anchor on bar 239, and that the red line covering that stretch was drawn retroactively at acceptance.L10L10LLL20HHL20The swing high that became the anchor (bar 198)Acceptance came 41 bars later,where the green line stopsThis whole stretch of redwas backfilled at acceptance

Vowars DE ver.3.12.33

An anchor is accepted on the bar where one of the swing lengths flips between high and low and the score filters are met. At that moment the AVWAP from the anchor bar to the current bar is calculated in one go and the whole line is drawn at once. The old green line is not deleted and stays on the chart up to the bar before confirmation.

In this chart, the high on bar 198 in Figure ① was not accepted until bar 239, 41 bars later. On the acceptance bar, the AVWAP from bar 198 to the current bar is calculated in one go, and the red line is backfilled all at once, as shown in Figure ③. The green line that was on the chart until then stops right before acceptance, as in Figure ②, and stays there.

In my testing, short-length swings (L10 or L20) were usually accepted within a few bars, while bigger swings tended to lag more. Even on the BTC 5m chart, a delay of a few bars to a dozen or so was common, and on the daily chart an LH L50 anchor was only accepted more than a month after the swing.

Beware of how historical charts look

Scroll back through history and every swing has a perfectly placed line, as if the indicator nailed the highs and lows. In real time, that line did not exist until the anchor was accepted. Even if the line starts right at the swing, you could only have used it from the acceptance bar onward. Step through bar by bar with TradingView’s Bar Replay and you can see exactly which bar the line was backfilled on (how far back you can go depends on the timeframe and your plan).

A VWAP That Remembers the Anchor Price for a Long Time

The Anchor Price Is the Starting Point

A regular AVWAP starts from a typical price of the anchor bar (such as the average of high, low and close) and then volume-weights every bar after it. “Smart Swing VWAP” starts somewhere else. It seeds the calculation with the anchor high or low itself (the tip of the wick), weighted by the anchor bar’s volume, and then blends in each new bar little by little. It works a lot like exponential smoothing.

The anchor price still carries half the weight after 20 bars

Smart Swing VWAP seeds its calculation with the anchor high or low itself. This compares how long that influence sticks around.

The anchor price still carries half the weight after 20 barsConcept diagram comparing how much of the line value comes from the anchor price, bar by bar after the anchor, for Smart Swing VWAP (Price Tracking Speed 20) and a standard anchored VWAP.Share of the line value coming from the anchor price0.250.51After 20 bars, the anchorprice is still 50%A standard anchored VWAPis down to about 5% after 20 bars12.5% after 60 bars:old data gradually fades out
  • Smart Swing VWAP (Price Tracking Speed 20)
  • Standard anchored VWAP

Vowars DE ver.3.12.33

Calculated assuming equal volume on every bar. In a standard anchored VWAP, the anchor bar is just one of (bars elapsed + 1) bars. In Smart Swing VWAP, the weight of the anchor price halves every Price Tracking Speed bars, and the remaining weight is skewed toward the most recent bars.

Assuming equal volume on every bar, with Price Tracking Speed at its default of 20, the anchor price still makes up half of the line value after 20 bars, as shown in Figure ①. With a regular AVWAP, the anchor bar’s influence is already down to about 5% after 20 bars, as in Figure ②. The trade-off is that older data does fade out properly as you get to 60 or 100 bars, as in Figure ③, so the line does not get left behind in a long trend the way a regular AVWAP does when it carries every bar with equal weight.

Overlaying It on a Regular Anchored VWAP

It hugs the anchor price longer than a standard anchored VWAP

Both lines are anchored to the same low on bar 202. The dotted line is a standard anchored VWAP added for comparison.

It hugs the anchor price longer than a standard anchored VWAPChart diagram overlaying Smart Swing VWAP (green) and a standard anchored VWAP (dotted) anchored to the same low.L10L10LLL10LHL20LLL10The line starts at the tip of the wickA standard AVWAP movestoward the middle of price fastThe green line stays near the lowand works as a pullback level
  • Smart Swing VWAP
  • Standard anchored VWAP (for comparison)

Vowars DE ver.3.12.33

Smart Swing VWAP starts from the anchor high or low itself and gradually dilutes its weight. That makes it slow to lift off and keeps it close to the low for longer. The dotted line is for illustration only and is not plotted by the indicator.

Anchor both to the same low and the difference is obvious. The green line starts at the tip of the wick, as in Figure ①, and lifts off very slowly. A regular AVWAP moves toward the middle of price within a few bars, as in Figure ②.

From the description I expected a line that hugs price closely, but at least for the first few dozen bars after the anchor it is the opposite: a line that lingers around the swing price. That is less a flaw than a different personality. It tends to act as support not too far from the low on a pullback, and as Figure ③ shows, there were times when a mid-trend dip stalled right around the green line.

Adjusting How Fast It Follows Price with Price Tracking Speed

Price Tracking Speed changes how fast the line follows price

All three lines share the same anchor. The only difference is how quickly each one absorbs new price action.

Price Tracking Speed changes how fast the line follows priceChart diagram overlaying three AVWAPs from the same anchor with Price Tracking Speed set to 8, 20 (default) and 60. The smaller the value, the closer the line hugs price.L10LHL10LLL10HHL10HLL108 chases pricequickly60 barely movesaway from the anchor
  • Price Tracking Speed 8
  • 20 (default)
  • 60

Vowars DE ver.3.12.33

For comparison, 8 is shown in cyan and 60 in orange (on your chart they use the bullish and bearish colors you set). The cyan line rising from the bottom left is the 8 version drawn from the previous anchor. Price Tracking Speed works as the number of bars it takes for the weight of older values to halve.

Price Tracking Speed works as the number of bars it takes for the weight of the anchor price and older bars to halve. Drop it to 8 and the line chases price quickly, as in Figure ①. Raise it to 60 and it barely moves away from the anchor, as in Figure ②. The anchor location stays the same regardless of this setting; only the way the line moves changes.

The minimum input is 1, but internally it is clamped to a range of 5 to 300 bars. Anything below 5 behaves exactly like 5, which is worth knowing so you do not waste time testing lower values.

Adjust Speed With Volatility Hits Harder Than You Might Expect

Turn on Adjust Speed With Volatility and the indicator compares ATR (length 50) with its own average, speeding up the line when volatility is high and slowing it down when volatility is low. It is off by default.

Volatility Adjustment Strength, which controls how strong the effect is, defaults to 10. At that value, ATR just 1.1x its average is enough to make a Price Tracking Speed of 20 behave like roughly 8, while 0.9x slows it down to the 50s. The swing is bigger than you would expect, so if you want to try it, I found it easier to start around 1 to 3 and work your way up while watching how the line moves.

Two Ways to Display a Structure Break

When a candle closes through the anchor against the direction of the active line, it is treated as a structure flip. For a green line, that means a bar closing at or below the anchor low. You can choose how the flip is drawn with After Structure Break.

Recolor Entire Active Line (Default)

By default, a structure break recolors the entire line

With Recolor Entire Active Line (the default), the moment structure flips, even the historical part of the line gets repainted in the new color.

By default, a structure break recolors the entire lineChart diagram showing that with After Structure Break set to Recolor Entire Active Line, the whole active AVWAP flips from green to red on the bar that closes below the anchor low.L10LLL10LHL10Close breaks below the anchor lowEven the part starting at the lowturns red all at onceThe HL label disappears andan LH lands on the recent high

Vowars DE ver.3.12.33

The line values stay the same; only the color changes. The higher low (HL) label is deleted, and an LH label is placed on the highest high between the anchor and the flip. That is why, after the flip, the chart looks like a red line starting from a low.

With the default setting, on the bar where the flip happens (Figure ①), the entire active line, including its historical part, is repainted in the new color, as in Figure ②. The line values do not change; only the color does.

At the same time, the label on the anchor (HL in this example) is deleted, and an LH label (or HH if it is above the previous high-side anchor) is placed on the highest high between the anchor and the flip, as in Figure ③. If you only look at the chart after the flip, you get a slightly odd picture: a red line starting from a low, with an LH tag on the high above it. Easy to misread if you do not know how it works.

Preserve Old Color And Start New Segment

Preserve Old Color And Start New Segment keeps the old color

Same price action, different setting: the pre-flip color is kept, so the chart shows exactly where structure broke.

Preserve Old Color And Start New Segment keeps the old colorChart diagram showing that with After Structure Break set to Preserve Old Color And Start New Segment, the green section before the flip stays as is and a new red segment continues from the flip bar.L10LLL10LHL10Close breaks below the anchor lowThe pre-flip sectionstays greenA new red segmentstarts from the flip bar

Vowars DE ver.3.12.33

The line values are identical to the default setting; only the segmentation and color differ. The label swap (HL removed, LH added) happens with this setting too.

Switch to this option and the pre-flip section stays green, as in Figure ②, while a new red segment continues from the flip bar, as in Figure ③. Because the chart keeps a record of where structure broke, I found this easier to read when reviewing past price action. The label swap still happens with this setting too.

Labels can disappear

When structure flips, the most recent label is deleted and placed somewhere else. An HL or LH label you saw earlier may have moved by the time you look again, so be careful if you log labels as-is for backtesting.

Eight Alerts, and Why the Retest Logic Is Worth Knowing

“Smart Swing VWAP” does not plot any buy or sell signals on the chart. Instead, it offers eight conditions you can pick in TradingView’s Create Alert dialog. All of them are evaluated on bar close.

Alert nameWhat it means
New ranked anchorA new anchor has been accepted
Bullish polarity flipA candle closed above the red line’s anchor (high), flipping structure bullish
Bearish polarity flipA candle closed below the green line’s anchor (low), flipping structure bearish
Cross above AVWAPA candle closed above the active line
Cross below AVWAPA candle closed below the active line
Bullish AVWAP retestA retest of the green line was confirmed
Bearish AVWAP retestA retest of the red line was confirmed
Any ranked AVWAP eventAny of the seven events above

Cross and retest conditions are not evaluated on bars where an anchor is accepted or structure flips. Since the line itself is being swapped on those bars, this keeps you from getting a cross alert stacked on top of it.

The Three Conditions for a Retest

Three conditions for the retest alert to fire

Retests are alert-only and leave no marker on the chart. Here is how the conditions line up bar by bar on actual price action.

Three conditions for the retest alert to fireChart diagram showing the Bullish AVWAP retest condition being met: price pulls 0.75 ATR or more away from the green AVWAP, comes back to the line, and a bullish candle closes above it.L10L10LLL10HHL10LLL10HLL10Closes 0.75 ATR+ away from the line(retest setup is armed)Touching the line on a bearishcandle does not countTouch, then a bullish close abovethe line: alert fires

Vowars DE ver.3.12.33

The band marks the touch zone of 0.15 ATR above and below the line (Retest Touch Zone). Bar 220 tagged the line with its lower wick but closed bearish, so no alert; the condition was met on the next bar, 221. The markers and zone in this diagram are for illustration only and do not appear on the actual chart.

The retest logic is stricter than I expected. For the green line (Bullish AVWAP retest), price first has to close at least Retest Setup Distance (ATR) (default 0.75 ATR) away from the line, which arms the setup, as in Figure ①. After that, the retest is confirmed on a bar whose range reaches into the zone of Retest Touch Zone (ATR) (default 0.15 ATR) above and below the line, closes bullish (close at or above open), and closes above the line.

Bar 220 tagged the line with its lower wick, but it was a bearish candle, so it was skipped, as in Figure ②. The next bar, 221, reached into the zone and closed bullish above the line, so the retest was confirmed, as in Figure ③. Once a retest fires, the setup resets, and no new retest is checked until price moves away from the line again. For the red line, the up/down and bullish/bearish conditions are simply reversed.

The retest already includes bounce confirmation

It does not fire on a simple touch. It waits for the bounce candle (bullish, closing above the line) before firing. That means the first bounce candle is already done by the time you get the alert. It is late if you want to catch the exact touch with a limit order, but a good fit if you prefer to see confirmation before entering.

How to Use Smart Swing VWAP

Here is a practical workflow for using it on a live chart. Go through it in order and the lines and labels turn into usable inputs without much effort.

1 Check structure with the line color

First, check whether the active line is green or red. Green means you are looking to buy the dip; red means you are looking to sell the rally. The bigger the L number on the bottom row (L50, L80), the bigger the swing the line is based on. For day trading, confirming the direction on the 1H or 4H before dropping to a lower timeframe cuts down on second-guessing.

2 Wait for a pullback to the line

Smart Swing VWAP on the 4H chart, where the green AVWAP anchored to an L80 swing low marks pullback levels in an uptrend.
Smart Swing VWAP on the 4H chart, where the green AVWAP anchored to an L80 swing low marks pullback levels in an uptrend.

When price is extended from the line, do not chase it; wait for it to come back. A line that was anchored recently tends to stay near the swing price, so dips early in a trend can turn out deeper than you might think. If the line feels too far away, lowering Price Tracking Speed a bit pulls it into a more realistic spot.

3 Decide on the retest alert or the closing reaction

Once price gets near the line, either wait for the Bullish AVWAP retest alert (Bearish AVWAP retest for a rally into resistance) or confirm the bounce candle yourself. If a candle closes clearly through the line, consider the dip-buy thesis weakened.

4 Use the anchor price as your stop reference

The green line’s structure breaks when a candle closes below the anchor low. Placing your stop just beyond that low keeps your invalidation in line with the indicator’s own structure logic. If you use the line itself as your stop, keep in mind that right after the anchor it sits very close to the low and then drifts away from it over time.

How It Looks Across Timeframes

I ran it on BTC from the 5m all the way up to the weekly, and its personality changes quite a bit with the timeframe.

Smart Swing VWAP on the 5m chart. On lower timeframes, anchors switch frequently, mostly on L10 and L20 swings.
Smart Swing VWAP on the 5m chart. On lower timeframes, anchors switch frequently, mostly on L10 and L20 swings.

On the 5m and 15m, L10 and L20 anchors switch every few hours and the colors flip back and forth a lot. There is plenty of information in the lines, but also a lot of acceptance lag and anchor switching, so I found it calmer to only take dips aligned with the higher-timeframe direction rather than chasing every line.

On the 1H and 4H, you get a healthy mix from L10 to L80, and a single line can run for several days. For marking pullback and rally levels, this felt like the sweet spot. On the daily, the sequence went from HH L80 to LH L50, and during the November to January decline the red line worked as a ceiling for relief rallies. On the weekly, there are only a handful of labels and the line reflects multi-year trends.

Smart Swing VWAP on the daily chart, showing the shift from HH L80 to LH L50 and the red anchored VWAP acting as a ceiling for rallies.
Smart Swing VWAP on the daily chart, showing the shift from HH L80 to LH L50 and the red anchored VWAP acting as a ceiling for rallies.

Settings Explained and Suggested Tweaks

Parameters
SettingDefaultSuggestedEffect
Scale 1 to Scale 5All onAll onWhether each swing length is used for scoring. A disabled length nominates no candidates and is excluded from the agreement calculation
Length10 / 20 / 35 / 50 / 80DefaultLookback for each length. Smaller values catch nearby minor swings; larger values catch bigger structure
After Structure BreakRecolor Entire Active LinePreserve Old Color And Start New Segment if you review past charts a lotOn a structure flip, either recolor the whole line or continue from the flip bar in the new color
Price Tracking Speed2012 to 16 on lower timeframes / 20 to 30 on mid to higher timeframesNumber of bars for the weight to halve. Smaller hugs price; larger stays near the anchor
Adjust Speed With VolatilityOffOff (if you try it, lower the strength first)Automatically changes tracking speed based on ATR versus its average
Volatility Adjustment Strength10Start at 1 to 3How strongly volatility changes the speed. Higher values make the difference more extreme
Minimum Anchor Score5855 to 65Score required for acceptance. Raise it for fewer anchors, lower it for more
Minimum Move Strength0.350.3 to 0.45Move strength required for acceptance. Raise it to keep only swings with real momentum
Bars Between New Anchors810 to 15 on lower timeframesBars that must pass before switching to the next anchor
Retest Touch Zone (ATR)0.150.1 to 0.25Distance from the line that counts as a retest touch (in ATR)
Retest Setup Distance (ATR)0.750.5 to 1.0Distance price must move away from the line to arm a retest (in ATR)
Bullish Label Color / Bearish Label Colorlime / redPersonal preferenceLabel colors
Bullish VWAP Color / Bearish VWAP Colorlime / redPersonal preferenceLine colors
VWAP Line Width22Line thickness (1 to 6)
Show Winning Pivot LengthOnOnShows L10 to L80 on the bottom row of each label

When Anchors Switch Too Often on Lower Timeframes

If the lines feel too jumpy on the 5m or similar, start by raising Bars Between New Anchors to 10 to 15. It directly stretches the gap between switches, so the effect is easy to see. If that is still too much, raising Minimum Anchor Score to 60 to 65 filters out swings without much momentum. You can also turn off Scale 1 (L10), but on the 15m there were stretches where almost every anchor was L10, so turning it off cuts the number of lines drastically. I would treat that as a last resort.

When You Only Want the Big Structure for Swing Trading

If you only want to follow the bigger picture on the 4H or daily, you can turn off Scale 1 and Scale 2 so that only L35 and above get scored. Disabled lengths are also excluded from the agreement calculation, so far fewer anchors get accepted and each line lasts longer. Keeping Price Tracking Speed at 20 to 30 helps those long-running lines avoid getting left behind by price.

When You Want More or Fewer Retest Alerts

If you are getting too few alerts, lower Retest Setup Distance (ATR) to around 0.5 and widen Retest Touch Zone (ATR) to around 0.2. If it keeps firing in choppy consolidation, raise Retest Setup Distance (ATR) to 1.0 so only clean moves away from the line followed by a return are left. Both are ATR-based, so they feel the same across symbols and timeframes.

On symbols without volume data

The calculation uses volume, but bars with no volume (or zero volume) are treated as 1. On symbols without volume data, every bar gets equal weight, and the volume participation part of the score effectively does nothing. In markets like gold or stock indices, where volume data varies by symbol and data feed, it is worth checking that the symbol on your chart actually has volume first.

Pairing It with Chaikin Money Flow to Judge Retest Quality

The retest alert confirms the shape of a pullback and bounce at the line, but it does not check whether real money is behind that bounce. That is where TradingView’s built-in Chaikin Money Flow (CMF) fits nicely. It is an oscillator that uses where each bar closed within its range plus volume to show whether buying or selling pressure dominates, on a scale of −1 to +1. Above zero reads as buyers in control.

Gauging retest quality with Chaikin Money Flow

Two identical retest alerts can play out very differently depending on whether money flow is behind the bounce.

Gauging retest quality with Chaikin Money FlowChart diagram adding Chaikin Money Flow (CMF 20) to a stretch where Smart Swing VWAP printed two retests of the green line. The second one lines up with CMF crossing above zero and leads to a breakout.CMF(20)L10L10HLL10LHL10LLL10First retest triggersCMF still negativeSecond retest, then breakoutCMF crosses above zero

Vowars DE ver.3.12.33

The lower pane is TradingView's built-in Chaikin Money Flow (length 20). On the first retest, CMF was sitting in negative territory and selling pressure was still there. The second retest lines up with the bar where CMF crossed above zero. The retest markers are for illustration only and do not appear on the actual chart.

In this example, CMF was still sitting in negative territory when the first retest triggered, as in Figure ①. It looked like a bounce, but selling pressure had not gone away. The second retest lined up with CMF crossing above zero, and price broke out right after, as in Figure ②.

The rule is simple: for a green-line retest, check that CMF is above zero, or at least rising toward it. “Smart Swing VWAP” uses volume to pick its anchors, while CMF looks at money flow bar by bar, so the two do not overlap too much. That is another reason they pair well.

Another good match is Volume Profile (Fixed Range or Visible Range). When the anchored swing’s price area overlaps a high-volume node, reactions around the green or red line tend to be stronger, which helps you gauge how much to trust the line. And if you want to avoid ranging markets where the line keeps flipping, checking trend strength with ADX before using it works well too.

What You Can Hand Off, and What You Should Not

What it takes off your plate

  • Anchor selection and redrawing are automatic, so the manual work of drawing AVWAPs nearly disappears
  • Five lengths are scored at once, so the selected swing tends to match the size of the waves the market is actually making
  • Candidates are filtered by volume and move strength, so minor highs and lows without momentum rarely get picked
  • Because the line keeps weighting the anchor price for a long time, it works well as a pullback or rally level early in a trend
  • The retest alert waits for the bounce candle before firing
  • Just lines and labels, so it stays out of the way when stacked with other indicators

What still needs your attention

  • Anchors are accepted with a delay after the swing, and the line is backfilled at that moment
  • When structure flips, the latest label moves to a different spot, and with default settings the line’s past color changes too
  • Old lines remain when anchors switch, so you get stretches where the old and new lines run side by side
  • Right after a new anchor, the line is slow to leave the swing price, so the gap to price can get wide
  • In ranging markets, anchors and line colors tend to flip back and forth a lot

How to Think About Repainting and Backfilled Lines

All of “Smart Swing VWAP”’s calculations run on confirmed bars. The line does not wiggle with the live, still-forming bar, and line values calculated on a confirmed bar never change afterward. It does not pull higher-timeframe data or use any future bars either.

That said, what you see on the chart does change after the fact. There are three cases:

  1. On the bar where a new anchor is accepted, the line and label are backfilled from the anchor up to the current bar
  2. When structure flips, the latest label is deleted and placed somewhere else
  3. With After Structure Break at its default (Recolor Entire Active Line), the historical part of the active line is recolored on the flip bar

The first one is documented on the script page, and the second and third will not trip you up once you understand the mechanics. What is dangerous is looking at a historical chart and thinking, “If I had entered at that label…”. In real time, that label location was not known yet. If you are backtesting, step through with Bar Replay bar by bar and use the bar where the line was backfilled as your starting point.

Backtest from the acceptance bar

Instead of the anchor location, measure P&L from the bar where the line was backfilled (the bar where the New ranked anchor alert fires). That gets you much closer to what live trading would have felt like.

Let It Pick the Anchor, Keep the Decision for Yourself

Smart Swing VWAP (Zeiierman)

“Smart Swing VWAP” answers the question every AVWAP user keeps asking, “where do I anchor this?”, by using volume and move strength. The line itself has a distinctive character, weighting the anchor price for a long time, and I found it easy to use as a pullback or rally level early in a trend.

On the other hand, the anchor is decided after the fact and the line is drawn after the fact. Do not get carried away by how good the historical chart looks; use the color of the currently active line and the distance between price and the line as your inputs. With that mindset, you get rid of the chore of redrawing AVWAPs by hand while keeping the actual decision-making in your own hands. A good first step is to add it to a 1H or 4H chart and watch when the labels appear a few times.

Sources: For this article we tested an indicator built by Zeiierman on the charting platform TradingView, then analyzed it in depth before publishing.

Disclaimer: This article is for informational purposes only and isn't investment advice or a recommendation to buy or sell. All investment decisions are your own.

FOLLOW VOWARS
Never miss a new indicator
Get Vowars in Google search, a browser alert on publish, or updates on X.
YUZURU
AuthorYUZURUFounder & Reviewer, Vowars
View profileClose

An editor for content sites at a web agency, I started trading crypto in 2018. Working my way from spot to futures got me hooked on chart analysis, and I now build my own custom indicators on TradingView. On Vowars, I test TradingView indicators one by one on my own charts and review everything from the math behind them to how to use them and where they fall short, with custom visuals throughout.…

Created by

Vowars Picks

Stochastic Heat Map

“Stochastic Heat Map” Tested: Bottom-to-Top Color Shifts That Show How Real a Move Is

"Stochastic Heat Map" is an oscillator that stacks 28 Stochastics with lengths from 10 to 280 as colors, showing where price sits in its range on every lookback at once. The way color spreads from the bottom rows to the top tells you how strong a move is, but red stays pinned in strong trends, so it works best with direction handled separately by something like an EMA.

DifficultyIntermediate

CME Institutional Order Flow & AMT Lens

Auction Market Theory on One Chart: An Indicator That Flags Volume Absorption by Color

“CME Institutional Order Flow & AMT Lens” is a TradingView indicator that combines a volume profile, candle coloring, shelves, and a dashboard in one. It gives no buy or sell signals and instead automatically marks key prices such as the POC and Value Area.

DifficultyAdvanced

Fibonacci Trend Continuation Signals [AlgoAlpha]

Measure Pullback Depth Inside a Trend With “Fibonacci Trend Continuation Signals”

"Fibonacci Trend Continuation Signals" is a free TradingView indicator that automatically draws a Fibonacci range in the direction of the trend and prints a continuation signal the moment price starts moving again after a pullback or bounce. It gives you an objective read on pullback depth.

DifficultyIntermediate

Smart Trader, Episode 06, Isotropic Trend Lines

“Isotropic Trend Lines” Review: σ-Scaled Trend Angles and a Six-Timeframe Vote Tested on Live Charts

Isotropic Trend Lines puts price on a log scale and divides it by volatility (σ), giving you a trend angle that doesn't change with chart scaling. Direction, strength and position inside the channel all show on one screen. Just note that the angle only appears once you turn on Show Angle Label.

DifficultyIntermediate

Strong Burst Fader

Touching the Band Isn’t Enough — “Strong Burst Fader” Measures the Depth of the Stretch

"Strong Burst Fader" is a counter-trend indicator that measures how far a wick pokes beyond a moving average ± ATR band and shows that depth as the height and color of a diamond stack. The taller and redder the stack, the more overextended the move, and you can read it without adding a single line to your chart.

DifficultyIntermediate

Divergence for Many Indicators v4

Divergence for Many Indicators v4 : How to Read Divergence Across 10 Indicators in One Label

"Divergence for Many Indicators v4" is a TradingView indicator that detects divergence across 10 indicators, including RSI and MACD, and shows how many line up in a single label. Signals come early, but only the last one survives within the same swing. It works best once you've defined market direction.

DifficultyIntermediate

Browse by goal

1 / 5