This indicator provides an "under the hood" view of S&P 500 market internals by analyzing all 11 sectors simultaneously using both weighted and unweighted breadth approaches.
The indicator answers:
- Are heavy sectors leading or lagging? (Weighted vs. Unweighted comparison)
- Is the tape confirmation or divergence? (Both agree = strong, disagree = warning)
- When is the trend shifting? (Zero-line crossings)
- When is the histogram stretched? (Configurable threshold signals)
- Is there real participation behind the move? (Time-of-day RVOL filter)
- Does current TICK pressure agree with the day's breadth? (TICK ALIGNED / DIVERGES)
Core Concept: Weighted vs. Unweighted Breadth Unweighted Line (White)
- Equal-weighted view of all 11 sectors
- Each sector = 1/11 of the calculation
- Shows overall market breadth regardless of size
- Useful for detecting broad-based moves
Weighted Histogram (Magenta/Yellow)
- Weighted by actual S&P 500 sector impact
- Information Technology gets 39.7% weight, while Energy gets 3.4%, etc.
- Shows what the S&P 500 is actually doing
- Best for understanding ES/SPY direction
- Color coded for momentum:
- 🟣 Magenta = Current bar higher than previous (momentum up)
- 🟡 Yellow = Current bar lower than previous (momentum down)
Key Features
✅ Calculates from TODAY'S OPEN — Removes overnight gap distortion
✅ Defaults tuned for 3-minute timeframe — Best intraday signals
✅ Zero-line crossings — Green/Red arrows signal trend shifts
✅ Threshold signals — A configurable 30% threshold marks stretched histogram readings; red down arrows signal sells above zero and green up arrows signal buys below zero
✅ Divergence detection — Labels when weighted diverges from unweighted
✅ Confirmation labels — Shows when both agree vs today's open (🐂 Bullish / 🐻 Bearish vs OPEN), plus a TICK ALIGNED/DIVERGES check
✅ Real-time momentum coloring — Magenta (up), Yellow (down)
✅ Alerts on crossings — Automatic notifications
⚠️ CRITICAL: Sector Weights Are Static (Not Dynamic)
The sector weights are configurable INPUT values, NOT real-time dynamic.
These scripts do not fetch live sector weightings from S&P. You must periodically update the weights manually to stay accurate.
Where to Check Current Weights
- https://www.spglobal.com/spdji/en/indices/equity/sp-500/
- Search "S&P 500 sector weights" and check the latest official data
How to Read: Visual & Label Guide
The Histogram (Weighted A/D)
▲ Magenta (Up) ▼ Yellow (Down)
│ │
+10 │ 🟪 🟪 🟪 🟪 🟪 🟪 │ momentum strengthening
│ 🟪 🟪 🟪 🟪 🟪 │
0 ├────────────────────────────┤ Zero line (trend change pivot)
│ 🟨 🟨 🟨 🟨 │ momentum weakening
-10 │ 🟨 🟨 🟨 🟨 🟨 🟨 │ Yellow = declining momentum
└─────────────────┘
- Magenta bar = Higher than previous bar (momentum +)
- Yellow bar = Lower than previous bar (momentum -)
- Near zero = Indecision / Range consolidation
- Extreme heights (±20+) = Overbought/oversold tape
The Line (Unweighted A/D)
- White line shows equal-weighted breadth
- When it diverges from histogram = warning signal
- Confirms or contradicts the weighted signal