OPEN-SOURCE SCRIPT
Risk-ON/OFF Radar V2

**TradingView Dashboard (live, “Risk-ON/OFF Radar”)**
[url=[tradingview.com/x/UgIxJyR8/](https://www.tradingview.com/x/UgIxJyR8/)][
(
[/url)]
---
## A. Core Charts / Symbols
**VIX:** CBOE:VIX
TradingView
**SKEW:** CBOE:SKEW
TradingView
**US 10Y Yield:** TVC:US10Y
TradingView
**US 2Y Yield:** TVC:US02Y
TradingView
**Put/Call (Equities + Indices):** USI:PCC (or equity-only USI:PCCE)
TradingView
**Advance/Decline (Breadth):** e.g. INDEX:ADDN (NYSE Advance/Decline Difference)
TradingView
**Credit Proxy:** LQD & HYG (depending on data feed, e.g. AMEX:LQD, AMEX:HYG) – use the ratio/spread as a Risk-Off proxy
TradingView
---
### Layout Tip: 2×3 Grid
* SPX / SPY (price) + 200 DMA
* VIX
* SKEW
* 10Y–2Y Spread (self-calculated)
* LQD/HYG Ratio (self-calculated)
* Breadth (ADDN) / Put-Call
---
Yes – **there have been and still are early warning systems** that have **partially reliably signaled major market drawdowns or bear markets** in the past. **None is perfect**, but **combinations** of multiple signals have historically shown a high hit rate, **especially for Risk-Off phases**.
I’ll break this down in a structured, practical way, with a clear focus on trading and portfolio hedging.
---
## 1️⃣ Macro Early-Warning Systems (Top-Down)
### 📉 Yield Curve Inversion
**What:**
* 10Y–2Y or 10Y–3M yield < 0
* Indicates the market expects an **economic slowdown**
**History:**
* Before **all U.S. recessions since 1955**
* Also ahead of:
* 2000–2002
* 2007–2009
* 2022–2023 (with a lag)
**Strength:** ⭐⭐⭐⭐⭐
**Timing:** Poor for day trading, **excellent for portfolio risk**
---
### 🏦 Credit Spreads (Corporate vs. Treasuries)
**What:**
* Rising spreads = stress in the financial system
* Especially High Yield vs. Treasuries
**History:**
* Early indicator for:
* 2008
* 2020
* 2022
**Strength:** ⭐⭐⭐⭐
**Best for:** Systemic risk detection
---
## 2️⃣ Internal Market Early-Warning Systems (Breadth & Structure)
### 📊 Market Breadth (Advance / Decline)
**Signal:**
* Index makes new highs
* But fewer stocks participate
**Historical warnings:**
* 2000 Dotcom bubble
* 2007
* Late 2021
**Strength:** ⭐⭐⭐⭐
**Very good for:** Swing and position traders
---
### ⚠️ Distribution Days (Stan Weinstein / IBD)
**What:**
* Multiple days with:
* Index ↓
* Volume ↑
**Meaning:**
* Institutions are selling
* Smart money is leaving the market
**Strength:** ⭐⭐⭐⭐
**Timing:** Early to mid-stage
---
## 3️⃣ Volatility-Based Early-Warning Systems
### 📈 VIX + SKEW Combination
**Critical setup:**
* **Low VIX (<15)**
* **High SKEW (>150)**
➡️ The market prices **tail risk**, but not near-term volatility
➡️ Historically a dangerous phase
**Examples:**
* 2018 (Volmageddon)
* 2020 (February)
* 2022 (Q1)
**Strength:** ⭐⭐⭐⭐⭐
**Ideal for:** Options traders & hedging
---
### 🧠 Volatility Regime Shifts
**Observation:**
* Long low-volatility phases
* → sudden IV expansion
**Warning signal:**
* IV rises
* Prices stagnate or still drift higher
➡️ “Calm before the storm”
---
## 4️⃣ Technical Trend Early-Warning Systems
### 📉 200-Day Moving Average (Used Correctly)
**Better than the classic approach:**
* Combination of:
* Break below the 200 DMA
* Failed rebound
* Rising volume
**History:**
* Very reliable in:
* 2001
* 2008
* 2022
**Strength:** ⭐⭐⭐⭐
**But:** Reactive, not anticipatory
---
## 5️⃣ Valuation & Sentiment Indicators
### 😈 Extreme Euphoria
**Indicators:**
* Put/Call ratio extremely low
* AAII bullish sentiment > 50%
* Fear & Greed Index > 80
➡️ Not a timing signal
➡️ But **high crash risk**
---
## 6️⃣ Combined Models (Most Powerful)
### 🧩 Historically Successful Combinations
| Combination | Implication |
| -------------------------------------- | -------------------- |
| Yield curve + credit spreads | Systemic crisis |
| Breadth divergence + distribution days | Bear market starting |
| Low VIX + high SKEW | Crash risk |
| Rising IV + sideways market | Build hedges |
| Market < 200 DMA + rising volume | Risk-Off |
➡️ **Weak individually – strong in combination**
---
## 7️⃣ The Hard Truth (Very Important)
❌ **No system predicts exact market tops**
✅ Good systems tell you:
> “Risk–reward is now **unfavorable**”
➡️ Professionals:
* Reduce long exposure
* Stop selling volatility
* Build hedges **before** the market drops
---
## 🎯 Practical Application for You (Options Trader)
**If 3–4 of the following occur simultaneously:**
* VIX < 15
* SKEW > 150
* Market breadth deteriorates
* Credit spreads widen
* Index struggles at the 200 DMA
➡️ **No aggressive Wheel strategies**
➡️ Instead focus on:
* Cash
* Call calendars
* Put backspreads
* SPX tail hedges
* Smaller CSP position sizes
---
[url=[tradingview.com/x/UgIxJyR8/](https://www.tradingview.com/x/UgIxJyR8/)][
---
## A. Core Charts / Symbols
**VIX:** CBOE:VIX
TradingView
**SKEW:** CBOE:SKEW
TradingView
**US 10Y Yield:** TVC:US10Y
TradingView
**US 2Y Yield:** TVC:US02Y
TradingView
**Put/Call (Equities + Indices):** USI:PCC (or equity-only USI:PCCE)
TradingView
**Advance/Decline (Breadth):** e.g. INDEX:ADDN (NYSE Advance/Decline Difference)
TradingView
**Credit Proxy:** LQD & HYG (depending on data feed, e.g. AMEX:LQD, AMEX:HYG) – use the ratio/spread as a Risk-Off proxy
TradingView
---
### Layout Tip: 2×3 Grid
* SPX / SPY (price) + 200 DMA
* VIX
* SKEW
* 10Y–2Y Spread (self-calculated)
* LQD/HYG Ratio (self-calculated)
* Breadth (ADDN) / Put-Call
---
Yes – **there have been and still are early warning systems** that have **partially reliably signaled major market drawdowns or bear markets** in the past. **None is perfect**, but **combinations** of multiple signals have historically shown a high hit rate, **especially for Risk-Off phases**.
I’ll break this down in a structured, practical way, with a clear focus on trading and portfolio hedging.
---
## 1️⃣ Macro Early-Warning Systems (Top-Down)
### 📉 Yield Curve Inversion
**What:**
* 10Y–2Y or 10Y–3M yield < 0
* Indicates the market expects an **economic slowdown**
**History:**
* Before **all U.S. recessions since 1955**
* Also ahead of:
* 2000–2002
* 2007–2009
* 2022–2023 (with a lag)
**Strength:** ⭐⭐⭐⭐⭐
**Timing:** Poor for day trading, **excellent for portfolio risk**
---
### 🏦 Credit Spreads (Corporate vs. Treasuries)
**What:**
* Rising spreads = stress in the financial system
* Especially High Yield vs. Treasuries
**History:**
* Early indicator for:
* 2008
* 2020
* 2022
**Strength:** ⭐⭐⭐⭐
**Best for:** Systemic risk detection
---
## 2️⃣ Internal Market Early-Warning Systems (Breadth & Structure)
### 📊 Market Breadth (Advance / Decline)
**Signal:**
* Index makes new highs
* But fewer stocks participate
**Historical warnings:**
* 2000 Dotcom bubble
* 2007
* Late 2021
**Strength:** ⭐⭐⭐⭐
**Very good for:** Swing and position traders
---
### ⚠️ Distribution Days (Stan Weinstein / IBD)
**What:**
* Multiple days with:
* Index ↓
* Volume ↑
**Meaning:**
* Institutions are selling
* Smart money is leaving the market
**Strength:** ⭐⭐⭐⭐
**Timing:** Early to mid-stage
---
## 3️⃣ Volatility-Based Early-Warning Systems
### 📈 VIX + SKEW Combination
**Critical setup:**
* **Low VIX (<15)**
* **High SKEW (>150)**
➡️ The market prices **tail risk**, but not near-term volatility
➡️ Historically a dangerous phase
**Examples:**
* 2018 (Volmageddon)
* 2020 (February)
* 2022 (Q1)
**Strength:** ⭐⭐⭐⭐⭐
**Ideal for:** Options traders & hedging
---
### 🧠 Volatility Regime Shifts
**Observation:**
* Long low-volatility phases
* → sudden IV expansion
**Warning signal:**
* IV rises
* Prices stagnate or still drift higher
➡️ “Calm before the storm”
---
## 4️⃣ Technical Trend Early-Warning Systems
### 📉 200-Day Moving Average (Used Correctly)
**Better than the classic approach:**
* Combination of:
* Break below the 200 DMA
* Failed rebound
* Rising volume
**History:**
* Very reliable in:
* 2001
* 2008
* 2022
**Strength:** ⭐⭐⭐⭐
**But:** Reactive, not anticipatory
---
## 5️⃣ Valuation & Sentiment Indicators
### 😈 Extreme Euphoria
**Indicators:**
* Put/Call ratio extremely low
* AAII bullish sentiment > 50%
* Fear & Greed Index > 80
➡️ Not a timing signal
➡️ But **high crash risk**
---
## 6️⃣ Combined Models (Most Powerful)
### 🧩 Historically Successful Combinations
| Combination | Implication |
| -------------------------------------- | -------------------- |
| Yield curve + credit spreads | Systemic crisis |
| Breadth divergence + distribution days | Bear market starting |
| Low VIX + high SKEW | Crash risk |
| Rising IV + sideways market | Build hedges |
| Market < 200 DMA + rising volume | Risk-Off |
➡️ **Weak individually – strong in combination**
---
## 7️⃣ The Hard Truth (Very Important)
❌ **No system predicts exact market tops**
✅ Good systems tell you:
> “Risk–reward is now **unfavorable**”
➡️ Professionals:
* Reduce long exposure
* Stop selling volatility
* Build hedges **before** the market drops
---
## 🎯 Practical Application for You (Options Trader)
**If 3–4 of the following occur simultaneously:**
* VIX < 15
* SKEW > 150
* Market breadth deteriorates
* Credit spreads widen
* Index struggles at the 200 DMA
➡️ **No aggressive Wheel strategies**
➡️ Instead focus on:
* Cash
* Call calendars
* Put backspreads
* SPX tail hedges
* Smaller CSP position sizes
---
开源脚本
秉承TradingView的精神,该脚本的作者将其开源,以便交易者可以查看和验证其功能。向作者致敬!您可以免费使用该脚本,但请记住,重新发布代码须遵守我们的网站规则。
免责声明
这些信息和出版物并非旨在提供,也不构成TradingView提供或认可的任何形式的财务、投资、交易或其他类型的建议或推荐。请阅读使用条款了解更多信息。
开源脚本
秉承TradingView的精神,该脚本的作者将其开源,以便交易者可以查看和验证其功能。向作者致敬!您可以免费使用该脚本,但请记住,重新发布代码须遵守我们的网站规则。
免责声明
这些信息和出版物并非旨在提供,也不构成TradingView提供或认可的任何形式的财务、投资、交易或其他类型的建议或推荐。请阅读使用条款了解更多信息。