Skip to main content Anchored VWAP Scanner For ThinkOrSwim Skip to main content Skip to content
Master the TTM Squeeze with our comprehensive 19-module course Start Learning →
TOS Indicators
  • Tools

    Categories

    • Indicators
    • Backtesters
    • Scans
    • Dashboards
    • thinkScript
    • Member Resources
    Browse Full Library

    Featured Tutorials

    Heiken Ashi Trend Indicator
    Heiken Ashi Trend Indicator
    Indicators

    Download our Custom Heiken Ashi indicator for ThinkOrSwim. Full ThinkScript code, formula...

    Learn more →
    Commodities Tracker
    Commodities Tracker
    Indicators

    For acceleration signals: trend-following strategies and buying pullbacks. For deceleration signals: short...

    Learn more →
    Build an Election Backtester in 10 Minutes
    Build an Election Backtester in 10 Minutes
    Backtesters

    Learn how to create a Post-Election Backtester in ThinkOrSwim to analyze market...

    Learn more →

    Popular Posts

    Unusual Volume
    Unusual Volume
    Scans

    Build 4 scans to easily find stocks with greater than...

    Learn more →
    Upcoming Earnings with High Short Interest
    Upcoming Earnings with High Short Interest
    Scans

    Build a scan to find stocks that are likely to...

    Learn more →
    Unusual Volume Pro Scans
    Unusual Volume Pro Scans
    Scans

    4 additional scans to find unusual volume overlapping with key...

    Learn more →
  • Courses
    Squeeze Course
    Squeeze Course
    19 Modules

    Scan, backtest, and trade the TTM Squeeze setup with precision.

    Unlock Course →
    Earnings Course
    Earnings Course
    3 Modules

    Master earnings plays with free indicators and proven strategies for ThinkOrSwim.

    Unlock Course →
    V-Shaped Reversals
    V-Shaped Reversals
    7 Modules

    Identify and trade powerful V-shaped reversal patterns with confidence and precision.

    Unlock Course →
    Fibonacci Trading
    Fibonacci Trading
    4 Modules

    Learn to trade Fibonacci retracements and extensions in ThinkOrSwim effectively.

    Unlock Course →
  • Products
    Futures Volatility Box Premium
    Futures Volatility Box

    Volatility models for 10 major futures markets, including micros & SPX.

    Explore Futures VB →
    Stock Volatility Box Premium
    Stock Volatility Box

    Dynamic support & resistance for 595+ stocks/ETFs, with a live scanner.

    Explore Stock VB →
    Opening Range Breakouts Premium
    Opening Range Breakouts

    Powerful live scanner & backtester for ORB strategies on 595+ stocks.

    Explore ORB Setups →
My Account
Back to Tutorials
Beginner 10 minutes ThinkOrSwim

Anchored VWAP Scans

Build a scan to identify pullbacks to the Anchored VWAP from previous pivot points.

Download Scan
How to install in ThinkOrSwim →
Table of Contents
  • Building the Scan
  • Examples
  • Conclusion

Introduction

Welcome to another thinkScript tutorial!

We’re going to take our Anchored Volume Weighted Average Price (Anchored VWAP) Indicator and turn that into a scan.

If you don’t already have the Anchored VWAP indicator, you can download it here. You’ll need it to follow along, and it’s completely free.

Here is a chart to give you an idea of what we’re trying to find with this scan.

SBUX example chart:

Anchored VWAP Bounce - SBUX Setup

We have anchored the VWAP to the March lows. You can see the first candle going up after the March lows, on a weekly time frame chart.

Notice the different pullbacks to the Anchored VWAP line, and how the VWAP acts as a support for a shorter term bounce.

I’ve noticed this type of idea works a little better on stocks that most people are looking at. There’s more liquidity, think the largest blue-chip stocks you can think of…, your S&P-100 stocks.

Of course, the scan works on every type of market, but we’ll focus on the best of the best for this exercise.

Building the Scan

ThinkOrSwim Basic Price and Volume Scan Filters

Click the scan tab, and we’ll start with two basic filters:

  • Volume filter – looking for stocks that have an average trade volume of x per day
  • Price filter – looking for stocks that are greater than $x

Click add filter, go to the drop-down where it says ADXCrossover and choose custom. This is where we can add our Anchored VWAP code.

Anchored VWAP Indicator for ThinkOrSwim - Code

Note: Custom study filters only work on live money. If you’re in paper trading, you will not be able to follow along with this.

Click the tab that says “thinkScript Editor” and paste the Anchored VWAP code.

We need to make 3 changes in the code in order to scan what we’re looking for

  1. Change the Aggregation Period – ThinkOrSwim will make the time period daily by default, and we need to adjust that to weekly. The weekly time frame allows us access to more historical data, which may be necessary for a date further back than 1 year.
  2. Change the Anchor Date – Pick a new anchor dateClean Code – Remove all the formatting code, as we won’t need it for the scan.
  3. Update Plot Variables – change the plot variables to def variables so that we can create our own custom, scan condition

After making the changes, this is what the Anchored VWAP scan code looks like:

Anchored VWAP Scan for ThinkOrSwim - Code

And this is our plot variable (aka scan condition):

plot signal = low <= anchoredVWAP and low[1] > anchoredVWAP;

Run the scan and see if the results line up with what you would expect. In the video tutorial, we’ll test this on Starbucks, which we know is currently an example of our “picture perfect” setup.

 

 

Examples

COMCAST (CMCSA)

Let’s look at Comcast to see if it fits the criteria that we already have. So, change the chart tab to CMCSA.

Anchored VWAP Bounce - CMCSA Stock

We see that Comcast is pulling back towards the Anchored VWAP line, and on our previous week, we were above the VWAP. As for this week, our low was below the VWAP, and we also closed above the VWAP price.

So the scan worked!

CMCSA does have an active pullback to the VWAP anchored to March lows, and we were able to find it easily. Let’s try another example.

 

Walmart (WMT)

In Walmart, we see something similar, a little bit less drastic in terms of that March to Feb decline, but still meeting our conditions:

Anchored VWAP Bounce - WMT Stock

 

Boeing (BA)

Anchored VWAP Bounce - BA Stock

Unlike Walmart or Starbucks, Boeing has never really made much of a move, so it looks a little bit unattractive on the decline, but it is still on the same line of the VWAP extrapolated from those lows.

All of these meet the same scan criteria that we are looking for.

Pro Tip: For Volatility Box members, try using the Edge Signals indicator to confirm bounces away from the Anchored VWAP line.

You can also narrow down your timeframe to zoom in and see overbought/oversold confirmations on a more granular basis.

 

Conclusion

To summarize, we started with a weekly time frame scan to scan for markets currently pulling back to the Anchored Volume Weighted Average Price. If you’d like to see more granular data, try narrowing down the time frame to smaller values like daily, or hour basis, whatever fits your bill. Use that to see confirmation of moves away from VWAP level that we’re looking at.

A couple indicators that indicates that the trend is changing

  • Edge Signal indicator – our overbought/oversold confirmation.
  • Market Pulse (Free) – our trend indicator

I hope this video was helpful to the Anchored VWAP traders, or even investors looking to build a list of stocks that you think might be long overdue for a shorter term bounce.

It can also help to find a list of stocks fairly quickly that has basis using previous lows.

You can download and import these scans into your ThinkOrSwim platform for your trading.

Take care everyone, and good luck trading.

Anchored VWAP Scans .ts
# Anchored VWAP Scans for ThinkOrSwim

# Generated by TOS Indicators

# Full tutorial: tosindicators.com/indicators/anchored-vwap-scans

# User Inputs

input length = 14;


// ... 23 more lines ...

Unlock This Code

Create a free account to access the full source code and download files.

Create Free Account Login
Import the Anchored VWAP Scans indicator through Studies > Edit Studies > Import. Once loaded, the indicator automatically analyzes price action and generates signals. Key settings include period length, signal sensitivity, and display options. Most traders find the default settings work well, but you can customize based on your timeframe and trading style.
The optimal Anchored VWAP Scans settings depend on your trading timeframe. Start with default settings and adjust based on backtesting results. Key parameters to optimize include lookback period, signal threshold, and confirmation requirements.
The Anchored VWAP Scans indicator is designed to not repaint once a candle closes. All calculations are based on confirmed price data, ensuring signals remain consistent for backtesting and live trading. However, always verify this behavior in OnDemand mode before using real capital.
Yes, the Anchored VWAP Scans works well for day trading when properly configured. Use it on 5-15 minute charts with tighter settings for more responsive signals. Combine with volume analysis and support/resistance levels for higher probability setups. Always use stop losses as intraday moves can be volatile.
Use ThinkOrSwim's OnDemand feature to backtest the Anchored VWAP Scans indicator. Load historical data, apply the indicator, and manually track signals and outcomes. For automated backtesting, combine with ThinkOrSwim's strategy functions. Document win rates, average gains/losses, and optimal market conditions for best results.

Here are some resources that you may find useful:

  • Anchored VWAP Indicator for ThinkOrSwim (free download)
  • How to import an indicator into ThinkOrSwim (video tutorial)
Featured Tools:
Stock Volatility Box

Stock Volatility Box

Spot reversal zones across 600 stocks & ETFs.

  • Hourly & daily models
  • Powerful Live Scanner
  • Built for day traders
Futures Volatility Box

Futures Volatility Box

Pinpoint reversal zones in 10 major futures markets.

  • 5 models (incl. Scalper)
  • ThinkOrSwim & TradingView
  • SPX traders
ORB Setups

ORB Setups

Find the best Opening Range Breakout setups.

  • Powerful real-time scanner
  • Instant backtests
  • 2+ years data

Get Free Access

Create a free account for downloads and new tutorial alerts.

Create Free Account

More Tutorials Like This

Fisher Transformer

Fisher Transformer

Advanced • 14 minutes
Average True Range Scanner

Average True Range Scanner

Beginner • 14 minutes
V-Score Scans

V-Score Scans

Intermediate • 12 minutes

Ready to Trade With an Edge?

Join 40,000+ traders using institutional-grade tools for ThinkOrSwim.

Get the Bundle
TOS Indicators

Premium thinkorswim indicators, scans, and trading tools to help you trade smarter.

ThinkOrSwim Tools

  • Indicators
  • Scans
  • Backtesters
  • Dashboards
  • thinkScript
  • Browse All

Courses

  • Squeeze Course
  • Earnings Course
  • V-Shaped Reversals
  • Fibonacci Trading

Products

  • Futures Volatility Box
  • Stock Volatility Box
  • ORB Setups
  • Shop All

Guides

  • TTM Squeeze
  • Automated Trading
  • Volatility Trading
  • Opening Range Breakouts
  • Trade Reports
  • Contact Us

© 2026 TOS Indicators. All rights reserved.

Privacy Policy Terms of Service Disclaimer

The information contained on this website is solely for educational purposes, and does not constitute investment advice. The risk of trading in securities markets can be substantial. You must review and agree to our Terms of Service prior to using this site.

U.S. Government Required Disclaimer - Commodity Futures Trading Commission. Futures and options trading has large potential rewards, but also large potential risk. You must be aware of the risks and be willing to accept them in order to invest in the futures and options markets. Don't trade with money you can't afford to lose. This website is neither a solicitation nor an offer to Buy/Sell futures or options. No representation is being made that any account will or is likely to achieve profits or losses similar to those discussed on this website. The past performance of any trading system or methodology is not necessarily indicative of future results.

Individual results may vary, and testimonials are not claimed to represent typical results. All testimonials are by real people, and may not reflect the typical purchaser's experience, and are not intended to represent or guarantee that anyone will achieve the same or similar results.

TOS Indicator's Traders and employees will NEVER manage or offer to manage a customer or individual's options, stocks, currencies, futures, or any financial markets or securities account. If someone claiming to represent or be associated with TOS Indicator solicits you for money or offers to manage your trading account, do not provide any personal information and contact us immediately.

CFTC RULE 4.41 - HYPOTHETICAL OR SIMULATED PERFORMANCE RESULTS HAVE CERTAIN LIMITATIONS. UNLIKE AN ACTUAL PERFORMANCE RECORD, SIMULATED RESULTS DO NOT REPRESENT ACTUAL TRADING. ALSO, SINCE THE TRADES HAVE NOT BEEN EXECUTED, THE RESULTS MAY HAVE UNDER-OR-OVER COMPENSATED FOR THE IMPACT, IF ANY, OF CERTAIN MARKET FACTORS, SUCH AS LACK OF LIQUIDITY, SIMULATED TRADING PROGRAMS IN GENERAL ARE ALSO SUBJECT TO THE FACT THAT THEY ARE DESIGNED WITH THE BENEFIT OF HINDSIGHT. NO REPRESENTATION IS BEING MADE THAT ANY ACCOUNT WILL OR IS LIKELY TO ACHIEVE PROFIT OR LOSSES SIMILAR TO THOSE SHOWN.