[2026-01-21 07:56:42] Swing Scanner script execution started.
Swing Scanner - Local CSV Data
Scanner Rules for Swing Trading:
Trend Filter
- Stock price must be above 50-day SMA
- 50-day SMA must be above 200-day SMA (strong trend)
Condition A - Momentum Breakout Setup
- Today's close > highest close of last 20 days
- Volume > 1.5 × average volume (20-day)
- RSI(14) between 55 and 70 (not already overbought)
Condition B - Mean Reversion Pullback Setup
- Price touches or closes near the 20-day EMA (within ±2%)
- RSI(14) between 40 and 50
- Bullish reversal candle (Close > Open)
Condition C - Regime Shift / Early Momentum
- RSI(14) crosses above 50 within last 5 bars
- EMA20 sloping up (higher than 5 bars ago)
- Close near EMA20 (within ±3%)
- Volume ≥ 1.2 × AvgVol(20)
- Optional: recent Golden Cross (SMA50 crossed above SMA200 within 20 bars)
Condition D - Volatility Contraction Pattern
- Close > SMA(200) - Above long-term trend
- EMA(20) rising - Short-term momentum
- Close within 5% of Highest(High, 200) - Near recent highs
- BB Width(20) < 60th Percentile - Volatility squeeze
- Low > EMA(20) × 0.98 - Respecting rising 20EMA
- Up Day Volume > Down Day Volume - Bullish volume trend
Liquidity & Volatility Filters
- Average daily volume (20-day) > 500,000 shares
- ATR(14) > 2% of current price
Supported Markets: NSE Equity Stocks
Data Source: Local stocks.csv file
[2026-01-21 07:56:43] Swing Scanner script execution finished.