OPEN-SOURCE SCRIPT
Diupdate

SPY Breadth Buy Signal

2 590
This indicator identifies potential reversal opportunities in SPY by combining five key market conditions into a composite buy signal. It's designed for swing traders and position traders looking to catch relief rallies during oversold conditions.
Key Features:
🎯 Five-Condition Buy Filter:

Volume confirmation (≥150M shares)
VIX elevated (≥30) indicating fear in the market
Market breadth oversold (≤30% of S&P 500 stocks above 50-day SMA)
RSI oversold (≤30)
Slow Stochastic in extreme territory (<20)

The signal triggers when 4 out of 5 conditions are met—providing a balance between sensitivity and false-signal reduction.
How It Works:

Volume - Ensures SPY has institutional participation
VIX - Confirms market-wide volatility spikes (fear gauge)
Breadth - Detects when fewer than 30% of S&P 500 stocks trade above their 50-day moving average (extreme oversold)
RSI - Individual momentum indicator on SPY
Slow Stochastic - Smoothed stochastic %K for momentum confirmation

Display Elements:

Green upward triangle below the bar on signal confirmation
"BUY" label with green background highlight
Debug panel (top-right) showing real-time condition status and count

Customizable Inputs:

Adjust thresholds for all five conditions
Set minimum required conditions (1-5)
Toggle debug panel on/off
Select breadth index (MMFI, S5FI, SPXA50R)

Best Used With:

Daily timeframe (optimal)
As a filter/confirmation tool, not a standalone system
Combine with your own risk management and entry/exit rules
Catatan Rilis
minor update removing SPXA50R

Pernyataan Penyangkalan

Informasi dan publikasi ini tidak dimaksudkan, dan bukan merupakan, saran atau rekomendasi keuangan, investasi, trading, atau jenis lainnya yang diberikan atau didukung oleh TradingView. Baca selengkapnya di Ketentuan Penggunaan.