Skip to main content Santa Claus Rally Backtester For ThinkOrSwim (FREE) 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 14 minutes ThinkOrSwim

Santa Claus Rally Backtester

Learn to build two powerful ATR scans in ThinkOrSwim: Identify high-volatility stocks and find consolidations near key moving averages. Boost trading decisions with volatility-based filtering and trend alignment.

Download Indicator
How to install in ThinkOrSwim →
Table of Contents
  • Understanding the Santa Claus Rally Backtester
  • Key Components and Settings
  • Step-by-Step Implementation
  • Trading Strategies
  • Advanced Techniques
  • Common Pitfalls to Avoid
  • Best Practices

Introduction

The Santa Claus Rally Backtester empowers traders to identify high-probability setups using volatility and trend analysis. This ThinkOrSwim solution combines Average True Range (ATR) scanning with moving average alignment to find stocks in consolidation phases. It helps traders spot potential breakouts during seasonal market patterns.

Scan 1 filters for stocks with above-average volatility using a 50-bar ATR comparison. Scan 2 adds sophisticated criteria including moving average hierarchy and price proximity to the 50 SMA. Both scans use concrete parameters like 10-bar compression ranges and 5% SMA thresholds.

Traders gain an edge by combining volatility measurements with trend structure analysis. The system helped identify Micron (MU) and Roku (ROKU) during critical compression phases. These tools adapt to various market conditions while maintaining strict liquidity filters for reliable results.

Understanding the Santa Claus Rally Backtester

The Santa Claus Rally Backtester uses volatility and trend alignment to identify strategic entry points. It combines two distinct scanning methodologies: basic ATR filtering and advanced multi-indicator analysis. The system focuses on the 50-period SMA as a key reference point for price consolidation.

Scan 1 identifies stocks with current ATR values exceeding their 50-bar average, signaling increased volatility. This helps traders spot potential momentum plays during market rallies. The scan filtered 6,123 stocks down to 246 candidates like NVIDIA (NVDA) and Ford (F).

Scan 2 adds moving average hierarchy and compression criteria for precision. It requires the 8 EMA > 34 EMA > 50 SMA structure seen in Micron (MU). The 10-bar compression range must stay within 2x ATR, creating a volatility contraction setup.

Key Components and Settings

The system uses three liquidity filters: $10+ stock price, 2M+ average volume, and NYSE/NASDAQ listings. These ensure tradable instruments and prevent timeout errors. Custom ATR calculations form the core volatility measurement.

Moving averages use specific periods: 8 EMA (cyan), 34 EMA (gold), and 50 SMA (dashed white). The hierarchy condition (8>34>50) maintains upward momentum. Price must stay within 5% of the 50 SMA, adjustable via input percentage.

The 10-bar compression compares High-Low range to 2x ATR. This identifies tighter than normal trading ranges. Additional filters can include 50 SMA > 200 SMA for stronger trends.

Step-by-Step Implementation

Start with Scan 1: Add basic liquidity filters using Stock > Price and Volume conditions. Create custom study referencing ATR with ‘def ATR = ATR();’. Compare current ATR to 50-bar average using ‘plot signal = ATR > Average(ATR,50)’.

For Scan 2: Build 10-bar compression using ‘Highest(high,10) – Lowest(low,10) ExpAverage(close,34)’. Implement SMA proximity using ‘close >= SMA50*(1-inputPercent/100)’.

Optimize parameters: Adjust 5% SMA proximity to 3% for tighter setups. Add 200 SMA filter using ‘SMA50 > SMA200’. Test with $10-$20 price range and 2M-5M volume for different cap tiers.

Trading Strategies

Use Scan 1 results for volatility breakout plays on 15-minute charts. Look for stocks like Ford (F) breaking above ATR bands with increasing volume. Pair with momentum indicators like RSI(14) > 60 for confirmation.

Scan 2 candidates work best with Bollinger Band squeeze confirmations. Trade Micron (MU)-style setups when price breaks 10-bar high with 2x average volume. Set profit targets at 1.5x ATR from entry point.

Combine both scans during Santa Claus Rally period (Dec 25-Jan 3). Focus on sectors showing seasonal strength – tech stocks like AMD (AMD) and retail names like Target (TGT). Use OCO orders to manage risk in thin markets.

Advanced Techniques

Create scan variations using exponential ATR averages instead of simple. Replace ‘Average(ATR,50)’ with ‘ExpAverage(ATR,34)’ for faster signals. Add volume spike condition (3x average) to confirm breakouts.

Incorporate sector-specific filters using ThinkOrSwim’s industry groups. Scan for tech stocks (XLK constituents) with compression near 50 SMA. Use relative strength comparison against SPY for added confirmation.

Backtest parameters using OnDemand: Compare 5% vs 3% SMA proximity effectiveness. Analyze historical win rates for 10-bar vs 8-bar compression periods. Optimize moving average hierarchy (8/21/34 vs 5/13/34 combinations).

Common Pitfalls to Avoid

Avoid using scans without liquidity filters – results become unreliable. Prevent timeout errors by setting minimum volume to 2M shares. Always cross-verify scan results with manual chart analysis.

Don’t trade compression breakouts during low-volume sessions. Wait for NYSE open at 9:30 AM EST for confirmation. Avoid stocks with earnings within 3 days – increased gap risk.

Never risk >2% per trade on these setups due to volatility. Use hard stops below 50 SMA or prior swing low. Avoid overtrading – maximum 3 positions daily from scan results.

Best Practices

Run scans daily at market close for next-day watchlists. Save multiple scan versions with different parameters (3%/5% SMA). Organize results using ThinkOrSwim’s watchlist columns (ATR value, SMA distance).

Combine with price action analysis – look for bullish hammers near 50 SMA. Use ThinkOrSwim’s ‘Edge Signals’ indicator for automated pattern recognition. Document trades in journal with screenshot annotations.

Regularly update parameters – adjust ATR multiplier seasonally. Monitor sector rotation – shift from tech to energy in January. Review scan performance monthly using ThinkBack testing tools.

Santa Claus Rally Backtester.ts
# Santa Claus Rally Backtester for ThinkOrSwim

# Generated by TOS Indicators

# Full tutorial: tosindicators.com/indicators/santa-claus-rally-backtester

# 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
Edit the ATR() function parameters: Change 'ATR()' to 'ATR(length=20)' in the custom study. Adjust both scan 1's 50-bar average and scan 2's compression formula accordingly.
Start with 5% (inputPercent=5) and adjust based on market volatility. For large caps, use 3%; for small caps, 7%. Test values using OnDemand backtesting.
Add 'SMA200 = SimpleMovingAvg(close,200);' and include 'SMA50 > SMA200' in conditions. Use ThinkOrSwim's 'Add Filter' > 'Custom' menu for implementation.
Increase liquidity filters: Set minimum volume to 2M shares and price >$15. Use Market Hours filter and limit to NYSE/NASDAQ stocks for faster processing.
Load scan results in charts with ATR(14), 8/34/50 MAs. Check compression visually and confirm Edge Signals arrows. Use Volume Profile for key level validation.

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

SPY Meltdown Backtester

SPY Meltdown Backtester

Beginner-Friendly • 8 mins
Post-Election Backtester

Post-Election Backtester

Beginner-Friendly • 10 mins
TTM Squeeze Backtester

TTM Squeeze Backtester

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