OPEN-SOURCE SCRIPT
RTY Hard Rule Matrix

RTY Hard Rule Matrix v2.0 - Release Notes
Release Date: March 12, 2026
Purpose: Russell 2000 (RTY) Trading Indicator
───
🚀 What's New
Table Background Color 🆕
• Fully customizable table background
Table Position
• 9 positions: Top/Middle/Bottom × Left/Center/Right
Table Size
• Tiny, Small, Normal
Trend Text Toggle
• Switch between dots or text labels
───
🎯 The 4 Tickers (For RTY)
This indicator tracks 4 tickers that drive Russell 2000 direction:
| Ticker | What It Is | Why It Matters for RTY |
| ------ | -------------------- | ------------------------------------------------ |
| IWM | Russell 2000 ETF | The actual small-cap index — RTY's ETF twin |
| KRE | Regional Banking ETF | Credit conditions — banks = economy = small caps |
| HYG | High Yield Bond ETF | Risk sentiment — spreads widening = bad for RTY |
| SMH | Semiconductor ETF | Tech sector health — risk-on = small caps rally |───
🔑 How They Work Together
RTY is Driven By:
1. IWM (Russell 2000 ETF) — Direct proxy. When IWM strengthens vs SPY, small caps are leading.
2. KRE (Regional Banks) — Small caps are economically sensitive. If banks are strong (KRE up), economy = good = RTY = good.
3. HYG (High Yield Bonds) — Credit conditions. When HYG falls (spreads widen), risk-off = RTY gets hit hard.
4. SMH (Semiconductors) — Risk-on indicator. When semis rally, small caps typically outperform.
───
📊 Scoring for RTY
| Signal | IWM | KRE | HYG | SMH |
| ------- | ----- | ----- | ----- | ----- |
| Bullish | > PDH | > PDH | > PDH | > PDH |
| Bearish | < PDL | < PDL | < PDL | < PDL |Note: Unlike NQ matrix — ALL 4 tickers move WITH RTY (no inversions).
───
Matrix States for RTY
| Score | State | Meaning for RTY |
| ----- | --------- | ------------------------------------ |
| +3/+4 | 🟢 GREEN | All aligned — Strong small cap rally |
| +1/+2 | 🟡 YELLOW | Mixed — Reduced size |
| 0 | ⚫ BLACK | Neutral — No edge |
| -1/-2 | 🟣 PURPLE | Weakness building |
| -3/-4 | 🔴 RED | Risk-off — Small caps under pressure |───
🐛 Bug Fixes
• Fixed table border rendering
• Fixed VWAP calculation timing
───
⚠️ Disclaimer
Educational purposes only. Not financial advice. RTY is more volatile than NQ/ES — use smaller position sizes. Trade at your own risk.
Release Date: March 12, 2026
Purpose: Russell 2000 (RTY) Trading Indicator
───
🚀 What's New
Table Background Color 🆕
• Fully customizable table background
Table Position
• 9 positions: Top/Middle/Bottom × Left/Center/Right
Table Size
• Tiny, Small, Normal
Trend Text Toggle
• Switch between dots or text labels
───
🎯 The 4 Tickers (For RTY)
This indicator tracks 4 tickers that drive Russell 2000 direction:
| Ticker | What It Is | Why It Matters for RTY |
| ------ | -------------------- | ------------------------------------------------ |
| IWM | Russell 2000 ETF | The actual small-cap index — RTY's ETF twin |
| KRE | Regional Banking ETF | Credit conditions — banks = economy = small caps |
| HYG | High Yield Bond ETF | Risk sentiment — spreads widening = bad for RTY |
| SMH | Semiconductor ETF | Tech sector health — risk-on = small caps rally |───
🔑 How They Work Together
RTY is Driven By:
1. IWM (Russell 2000 ETF) — Direct proxy. When IWM strengthens vs SPY, small caps are leading.
2. KRE (Regional Banks) — Small caps are economically sensitive. If banks are strong (KRE up), economy = good = RTY = good.
3. HYG (High Yield Bonds) — Credit conditions. When HYG falls (spreads widen), risk-off = RTY gets hit hard.
4. SMH (Semiconductors) — Risk-on indicator. When semis rally, small caps typically outperform.
───
📊 Scoring for RTY
| Signal | IWM | KRE | HYG | SMH |
| ------- | ----- | ----- | ----- | ----- |
| Bullish | > PDH | > PDH | > PDH | > PDH |
| Bearish | < PDL | < PDL | < PDL | < PDL |Note: Unlike NQ matrix — ALL 4 tickers move WITH RTY (no inversions).
───
Matrix States for RTY
| Score | State | Meaning for RTY |
| ----- | --------- | ------------------------------------ |
| +3/+4 | 🟢 GREEN | All aligned — Strong small cap rally |
| +1/+2 | 🟡 YELLOW | Mixed — Reduced size |
| 0 | ⚫ BLACK | Neutral — No edge |
| -1/-2 | 🟣 PURPLE | Weakness building |
| -3/-4 | 🔴 RED | Risk-off — Small caps under pressure |───
🐛 Bug Fixes
• Fixed table border rendering
• Fixed VWAP calculation timing
───
⚠️ Disclaimer
Educational purposes only. Not financial advice. RTY is more volatile than NQ/ES — use smaller position sizes. Trade at your own risk.
Mã nguồn mở
Theo đúng tinh thần TradingView, tác giả của tập lệnh này đã công bố nó dưới dạng mã nguồn mở, để các nhà giao dịch có thể xem xét và xác minh chức năng. Chúc mừng tác giả! Mặc dù bạn có thể sử dụng miễn phí, hãy nhớ rằng việc công bố lại mã phải tuân theo Nội quy.
Thông báo miễn trừ trách nhiệm
Thông tin và các ấn phẩm này không nhằm mục đích, và không cấu thành, lời khuyên hoặc khuyến nghị về tài chính, đầu tư, giao dịch hay các loại khác do TradingView cung cấp hoặc xác nhận. Đọc thêm tại Điều khoản Sử dụng.
Mã nguồn mở
Theo đúng tinh thần TradingView, tác giả của tập lệnh này đã công bố nó dưới dạng mã nguồn mở, để các nhà giao dịch có thể xem xét và xác minh chức năng. Chúc mừng tác giả! Mặc dù bạn có thể sử dụng miễn phí, hãy nhớ rằng việc công bố lại mã phải tuân theo Nội quy.
Thông báo miễn trừ trách nhiệm
Thông tin và các ấn phẩm này không nhằm mục đích, và không cấu thành, lời khuyên hoặc khuyến nghị về tài chính, đầu tư, giao dịch hay các loại khác do TradingView cung cấp hoặc xác nhận. Đọc thêm tại Điều khoản Sử dụng.