Skip to main content Reversion To 50 SMA Indicator TOS 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 17 minutes ThinkOrSwim

Reversion to 50-Day Moving Average

Learn how to build powerful mean reversion scanners and strategies for ThinkOrSwim using the 50-day Simple Moving Average

Download Indicator
How to install in ThinkOrSwim →
Table of Contents
  • The Complete Guide to Trading Reversion to the 50-Day Moving Average in ThinkOrSwim
  • Why the 50-Day Moving Average is Perfect for Mean Reversion Trading
  • Understanding Mean Reversion Mechanics
  • Scanner #1: Basic 50-Day SMA Reversion Detection
  • Scanner #2: Multi-Timeframe Reversion Confirmation
  • Scanner #3: Volume-Confirmed Reversion Setups
  • Building Custom Reversion Indicators
  • Reversion Trading Strategy Rules
  • Advanced Reversion Techniques
  • Risk Management and Position Sizing
  • Market Conditions for Optimal Results
  • Backtesting and Performance Analysis
  • Common Mistakes to Avoid
  • Integration with Other Strategies
  • Conclusion

Master 50-Day Moving Average Mean Reversion in ThinkOrSwim

Discover how to build custom mean reversion scanners that automatically find high-probability trading opportunities when stocks deviate from their 50-day Simple Moving Average.

In this detailed tutorial, you’ll learn to create 3 powerful scans:

  • 50-Day SMA Reversion Scanner
  • Multi-Timeframe Reversion Confirmation Scanner
  • Volume-Confirmed Reversion Setup Scanner

Whether you’re a day trader or swing trader, these scanners will help you spot mean reversion opportunities before major price movements back to the 50-day moving average, giving you a significant edge in sideways and choppy market conditions.

The Complete Guide to Trading Reversion to the 50-Day Moving Average in ThinkOrSwim

The 50-day Simple Moving Average stands as one of the most watched and respected technical indicators in trading. When stock prices stretch too far from this crucial level, they often snap back like a rubber band – creating profitable mean reversion opportunities for savvy traders. This comprehensive guide will teach you how to systematically identify and trade these high-probability setups using custom ThinkOrSwim scanners and proven strategies.

Why the 50-Day Moving Average is Perfect for Mean Reversion Trading

The 50-day SMA represents the average closing price over the past 50 trading days, making it a powerful gauge of intermediate-term sentiment. Unlike shorter moving averages that can be noisy, or longer ones that lag significantly, the 50-day strikes the perfect balance for mean reversion strategies.

Here’s why professional traders rely on 50-day SMA reversion:

  • Institutional significance: Fund managers and algorithmic systems use the 50-day as a key benchmark for position sizing and risk management
  • Psychological importance: Retail traders watch this level closely, creating self-fulfilling prophecies
  • Optimal timeframe: Captures meaningful price movements while filtering out daily noise
  • Statistical reliability: Stocks that deviate significantly from their 50-day SMA tend to revert within 3-10 trading days
  • Risk management: Provides clear reference points for stop losses and profit targets

Understanding Mean Reversion Mechanics

Mean reversion trading operates on a simple principle: prices that move too far from their average tend to return to that average over time. The 50-day SMA serves as our “mean” or center point, and we profit when stretched prices snap back.

The key is identifying when a stock has moved far enough from its 50-day SMA to create a high-probability reversion setup. This typically occurs when:

  • Price is 5-15% away from the 50-day SMA
  • The deviation happens over 3-7 trading days (not a single gap)
  • Volume supports the potential reversal
  • The overall trend remains intact (we’re trading pullbacks, not reversals)

Unlike trend-following strategies that can suffer during choppy markets, mean reversion to the 50-day SMA thrives in sideways conditions where stocks oscillate around their moving averages.

Scanner #1: Basic 50-Day SMA Reversion Detection

Our first scanner identifies stocks that have moved significantly away from their 50-day SMA and are showing signs of potential reversion. This forms the foundation for all our mean reversion strategies.

The core logic measures the percentage distance between the current price and the 50-day SMA:

def sma50 = SimpleMovingAvg(close, 50);
def percentFromSMA = ((close - sma50) / sma50) * 100;
plot bullishReversion = percentFromSMA = -15;
plot bearishReversion = percentFromSMA >= 5 and percentFromSMA <= 15;

This scanner looks for stocks trading 5-15% away from their 50-day SMA. The range is crucial - stocks closer than 5% haven't moved far enough to create compelling setups, while those beyond 15% may be experiencing fundamental changes rather than temporary deviations.

Bullish Reversion Signals: Stocks trading 5-15% below their 50-day SMA

Bearish Reversion Signals: Stocks trading 5-15% above their 50-day SMA

Scanner #2: Multi-Timeframe Reversion Confirmation

While single-timeframe analysis can identify potential setups, adding multi-timeframe confirmation dramatically improves success rates. This scanner ensures that the reversion setup aligns across multiple timeframes.

The strategy combines daily 50-day SMA analysis with shorter-term confirmation:

def sma50Daily = SimpleMovingAvg(close, 50);
def sma20 = SimpleMovingAvg(close, 20);
def percentFromSMA50 = ((close - sma50Daily) / sma50Daily) * 100;
def shortTermMomentum = close > sma20;

plot multiTimeframeReversion = 
    (percentFromSMA50 = 6 and !shortTermMomentum);

This scanner identifies stocks where:

  • The daily price is stretched from the 50-day SMA
  • Short-term momentum (20-day SMA) is starting to turn in favor of reversion
  • The setup shows alignment between daily and intraday timeframes

Multi-timeframe confirmation reduces false signals and increases the probability of successful mean reversion trades.

Scanner #3: Volume-Confirmed Reversion Setups

The most reliable mean reversion setups occur when institutional money starts flowing in the direction of the expected reversion. This scanner combines our distance analysis with volume confirmation to identify the highest-probability opportunities.

def sma50 = SimpleMovingAvg(close, 50);
def percentFromSMA = ((close - sma50) / sma50) * 100;
def avgVolume = SimpleMovingAvg(volume, 20);
def volumeConfirmation = volume > avgVolume * 1.5;
def priceAction = close > open; # For bullish reversions

plot volumeReversion = 
    percentFromSMA = -12 and 
    volumeConfirmation and 
    priceAction;

This scanner identifies the cream of the crop - stocks showing:

  • Significant deviation from 50-day SMA (6-12%)
  • Above-average volume (50% higher than 20-day average)
  • Positive price action (closing higher than opening for bullish setups)

Volume confirmation is crucial because it indicates that smart money is stepping in to buy the dip or sell the rip, supporting the expected reversion move.

Building Custom Reversion Indicators

Beyond scanning, you'll want visual indicators to track reversion setups on your charts. Here's how to build a comprehensive 50-day SMA reversion indicator:

# 50-Day SMA Reversion Indicator
declare lower;

input length = 50;
def sma = SimpleMovingAvg(close, length);
def percentDistance = ((close - sma) / sma) * 100;

plot distance = percentDistance;
plot upperThreshold = 8;
plot lowerThreshold = -8;
plot reversionZoneUpper = 12;
plot reversionZoneLower = -12;

distance.SetDefaultColor(Color.WHITE);
upperThreshold.SetDefaultColor(Color.YELLOW);
lowerThreshold.SetDefaultColor(Color.YELLOW);
reversionZoneUpper.SetDefaultColor(Color.RED);
reversionZoneLower.SetDefaultColor(Color.GREEN);

AddCloud(upperThreshold, reversionZoneUpper, Color.LIGHT_RED, Color.LIGHT_RED);
AddCloud(lowerThreshold, reversionZoneLower, Color.LIGHT_GREEN, Color.LIGHT_GREEN);

This indicator plots the percentage distance from the 50-day SMA in a lower panel, with colored zones indicating when stocks are stretched enough for reversion trades.

Reversion Trading Strategy Rules

Now that you can identify reversion setups, here are proven rules for trading them profitably:

Bullish Reversion Strategy:

  • Entry Criteria: Stock trading 6-12% below 50-day SMA with volume confirmation
  • Entry Trigger: Bullish reversal candlestick pattern (hammer, engulfing, doji)
  • Stop Loss: 3-5% below entry point or below recent swing low
  • Target 1: 50% retracement back to 50-day SMA
  • Target 2: Full reversion to 50-day SMA
  • Time Stop: Exit if position doesn't move favorably within 5-7 trading days

Bearish Reversion Strategy:

  • Entry Criteria: Stock trading 6-12% above 50-day SMA with volume confirmation
  • Entry Trigger: Bearish reversal candlestick pattern (shooting star, bearish engulfing)
  • Stop Loss: 3-5% above entry point or above recent swing high
  • Target 1: 50% retracement back to 50-day SMA
  • Target 2: Full reversion to 50-day SMA
  • Time Stop: Exit if position doesn't move favorably within 5-7 trading days

Advanced Reversion Techniques

Market Context Analysis: Mean reversion works best in ranging or mildly trending markets. During strong trending phases, stocks can stay "stretched" from their moving averages for extended periods. Use broader market indicators like VIX or market breadth to determine when conditions favor reversion trading.

Sector Rotation Awareness: Some sectors naturally trade at premiums or discounts to their moving averages. Technology stocks might consistently trade above their 50-day SMA during growth phases, while utilities might trade below during risk-on periods. Adjust your thresholds based on sector characteristics.

Earnings Calendar Consideration: Avoid reversion trades within 5 days of earnings announcements, as fundamental catalysts can override technical mean reversion tendencies.

Options Strategies: Consider using options for reversion trades to limit risk and increase return potential. Iron condors work well when you expect a stock to revert to its 50-day SMA, while long straddles can profit from the volatility of the reversion move itself.

Risk Management and Position Sizing

Mean reversion trading requires disciplined risk management because not every stretched stock will revert quickly:

  • Position Size: Risk no more than 1-2% of your account per trade
  • Portfolio Limits: Hold no more than 5-8 reversion positions simultaneously
  • Correlation Awareness: Avoid multiple positions in the same sector or correlated stocks
  • Time Diversification: Stagger entries over 2-3 days rather than entering all positions at once
  • Stop Loss Discipline: Always use stops and never average down on losing reversion trades

Market Conditions for Optimal Results

Reversion to the 50-day SMA works best in specific market conditions:

Ideal Conditions:

  • VIX between 15-25 (moderate volatility)
  • Market in trading range or mild trend
  • Low correlation between individual stocks
  • Normal volume patterns (not holiday periods)

Avoid During:

  • Strong trending markets (VIX below 12 or above 30)
  • Major news events or Federal Reserve meetings
  • End-of-quarter window dressing periods
  • Low-volume holiday periods

Backtesting and Performance Analysis

To validate your reversion strategies, track these key metrics:

  • Win Rate: Aim for 65-75% winning trades
  • Average Hold Time: Most successful reversions occur within 3-7 days
  • Risk-Reward Ratio: Target 2:1 or better reward-to-risk ratios
  • Maximum Adverse Excursion: Track how far trades move against you before reverting

Use ThinkOrSwim's Strategy Tester to backtest your reversion rules and optimize parameters for different market conditions.

Common Mistakes to Avoid

  • Fighting Strong Trends: Don't try to fade stocks in powerful uptrends or downtrends
  • Ignoring Volume: Reversion without volume confirmation often fails
  • Poor Timing: Enter too early before momentum exhausts or too late after reversion begins
  • Overleveraging: Using too much size because reversion "seems certain"
  • Neglecting Fundamentals: Ignoring earnings, news, or sector rotation that could prevent reversion

Integration with Other Strategies

Reversion to the 50-day SMA works well combined with:

  • Bollinger Band reversals for additional confirmation
  • RSI divergences to time entries more precisely
  • Volume profile analysis to identify key support and resistance levels
  • Options flow analysis to gauge institutional sentiment

Conclusion

Trading reversion to the 50-day moving average provides a systematic approach to profiting from one of the market's most reliable tendencies. By combining proper scanning techniques, disciplined entry and exit rules, and solid risk management, you can build a profitable strategy that thrives in the choppy, sideways markets that challenge many other approaches.

Remember that mean reversion is a probability game, not a certainty. Some stocks will continue trending away from their 50-day SMA, which is why proper risk management and position sizing are crucial. Focus on finding the highest-probability setups using volume confirmation and multi-timeframe analysis, and always respect your stop losses.

Start by paper trading these strategies to get comfortable with the timing and mechanics. Once you've proven the approach works for your trading style, gradually increase position sizes while maintaining strict risk management. The 50-day SMA reversion strategy can become a cornerstone of a diversified trading approach that performs well across various market conditions.

50-Day Moving Average Reversion Tools.ts
# 50-Day SMA Reversion Scanner for ThinkOrSwim

# Generated by TOS Indicators

# Full tutorial: tosindicators.com/indicators/reversion-to-50-sma

# Scan 1: Basic Reversion Setup

def sma50 = SimpleMovingAvg(close, 50);


// ... 53 more lines ...

Unlock This Code

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

Create Free Account Login
To scan for reversion setups, go to Scan > Stock Hacker > Add Filter > Study > Custom > ThinkScript Editor. Use this code: def sma50 = SimpleMovingAvg(close, 50); def percentFromSMA = ((close - sma50) / sma50) * 100; plot signal = percentFromSMA = -12; This finds stocks trading 6-12% below their 50-day SMA, which often revert within 3-7 trading days.
The sweet spot is typically 6-12% deviation from the 50-day SMA. Stocks closer than 5% haven't moved far enough to create compelling setups, while those beyond 15% may be experiencing fundamental changes rather than temporary deviations. Always combine distance analysis with volume confirmation for best results.
Most successful mean reversion trades to the 50-day SMA complete within 3-7 trading days. If a position hasn't moved favorably within 5-7 days, consider using a time stop to exit and redeploy capital in fresh setups. Extended hold times often indicate the stock is in a new trend phase rather than temporary deviation.
For mean reversion strategies, the Simple Moving Average (SMA) is preferred over the Exponential Moving Average (EMA). The SMA gives equal weight to all 50 days, creating a more stable reference point that institutions and algorithms commonly use. The EMA's recent price weighting can create false signals in volatile markets.
Look for volume at least 50% above the 20-day average volume when the stock begins showing reversion signals. High volume during the initial bounce or rejection from extreme levels indicates institutional participation, which significantly increases the probability of successful mean reversion. Avoid low-volume setups that lack institutional support.
Effective combinations include RSI for oversold/overbought confirmation (RSI below 30 for bullish reversions), Bollinger Bands for statistical extremes, and shorter-term moving averages (20-day) for momentum confirmation. Use this ThinkScript: def rsiConfirm = RSI() < 30; def reversionSignal = percentFromSMA <= -8 and rsiConfirm; This adds RSI confirmation to distance-based reversion signals.
Reversion strategies work best when VIX is between 15-25 (moderate volatility), markets are ranging or in mild trends, and individual stock correlations are low. Avoid during strong trending markets (VIX below 12 or above 30), major news events, earnings season, and holiday periods with low volume.
Set stops 3-5% beyond your entry point or below/above the recent swing low/high that created the reversion setup. For stocks 8% below their 50-day SMA, a stop 3-4% below entry provides adequate protection. Never average down on losing reversion trades, as this can lead to significant losses if the stock is entering a new downtrend phase.

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

Simple Breakout Tool

Simple Breakout Tool

Beginner • 14 minutes
Simple Momentum Signal For Short-Term Reversals

Simple Momentum Signal For Short-Term Reversals

Intermediate • 6 minutes
Dollar Cost Average Calculator

Dollar Cost Average Calculator

Beginner-Friendly • 30 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.