OPEN-SOURCE SCRIPT

Failed 2U/2D + 50% Retrace Scanner

206
Scan Number 1 for SPY,SPX, QQQ, AAPL

📈 Multi-Ticker Failed 2U/2D Scanner with Daily Retrace & Market Breadth Table
This TradingView indicator is a multi-symbol price action scanner designed to catch high-probability reversal signals using The Strat’s failed 2U/2D patterns and daily 50% retrace logic, while also displaying market breadth metrics (TICK and ADD) for context.

Monitored Symbols:
SPY, SPX, QQQ, IWM, NVDA, AMD, AAPL, META, MSTR

🔍 Detection Logic
1. Failed 2U / Failed 2D Setups
Failed 2U: Price breaks above the previous candle’s high but closes back below the open → Bearish reversal

Failed 2D: Price breaks below the previous candle’s low but closes back above the open → Bullish reversal

Timeframes Monitored:

🕐 1-Hour (1H)

⏰ 4-Hour (4H)

2. Daily 50% Candle Retrace
Checks if price has retraced 50% or more of the previous day’s candle body

Highlights potential trend exhaustion or reversal confluence

3. Market Breadth Metrics (Display Only)
TICK: Measures real-time NYSE up vs. down ticks

ADD: Advance-Decline Line (net advancing stocks)

Not used in signal logic — just displayed in the table for overall market context

🖼️ Visual Elements
✅ Chart Markers
🔺 Red/Green Arrows for 1H Failed 2U/2D

🟨 Yellow Squares for 4H Failed 2U/2D

Visual markers are plotted directly on the relevant candles

📊 Signal Table
Lists all 9 tickers in rows

Columns for:

1H Signal

4H Signal

Daily 50% Retrace

TICK Value

ADD Value

Color-Coded Cells:

🔴 Red = Failed 2U

🟢 Green = Failed 2D

⚠️ Highlight if 50% Daily Retrace condition is true

🟦 Neutral-colored cells for TICK/ADD numeric display

🔔 Alerts
Hardcoded alerts fire when:

A 1H or 4H Failed 2U/2D is detected

The Daily 50% retrace condition is met
Each alert is labeled clearly by symbol and timeframe:

"SPY 4H Failed 2D"
"AAPL Daily 50% Retrace"

🎯 Use Case
Built for:

Reversal traders using The Strat

Swing or intraday traders watching hourly setups

Traders wanting quick visual context on market breadth without relying on it for confirmation

Monitoring multiple tickers in one clean view

1h can be used for Intraday trades
4h for possible short swing

Do your own ta

免責聲明

這些資訊和出版物並不意味著也不構成TradingView提供或認可的金融、投資、交易或其他類型的意見或建議。請在使用條款閱讀更多資訊。