Skip to main content Wilder's Momentum Concept (Free ThinkOrSwim Indicator) 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 23 minutes ThinkOrSwim

Wilder's Momentum Concept

Learn how to build Wilder's Momentum Concept indicator for ThinkOrSwim using simple ThinkScript code. Master this 40-year-old momentum trading strategy with our complete tutorial and free download.

Download Indicator
How to install in ThinkOrSwim →
Table of Contents
  • Introduction
  • Building Wilder’s Momentum Concept for Superior Trading Results
  • Understanding Wilder’s Momentum Factor Calculation
  • Wilder’s Entry Signal Rules
  • Building Wilder’s Momentum Concept in ThinkScript
  • Advanced Features and Customization
  • Creating Momentum Shift Scans
  • Combining Wilder's Concept with Modern Analysis
  • The Trend Balance Point System
  • Historical Context and Modern Relevance

Master Wilder’s Classic Momentum Trading Strategy

Discover how to translate J. Welles Wilder’s legendary 40-year-old momentum concept into a powerful ThinkOrSwim indicator that identifies momentum shifts before they become obvious to other traders.

This comprehensive tutorial teaches you to:

  • Build Wilder’s momentum factor calculation using simple ThinkScript
  • Identify precise long and short entry signals based on momentum acceleration
  • Create custom scans to find stocks with shifting momentum patterns
  • Apply classic momentum analysis to modern day trading strategies

Perfect for traders who want to combine time-tested momentum concepts with modern technical analysis tools.

Introduction

In today’s tutorial, we will translate a 40-year-old trading concept into a trading indicator for ThinkOrSwim.

Wilder's Momentum Concept for ThinkOrSwim

This concept measures momentum by looking at the change in price over time. This momentum factor is the secret sauce, allowing you to spot changes in direction.

Here’s what we’ll discuss in this tutorial:

  • Understand Wilder’s Momentum Concept
  • Write thinkScript Code or Thinkorswim Indicator
  • Translate the Indicator into a Scan

Let’s get started! A big thank you to Dorothy (fellow Volatility Box member), who discovered, researched and shared this concept with us. You can learn more about it in J. Weller’s book, New Concept in Technical Trading Systems (1978). You can find the concept on page 53 of the book.

Building Wilder’s Momentum Concept for Superior Trading Results

J. Welles Wilder Jr., the legendary technical analyst who gave us the RSI, Average True Range, and Parabolic SAR, also developed a powerful momentum concept that remains remarkably effective in today’s markets. Wilder’s Momentum Concept, detailed in his 1978 book “New Concepts in Technical Trading Systems,” provides a systematic approach to measuring momentum using the acceleration and deceleration of price movements.

This 40-year-old concept measures momentum by looking at the change in price over time, using what Wilder called the “momentum factor” – the secret sauce that allows traders to spot changes in direction before they become obvious. While many traders focus on complex indicators, Wilder’s approach proves that sometimes the most elegant solutions are also the most effective.

Understanding Wilder’s Momentum Factor Calculation

The foundation of Wilder’s Momentum Concept lies in the momentum factor calculation, which compares today’s closing price to the closing price from two days ago. This simple yet powerful calculation reveals the underlying acceleration or deceleration in price movement that often precedes major directional changes.

Here’s how the momentum factor works in practice:

Momentum Factor Formula:

Momentum Factor = Today's Close - Close from 2 Days Ago

Let’s examine a real-world example using 10 days of price data to understand how the momentum factor evolves:

Day Closing Price Momentum Factor Signal
1 $49.25 – Gathering Data
2 $49.75 – Gathering Data
3 $50.25 +$1.00 First Reading
4 $50.75 +$1.00 Momentum Maintained
5 $51.10 +$0.85 Momentum Decreasing
6 $50.75 $0.00 Momentum Neutral

Notice how the momentum factor fluctuates as time progresses. On Day 5, we see the momentum factor decrease from +1.00 to +0.85, which often signals that the current upward momentum is beginning to exhaust itself.

Wilder Momentum Chart Visualization

Wilder’s Entry Signal Rules

Wilder established specific criteria for determining when momentum shifts warrant trading action. The key insight is that long and short signals have different requirements, reflecting the asymmetric nature of market movements.

Long Entry Signal:

Go long when today’s momentum factor is higher than either of the previous two days’ momentum factors. This “either/or” condition makes long signals more sensitive to positive momentum changes.

Short Entry Signal:

Go short when today’s momentum factor is lower than both of the previous two days’ momentum factors. This “both” requirement makes short signals more stringent, requiring stronger evidence of momentum deterioration.

This asymmetry reflects Wilder’s understanding that markets tend to fall faster than they rise, requiring more confirmation for short trades while allowing quicker entry into long positions during momentum acceleration.

Building Wilder’s Momentum Concept in ThinkScript

Translating Wilder’s concept into ThinkScript requires just a few lines of code, making it an excellent project for beginners learning ThinkOrSwim programming. The elegance of the original concept translates beautifully into modern trading platforms.

Step 1: Define the Momentum Factor

def momentumFactor = close - close[2];

This single line captures Wilder’s core calculation, comparing today’s closing price to the close from two bars ago. The [2] notation in ThinkScript refers to the value from two bars prior.

Step 2: Create Long Entry Conditions

def longMomentumEntry = if momentumFactor > momentumFactor[1] or 
                           momentumFactor > momentumFactor[2] 
                        then 1 else 0;

This code implements Wilder’s “either/or” rule for long entries, triggering when today’s momentum factor exceeds either of the previous two days’ readings.

Step 3: Create Short Entry Conditions

def shortMomentumEntry = if momentumFactor < momentumFactor[1] and 
                            momentumFactor < momentumFactor[2] 
                         then 1 else 0;

The short entry uses Wilder's more stringent "both" requirement, only triggering when today's momentum factor is less than both previous readings.

Step 4: Visual Implementation

plot longSignal = if longMomentumEntry then close else Double.NaN;
plot shortSignal = if shortMomentumEntry then close else Double.NaN;

longSignal.setPaintingStrategy(PaintingStrategy.POINTS);
shortSignal.setPaintingStrategy(PaintingStrategy.POINTS);
longSignal.setDefaultColor(Color.CYAN);
shortSignal.setDefaultColor(Color.MAGENTA);

This creates visual signals on your charts, plotting cyan dots for long entries and magenta dots for short entries at the closing prices where signals occur.

Advanced Features and Customization

Adding User Controls

Professional implementations include user inputs for customization:

input showMomentumFactor = yes;
input showMomentumBubbles = no;

AddChartBubble(showMomentumBubbles, close, momentumFactor, 
               if longMomentumEntry then Color.CYAN else Color.MAGENTA);

These inputs allow traders to toggle the display of momentum values and visual signals based on their preferences.

Color-Coded Momentum Display

Enhance the visual feedback by color-coding momentum bubbles based on current conditions:

AddChartBubble(showMomentumBubbles, close, momentumFactor,
               if momentumFactor > momentumFactor[1] or momentumFactor > momentumFactor[2]
               then Color.CYAN else Color.MAGENTA);

Creating Momentum Shift Scans

The real power of Wilder's concept emerges when you systematically scan for momentum shifts across entire market universes. Converting the indicator into a scan allows you to identify opportunities as they develop.

Basic Scan Structure:

def momentumFactor = close - close[2];
def longMomentumEntry = if momentumFactor > momentumFactor[1] or 
                           momentumFactor > momentumFactor[2] 
                        then 1 else 0;

plot signal = longMomentumEntry and !longMomentumEntry[1];

This scan identifies stocks where a long momentum signal triggered today but wasn't present yesterday, helping you catch momentum shifts as they occur.

Bearish Momentum Scan:

def shortMomentumEntry = if momentumFactor < momentumFactor[1] and 
                            momentumFactor < momentumFactor[2] 
                         then 1 else 0;

plot bearishShift = shortMomentumEntry and !shortMomentumEntry[1];

Similarly, this scan captures bearish momentum shifts, identifying stocks where selling pressure is accelerating according to Wilder's criteria.

Combining Wilder's Concept with Modern Analysis

Multi-Timeframe Momentum Analysis

Apply Wilder's concept across different timeframes for comprehensive momentum analysis:

  • Daily charts: Identify swing trading opportunities and major trend changes
  • Hourly charts: Fine-tune entries and exits for day trading
  • 15-minute charts: Scalping opportunities with momentum confirmation

Integration with Volume Analysis

Combine momentum signals with volume confirmation for higher-probability setups. Momentum shifts supported by increasing volume often prove more reliable than those occurring on light volume.

Support and Resistance Confluence

The most powerful applications occur when Wilder's momentum signals align with key technical levels. Momentum shifts at major support or resistance often mark significant turning points.

The Trend Balance Point System

Wilder also developed the Trend Balance Point System, which reverse-engineers the momentum factor to determine what closing price is needed for a momentum signal to trigger. This advanced concept allows traders to set precise targets and stops based on momentum requirements.

Trend Balance Point Calculation:

The system calculates the exact closing price needed today for either a long or short momentum signal to trigger, allowing proactive position management rather than reactive signal-following.

Historical Context and Modern Relevance

J. Welles Wilder developed this concept in 1978, during an era when technical analysis was primarily done by hand with chart paper and calculators. The fact that his momentum concept translates so elegantly into modern algorithmic trading speaks to the timeless nature of his insights into market behavior.

Wilder's understanding of momentum psychology - that acceleration and deceleration in price movements reveal underlying shifts in market sentiment - remains as relevant today as it was four decades ago. High-frequency trading and modern market microstructure haven't changed these fundamental momentum dynamics.

Wilder's Momentum Concept.ts
# Wilder’s Momentum Concept for ThinkOrSwim

# Based on J. Welles Wilder’s 1978 “New Concepts in Technical Trading Systems”

# TOS Indicators – Full tutorial: tosindicators.com/indicators/wilders-momentum

# User input controls

input showMomentumFactor = yes;


// ... 50 more lines ...

Unlock This Code

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

Create Free Account Login
To add Wilder's Momentum Concept to ThinkOrSwim, go to Studies > Create Study, paste the provided ThinkScript code, and name it "Wilders Momentum." The indicator will display cyan dots for long momentum signals and magenta dots for short momentum signals directly on your price chart.
Wilder's momentum factor compares today's close to the close from exactly 2 days ago, while most momentum indicators use percentage changes or longer lookback periods. Wilder's approach provides more sensitive signals for short-term momentum shifts, with asymmetric entry rules that make long signals easier to trigger than short signals.
Long signals trigger when today's momentum factor is higher than EITHER of the previous two days. Short signals require today's momentum factor to be lower than BOTH previous days. This asymmetric approach reflects Wilder's understanding that markets fall faster than they rise, requiring stronger confirmation for short trades.
Wilder's concept works on any timeframe. Use daily charts for swing trading, hourly charts for day trading, and 15-minute charts for scalping. The 2-period lookback adapts to whatever timeframe you choose, making it versatile for different trading styles while maintaining the original momentum logic.
The Trend Balance Point System reverse-engineers Wilder's momentum factor to calculate what closing price is needed today for a momentum signal to trigger. This allows proactive position management by knowing exact price levels where momentum conditions will be met, rather than waiting for signals to appear.
Create momentum shift scans by adding conditions like "longEntry and !longEntry[1]" to find stocks where long momentum signals appeared today but not yesterday. This identifies fresh momentum changes rather than ongoing conditions, helping you catch momentum shifts as they develop.
Wilder's momentum concept pairs excellently with his other creations: RSI for overbought/oversold confirmation, Average True Range (ATR) for volatility-based stops, and Parabolic SAR for trend-following exits. Combining multiple Wilder indicators creates comprehensive trading systems based on his integrated approach to market analysis.
Wilder chose the 2-day lookback because it captures meaningful momentum changes without excessive noise. Shorter periods (1 day) create too many false signals, while longer periods (3+ days) lag too much for timely entries. The 2-day period strikes an optimal balance between sensitivity and reliability for momentum analysis.

Here are some resources that you may find useful:

  • 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

Wheel Option Calculator

Wheel Option Calculator

Beginner • 11 minutes
Cumulative TICK

Cumulative TICK

Beginner • 21 minutes
Candle Counter

Candle Counter

Beginner-Friendly • 16 mins

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.