Stock Expansion - Pullback Screener (v6)Stock Expansion → Pullback Screener (v6) – Momentum Continuation Filter
This open-source, non-repainting indicator acts as a **screener** for high-probability pullback entries after strong momentum expansion candles — a classic continuation setup used in momentum, trend-following, and swing trading.
Core Concept
Markets often produce explosive candles during momentum surges (news, breakouts, volume spikes). After such expansions, price frequently retraces to value areas (dynamic support/resistance) before resuming the trend. This tool identifies:
1. Strong directional expansion bars
2. Sustained momentum confirmation
3. Healthy pullbacks to logical re-entry zones
…within a short time window after the expansion.
Why this combination?
- Raw expansion (large range) can be noisy → we require strong body (>60% of range) + ATR filter to isolate conviction moves.
- Directionless expansions are ignored → RSI momentum zones (>55 bull, <45 bear) add trend bias.
- Pullbacks to EMAs alone can be premature → we require price to be sandwiched between fast/slow EMA **or** very close to VWAP (institutional fair value proxy).
- Time decay prevents stale signals → only signals within user-defined bars after expansion (default 20).
This creates a focused, confluence-based filter that reduces whipsaws compared to single-indicator approaches.
How It Works – Step by Step
1. Expansion Candle Detection
- Range > ATR(14) × multiplier (default 1.3)
- Body > 60% of range (shows directional conviction, not just wick volatility)
2. Momentum Filter
- Bullish expansion: RSI(14) > 55
- Bearish expansion: RSI(14) < 45
3. Time Window
- Signal active only within maxBars (default 20) after the expansion candle
4. Pullback Zone Definition
- Bullish pullback: price between EMA20 and EMA50 **OR** within 0.3% of VWAP
- Bearish pullback: price between EMA50 and EMA20 **OR** within 0.3% of VWAP
5. Final Signal
- Bullish: active bull expansion window + current momentum still bullish + pullback zone
- Bearish: mirror logic
Visuals & Alerts
- Green triangle below bar → Bullish Expansion → Pullback setup
- Red triangle above bar → Bearish Expansion → Pullback setup
- Built-in alertconditions:
→ "Bullish expansion pullback on {{ticker}} ({{interval}})"
→ "Bearish expansion pullback on {{ticker}} ({{interval}})"
How to Use as a Screener
1. Add to any stock/ETF/index chart (works best on 15m–4h timeframes).
2. Use TradingView’s built-in screener or watchlist + alerts:
- Create separate alerts for bull/bear conditions
- Or scan manually across multiple tickers
3. Typical workflow:
- Wait for expansion triangle (strong move occurred)
- Wait for pullback triangle within ~10–20 bars
- Enter in direction of expansion when both conditions fire
4. Best environments:
- Trending stocks/sectors (tech, growth, momentum names)
- After earnings, sector rotation, or macro catalysts
- Avoid very choppy/low-volume names
5. Risk management (not coded – user responsibility):
- Stop below expansion low (bull) / above high (bear)
- Target previous swing high/low or 2–3× risk
Recommended Settings
- ATR Multiplier: 1.2–1.6 (lower = more signals, higher = stronger expansions)
- Max Bars: 10–30 (shorter = fresher setups, longer = more forgiving pullbacks)
- Timeframes: 15m–4h (daily works but fewer signals)
Publishing Recommendation
- Publish with a clean chart (e.g., 1h or 4h TSLA, NVDA, or SPY)
- Show both a recent expansion candle + pullback signal visible
- No extra indicators/drawings needed
This is a lightweight, educational momentum screener — fully open-source. It highlights setups, not automatic entries. Trading involves significant risk of loss. Always use proper risk management.
Feedback welcome — especially timeframe/parameter suggestions for different markets!
Pine Script® göstergesi










