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 for ThinkOrSwim
# Generated by TOS Indicators
# Full tutorial: tosindicators.com/indicators/santa-claus-rally-backtester
# User Inputs
input length = 14;
// ... 23 more lines ...Here are some resources that you may find useful: