Skip to main content Market Pulse Indicator 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-Friendly 40 mins ThinkOrSwim TradingView

Market Pulse

Build a powerful trend trading indicator, that automatically identifies the 4 market stages and helps you profit from them.

Download Indicator
How to install in ThinkOrSwim →
Table of Contents
  • Building the Market Pulse Indicator in ThinkOrSwim

Master Market Stage Analysis with the Market Pulse Indicator

Discover how to build a comprehensive market analysis tool that automatically identifies which of the 4 market stages you’re currently trading in.

This advanced tutorial teaches you to create:

  • Volume Weighted Moving Average (VWMA) system
  • Variable Moving Average with volatility adjustment
  • 4 Market Stages detection: Acceleration, Distribution, Deceleration, Accumulation
  • Automated scans for stage transitions
  • Multi-symbol utility labels for market overview
  • TRIN and Put/Call ratio integration

Whether you’re trading options, stocks, or ETFs, this indicator helps you adapt your strategy to current market conditions and identify the most profitable opportunities.

Building the Market Pulse Indicator in ThinkOrSwim

If you’ve ever wondered why your bullish trades keep getting wrecked in a choppy market, or why your puts expire worthless during strong uptrends, you’re not alone. Most traders make the mistake of using the same strategies regardless of market conditions. The Market Pulse indicator fixes this by telling you exactly what type of market you’re trading in.

The Problem with Most Trading Approaches

Here’s what typically happens: You see a setup that looks good, place your trade, and then watch the market do the opposite of what you expected. Sound familiar? The issue isn’t your setup—it’s that you’re using the wrong strategy for the current market environment.

Markets cycle through four distinct phases, and each one demands a completely different approach:

  • Acceleration: Time to get aggressive with calls
  • Distribution: Stick to neutral strategies like iron condors
  • Deceleration: Put strategies work best
  • Accumulation: Conservative buying opportunities

What Makes This Different from Regular Moving Averages

Volume Weighted Moving Average (VWMA)

Regular moving averages treat a quiet Tuesday the same as a massive volume spike on earnings day. That’s ridiculous. The VWMA actually weighs periods by volume, so when the S&P has 5x normal volume, it matters more in the calculation.

Market Pulse Indicator for ThinkOrSwim

Think about it: if institutions are dumping millions of shares, shouldn’t that carry more weight than some low-volume drift? The VWMA captures this while regular MAs just shrug.

Variable Moving Average

This one’s clever—it automatically adjusts based on volatility. When the VIX is spiking and everything’s going crazy, it becomes more responsive. During quiet periods, it smooths out the noise. It’s like having a moving average that actually pays attention to market conditions.

The Four Market Stages (And What to Actually Do)

Four Market Stages in Every Trend

Acceleration Stage

You know you’re here when the 8, 21, and 34-period VWMAs are stacked like stairs going up, and price is above the variable MA. This is when Ron (one of the members who requested this tutorial) makes his money with Delta 30 calls.

What works: Long calls, call spreads, basically anything bullish. This is not the time to be cute with neutral strategies.

Distribution Stage

The moving averages stop stacking nicely and start getting messy. Price might be above the variable MA, but there’s no clear trend. This is when smart money is rotating positions and taking profits.

What works: Iron condors, strangles, anything that profits from the market going sideways. Avoid directional bets here—you’ll just get chopped up.

Deceleration Stage

Everything flips. The VWMAs stack downward (8 < 21 < 34) and price drops below the variable MA. Time to dust off those put strategies.

What works: Long puts, put spreads, short strategies. But be ready to take profits quickly—bear market rallies can be vicious.

Accumulation Stage

MAs aren’t stacked, price is below the variable MA, but smart money is quietly buying. This stage requires patience—the fireworks come later.

What works: Cash-secured puts, buying stock on weakness. Boring but profitable if you time the next acceleration phase.

Building the Indicator

The code isn’t complicated once you understand what’s happening:

# Volume Weighted Moving Averages
def VWMA8 = Sum(volume * close, 8) / Sum(volume, 8);
def VWMA21 = Sum(volume * close, 21) / Sum(volume, 21);
def VWMA34 = Sum(volume * close, 34) / Sum(volume, 34);

# Stage Detection
def bullish = VWMA8 > VWMA21 and VWMA21 > VWMA34;
def bearish = VWMA8 < VWMA21 and VWMA21 < VWMA34;

The magic happens when you combine this with the variable MA to determine which of the four stages you're in. The indicator colors everything for you—green for acceleration, red for deceleration, yellow for accumulation, orange for distribution.

Adding Market Breadth (Because Context Matters)

Individual stocks can lie, but the TRIN and put/call ratio don't. When TRIN hits 2.0+, institutions are panic selling (usually a good thing for buyers). When it drops below 0.5, everyone's getting too bullish.

Same with the put/call ratio. The 10-day average above 1.0 means too much fear, below 0.85 means too much greed. These levels give you context for whether your individual setups align with broader market sentiment.

The Scanning Setup That Actually Works

Here's where it gets interesting. You can scan for the exact moment when stages change:

# Accumulation to Acceleration
plot signal = bullish and close >= VMA and !bullish[1];

# Distribution to Deceleration  
plot signal = bearish and close <= VMA and !bearish[1];

These transitions are where the money is made. Think about it—you're catching the shift right as it happens, not after everyone else notices.

Real Trading Applications

Let's say XLU shows up in your accumulation-to-acceleration scan. You check the chart, confirm the stage change, and grab some calls. That's exactly what happened in the tutorial video—XLU was transitioning, and anyone paying attention could have caught that move.

Or maybe the scan shows Netflix moving into deceleration. Time to look at put spreads or just stay away if you're primarily bullish.

The utility labels show you everything at once—SPY, QQQ, sector ETFs, all color-coded by stage. You can immediately see that tech might be accelerating while financials are decelerating. That's valuable information for position sizing and sector selection.

What Usually Goes Wrong

The biggest mistake? Fighting the stage. I've seen traders buying calls during clear deceleration phases because "the chart looks good." The chart might look good, but the market structure is telling you something different.

Another common error is ignoring the transitions. Those stage changes are where the biggest moves happen, but most people don't notice until it's too late. By then, the easy money is gone.

Also, don't overtrade during distribution phases. Sometimes the best move is no move. The market will give you better opportunities when it shifts into acceleration or deceleration.

Testing Your Results

Use ThinkOrSwim's OnDemand to backtest these signals. Pick a date, see what stage the market was in, and track what happened over the next few weeks. You'll start to see patterns—acceleration phases often lead to 3-5% moves in major indices within 1-2 weeks.

The tutorial showed exactly this process with XL RE. The stage transition signal appeared, and you could track the subsequent options performance using historical data. That's how you build confidence in the system.

Making It Work for Your Account Size

Whether you're trading with $5K or $500K, the stages are the same. Smaller accounts might focus on single-leg options during clear acceleration/deceleration phases. Larger accounts can use spreads and more complex strategies.

The key is matching your strategy to the current stage, not your account size. A $5K account using the right strategy in acceleration will outperform a $500K account fighting the market structure.

Start simple: identify the current stage, pick appropriate strategies, and gradually add the scanning features as you get comfortable. The multi-symbol labels alone will change how you view the market—instead of guessing what's happening, you'll know.

Market Pulse & Utility Labels Indicators.ts
#TOS Indicators

#Home of the Volatility Box

#More info regarding this indicator here: tosindicators.com/indicators/market-pulse

#Code written in 2019

#Full Youtube Tutorial here: https://youtu.be/Hku6dLR-m_A


// ... 50 more lines ...

Unlock This Code

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

Create Free Account Login
To build the Market Pulse indicator, create Volume Weighted Moving Averages (8, 21, 34 periods) and a Variable Moving Average (21 period). Define market stages using stacked moving average conditions: bullish when 8>21>34, bearish when 8<21<34, and distribution when not stacked. Add color-coded labels and visual signals for easy identification of the four market stages.
The four market stages are: 1) Acceleration (bullish trend with stacked VWMAs, use aggressive call strategies), 2) Distribution (sideways action, use neutral strategies like iron condors), 3) Deceleration (bearish trend with inverted VWMAs, use put strategies), 4) Accumulation (consolidation phase, use conservative long strategies). Each stage requires different trading approaches.
Volume Weighted Moving Average (VWMA) gives greater weight to price periods with higher volume, providing better insight into institutional activity. The calculation is Sum(Volume × Price) ÷ Sum(Volume). This makes VWMA more responsive to significant trading activity and better at identifying when smart money is accumulating or distributing positions.
Yes, create custom scans for stage transitions using conditions like: bullish and close >= VMA and !bullish[1] for Accumulation to Acceleration switches, or bearish and close <= VMA and !bearish[1] for Distribution to Deceleration switches. These scans identify the exact moments when market character changes, offering high-probability trading opportunities.
Acceleration stage: Long calls, call spreads, covered calls on pullbacks. Distribution stage: Iron condors, strangles, calendar spreads. Deceleration stage: Long puts, put spreads, covered puts on bounces. Accumulation stage: Cash-secured puts, long stock positions on weakness. Match your strategy to the current market stage for optimal results.
Add market breadth by referencing external symbols: close("$TRIN") for TRIN and SimpleMovingAvg(close("$PCALL"), 10) for 10-day Put/Call ratio. Create labels that change colors based on extreme readings: TRIN above 2.0 (bullish) or below 0.5 (bearish), Put/Call above 1.0 (bullish) or below 0.85 (bearish).
Daily charts work best for swing trading and position management. Hourly charts can be used for intraday applications. The 8, 21, 34 period VWMAs are optimized for daily timeframes. For shorter timeframes, consider adjusting periods proportionally (e.g., 8, 21, 34 minute periods for intraday). Weekly charts help identify longer-term market stage trends.
Use ThinkOrSwim's OnDemand feature to replay historical data. Load the Market Pulse indicator, identify past stage transition signals, and track subsequent price movements. Document win rates and optimal holding periods for different strategies in each market stage. This helps optimize entry timing and strategy selection for future trades.

Here are some resources that you may find useful:

  • How to import an indicator into ThinkOrSwim (video tutorial)
  • Automated Trading with the Market Pulse (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

Anchored VWAP

Anchored VWAP

Beginner • 8 minutes
How to Build a Heiken Ashi Trend Dots Indicator in ThinkOrSwim

How to Build a Heiken Ashi Trend Dots Indicator in ThinkOrSwim

Beginner-Friendly • 14 mins
Reversion to 50-Day Moving Average

Reversion to 50-Day Moving Average

Beginner • 17 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.