PROTECTED SOURCE SCRIPT
ที่อัปเดต: Risk-On / Risk-Off Toolkit [SB2] (SPY, QQQ, IWM) / VIX

Smart Market Sentiment Alignment for Active Options Traders
🔍 Overview
The Risk-On / Risk-Off Toolkit [SB1] is a precision sentiment gauge designed to help traders instantly identify whether the market environment favors risk-taking (Risk-On) or capital protection (Risk-Off) — now powered by the core ETFs (SPY, IWM, QQQ) instead of futures contracts for broader accessibility.
This refined toolkit synchronizes the S&P 500 (SPY), Russell 2000 (IWM), and Nasdaq 100 (QQQ) with VIX dynamics to pinpoint when institutional capital is flowing into or out of risk assets. It’s especially effective for traders who want to align their intraday bias, trade direction, or exposure with real-time market tone.
⚙️ Core Logic
The toolkit continuously monitors the open-to-close trend of three major U.S. equity ETFs:
🟢 SPY – Large-cap sentiment proxy (broad market strength)
🟣 QQQ – Tech-driven growth appetite (risk appetite gauge)
🟠 IWM – Small-cap risk exposure (risk sensitivity gauge)
Each ETF is evaluated for bullish or bearish control on the current timeframe. When all three are in sync (either all bullish or all bearish), their combined state is cross-referenced with VIX momentum:
VIX Falling → Indicates declining volatility expectations → Confidence & risk appetite rising.
VIX Rising → Indicates increasing volatility expectations → Defensive capital rotation.
This creates two distinct sentiment regimes:
✅ Risk-On: All (SPY, IWM, QQQ) are bullish and VIX is falling → confidence, growth appetite, and institutional alignment.
❌ Risk-Off: All (SPY, IWM, QQQ) are bearish and VIX is rising → fear, de-risking, and volatility hedging.
💡 Visual & Functional Features
Background Shading:
Soft green tint when Risk-On sentiment is active.
Soft red tint when Risk-Off sentiment dominates.
Neutral when no clear regime is detected.
Dynamic Summary Table (Top-Right Corner):
Displays real-time sentiment for each ETF and the VIX:
SPY / IWM / QQQ: Shows “Bullish,” “Bearish,” or “Neutral” with color-coded cells.
VIX: Indicates “↓ Falling,” “↑ Rising,” or “Flat,” color-coded for quick read.
Strong Candle Confirmation (85% Rule):
Each bar is evaluated for body strength — when price closes within the top/bottom 15% of its range with an 85%+ full-body candle.
Green ▲ Arrow: Bullish dominance with conviction.
Red ▼ Arrow: Bearish dominance with conviction.
These arrows help validate directional momentum and confidence within the current risk regime.
⚡ Alert System
Two built-in alerts are provided for automation or real-time push notifications:
🔔 “Risk-On Alignment” — All SPY, IWM, and QQQ are bullish, and VIX is falling.
🔔 “Risk-Off Alignment” — All SPY, IWM, and QQQ are bearish, and VIX is rising.
Use these alerts to:
Confirm directional bias before entries.
Automate signal-based strategies.
Avoid trading against institutional sentiment.
🎯 How to Use
Intraday or Swing Bias Filter:
When the environment is Risk-On, focus on long setups, momentum continuations, and breakout structures.
When it’s Risk-Off, prioritize short setups, defensive assets, or fade opportunities on rallies.
Scalping / Precision Entries:
If all three ETFs and the Strong Candle arrows align in the same direction, it signals institutional participation and conviction.
This is an optimal condition for scalpers or day traders looking to time quick directional moves and lock in profits efficiently.
Trend Continuation & Reversal Confirmation:
Use the transition between background colors or table bias flips as early warnings for sentiment shifts — often preceding trend reversals or volatility expansions.
🧠 Why It Works
This toolkit taps into the core heartbeat of U.S. market sentiment by combining cross-index confirmation with volatility expectations.
SPY reflects institutional breadth.
QQQ captures growth risk appetite.
IWM tracks speculative small-cap participation.
VIX measures implied fear or confidence.
When all align, it reveals the true systemic tone of the market — not just price movement, but capital flow psychology.
🔍 Ideal For
Index traders (SPY, QQQ, IWM)
Futures traders using ETF proxies
Scalpers and day traders aligning bias
Swing traders timing exposure changes
Algorithmic systems using risk sentiment filters
📊 Final Notes
The ETF-based version makes this toolkit accessible to traders across all markets, including those without futures data access.
By combining sentiment alignment, visual clarity, and candle conviction markers, this script becomes an essential decision layer for every professional trading setup.
🔍 Overview
The Risk-On / Risk-Off Toolkit [SB1] is a precision sentiment gauge designed to help traders instantly identify whether the market environment favors risk-taking (Risk-On) or capital protection (Risk-Off) — now powered by the core ETFs (SPY, IWM, QQQ) instead of futures contracts for broader accessibility.
This refined toolkit synchronizes the S&P 500 (SPY), Russell 2000 (IWM), and Nasdaq 100 (QQQ) with VIX dynamics to pinpoint when institutional capital is flowing into or out of risk assets. It’s especially effective for traders who want to align their intraday bias, trade direction, or exposure with real-time market tone.
⚙️ Core Logic
The toolkit continuously monitors the open-to-close trend of three major U.S. equity ETFs:
🟢 SPY – Large-cap sentiment proxy (broad market strength)
🟣 QQQ – Tech-driven growth appetite (risk appetite gauge)
🟠 IWM – Small-cap risk exposure (risk sensitivity gauge)
Each ETF is evaluated for bullish or bearish control on the current timeframe. When all three are in sync (either all bullish or all bearish), their combined state is cross-referenced with VIX momentum:
VIX Falling → Indicates declining volatility expectations → Confidence & risk appetite rising.
VIX Rising → Indicates increasing volatility expectations → Defensive capital rotation.
This creates two distinct sentiment regimes:
✅ Risk-On: All (SPY, IWM, QQQ) are bullish and VIX is falling → confidence, growth appetite, and institutional alignment.
❌ Risk-Off: All (SPY, IWM, QQQ) are bearish and VIX is rising → fear, de-risking, and volatility hedging.
💡 Visual & Functional Features
Background Shading:
Soft green tint when Risk-On sentiment is active.
Soft red tint when Risk-Off sentiment dominates.
Neutral when no clear regime is detected.
Dynamic Summary Table (Top-Right Corner):
Displays real-time sentiment for each ETF and the VIX:
SPY / IWM / QQQ: Shows “Bullish,” “Bearish,” or “Neutral” with color-coded cells.
VIX: Indicates “↓ Falling,” “↑ Rising,” or “Flat,” color-coded for quick read.
Strong Candle Confirmation (85% Rule):
Each bar is evaluated for body strength — when price closes within the top/bottom 15% of its range with an 85%+ full-body candle.
Green ▲ Arrow: Bullish dominance with conviction.
Red ▼ Arrow: Bearish dominance with conviction.
These arrows help validate directional momentum and confidence within the current risk regime.
⚡ Alert System
Two built-in alerts are provided for automation or real-time push notifications:
🔔 “Risk-On Alignment” — All SPY, IWM, and QQQ are bullish, and VIX is falling.
🔔 “Risk-Off Alignment” — All SPY, IWM, and QQQ are bearish, and VIX is rising.
Use these alerts to:
Confirm directional bias before entries.
Automate signal-based strategies.
Avoid trading against institutional sentiment.
🎯 How to Use
Intraday or Swing Bias Filter:
When the environment is Risk-On, focus on long setups, momentum continuations, and breakout structures.
When it’s Risk-Off, prioritize short setups, defensive assets, or fade opportunities on rallies.
Scalping / Precision Entries:
If all three ETFs and the Strong Candle arrows align in the same direction, it signals institutional participation and conviction.
This is an optimal condition for scalpers or day traders looking to time quick directional moves and lock in profits efficiently.
Trend Continuation & Reversal Confirmation:
Use the transition between background colors or table bias flips as early warnings for sentiment shifts — often preceding trend reversals or volatility expansions.
🧠 Why It Works
This toolkit taps into the core heartbeat of U.S. market sentiment by combining cross-index confirmation with volatility expectations.
SPY reflects institutional breadth.
QQQ captures growth risk appetite.
IWM tracks speculative small-cap participation.
VIX measures implied fear or confidence.
When all align, it reveals the true systemic tone of the market — not just price movement, but capital flow psychology.
🔍 Ideal For
Index traders (SPY, QQQ, IWM)
Futures traders using ETF proxies
Scalpers and day traders aligning bias
Swing traders timing exposure changes
Algorithmic systems using risk sentiment filters
📊 Final Notes
The ETF-based version makes this toolkit accessible to traders across all markets, including those without futures data access.
By combining sentiment alignment, visual clarity, and candle conviction markers, this script becomes an essential decision layer for every professional trading setup.
เอกสารเผยแพร่
✅ Now you have 4 active alerts total:Alert Condition Description
Risk-On Alignment SPY, IWM, QQQ all bullish + VIX falling Market-wide bullish environment
Risk-Off Alignment SPY, IWM, QQQ all bearish + VIX rising Market-wide bearish environment
Strong Bull Candle + Risk-On Strong bullish candle + risk-on context Long confirmation
Strong Bear Candle + Risk-Off Strong bearish candle + risk-off context Short confirmation
เอกสารเผยแพร่
Dashboard colors have been made bold for better visual.สคริปต์ที่ได้รับการป้องกัน
สคริปต์นี้ถูกเผยแพร่เป็นแบบ closed-source However, you can use it freely and without any limitations – learn more here.
คำจำกัดสิทธิ์ความรับผิดชอบ
The information and publications are not meant to be, and do not constitute, financial, investment, trading, or other types of advice or recommendations supplied or endorsed by TradingView. Read more in the Terms of Use.
สคริปต์ที่ได้รับการป้องกัน
สคริปต์นี้ถูกเผยแพร่เป็นแบบ closed-source However, you can use it freely and without any limitations – learn more here.
คำจำกัดสิทธิ์ความรับผิดชอบ
The information and publications are not meant to be, and do not constitute, financial, investment, trading, or other types of advice or recommendations supplied or endorsed by TradingView. Read more in the Terms of Use.