OPEN-SOURCE SCRIPT
Cập nhật

Risk-On / Risk-Off Toolkit [SB1] (NQ, RTY, YM) VIX

450
Description:
The Risk-On / Risk-Off Toolkit [SB1] is a professional-grade market context indicator designed to help traders quickly identify broad market sentiment shifts and gauge risk appetite. By combining major US equity futures (NQ, RTY, YM) with VIX dynamics, this toolkit provides clear visual signals of “Risk-On” (bullish, lower volatility environment) and “Risk-Off” (bearish, higher volatility environment) conditions. This is ideal for traders using discretionary analysis, swing strategies, intraday scalping, or portfolio positioning decisions.
My Personal Thoughts: Utilize all 3 charts to Identify which is Leading and who is lagging between the 3 (NQ, RTY, YM) Key Features:
Futures Trend Analysis:
Monitors the Nasdaq 100 (NQ), Russell 2000 (RTY), and Dow Jones (YM) futures in real-time.
Determines bullish/bearish bias based on each futures contract’s current close relative to its open.
Identifies when all three indices are moving in sync, highlighting broad market directional alignment.
VIX Confirmation:
Integrates the CBOE Volatility Index (VIX) to gauge market risk sentiment.
Confirms Risk-On conditions when VIX is falling while all three futures are bullish.
Confirms Risk-Off conditions when VIX is rising while all three futures are bearish.
Optional background shading visually highlights Risk-On (green) and Risk-Off (red) conditions for quick, intuitive assessment.
Strong Body Candle Signals:
Detects high conviction candlestick moves where the body represents at least 85% of the total range.
Confirms whether the candle closes near its extreme (top for bullish, bottom for bearish) within 15% of the range.
Plots arrows for strong bullish or bearish candles:
Green triangle-up for bullish strong candles
Red triangle-down for bearish strong candles
Provides a visual cue for intraday or swing traders to confirm trend momentum without cluttering the chart with labels.
Alert System:
Alerts can be set for Risk-On alignment: all monitored futures are bullish and VIX is falling.
Alerts can also be set for Risk-Off alignment: all monitored futures are bearish and VIX is rising.
Ensures traders never miss shifts in broad market sentiment, suitable for both intraday and end-of-day review.
Table Summary:
Provides a top-right summary table of each monitored market and VIX:
Displays Index Name and Current Bias (Bullish/Bearish/Neutral).
Highlights bullish conditions in green and bearish conditions in red.
Includes VIX status as “↓ Falling”, “↑ Rising”, or “Flat”, providing a quick visual reference of volatility trends.
Customizable Visuals:
Control the visibility of strong candle arrows.
Maintains dynamic bar coloring for strong candle moves (green for bullish, red for bearish).
How to Use the Risk-On / Risk-Off Toolkit:
Trend Confirmation: Use the alignment of NQ, RTY, and YM to determine whether the overall market environment is bullish or bearish.
Risk Sentiment Filter: Use VIX confirmation to identify if traders are in a risk-on or risk-off sentiment. This is especially useful for adjusting position sizing, hedging, or timing entries.
Momentum Validation: Strong candle arrows indicate decisive moves, providing additional confirmation for trade entries, breakouts, or trend continuation.
Alerts & Visual Cues: Set alerts to be notified whenever Risk-On or Risk-Off conditions are met, helping you act in real-time.
Quick Reference: Use the summary table for a bird’s-eye view of market alignment across indices and VIX, avoiding the need to track multiple charts simultaneously.
Why This Indicator is Unique:
Combines three major US indices with volatility confirmation to identify true macro market sentiment shifts.
Provides both visual and alert-based signals for actionable insights.
The inclusion of strong candle arrows gives intraday and swing traders a clear, low-latency cue for high-probability moves.
Perfect for multi-timeframe analysis and adaptable to both short-term and long-term strategies.
Indicator Name Justification:
The name “Risk-On / Risk-Off Toolkit [SB1]” accurately reflects the core function: identifying broad market risk appetite and sentiment alignment across key indices with volatility confirmation. It communicates instantly that the tool helps traders understand when the market is favoring risk-taking (Risk-On) versus risk-aversion (Risk-Off).
Phát hành các Ghi chú
New combination alerts (Strong Bull Candle + Risk-On / Strong Bear Candle + Risk-Off) are still in your script.
Here’s the breakdown of what you now have:
Alert Name Condition Purpose
🟩 Risk-On Alignment All (NQ, RTY, YM) bullish and VIX falling Detects when market indices confirm a risk-on environment
🟥 Risk-Off Alignment All (NQ, RTY, YM) bearish and VIX rising Detects when market indices confirm a risk-off environment
🟢 Strong Bull Candle + Risk-On Strong bullish candle on your chart and risk-on alignment Ideal for long confirmation alerts
🔴 Strong Bear Candle + Risk-Off Strong bearish candle on your chart and risk-off alignment
Phát hành các Ghi chú
✅ You now have 5 total alerts:
Alert Condition Meaning
Risk-On Alignment All 3 futures bullish + VIX falling Broad bullish market context
Risk-Off Alignment All 3 futures bearish + VIX rising Broad bearish market context
Out of Alignment Not risk-on and not risk-off Mixed / conflicting signals — no clear sentiment
Strong Bull Candle + Risk-On Strong bullish candle + risk-on Ideal long setup confirmation
Strong Bear Candle + Risk-Off Strong bearish candle + risk-off Ideal short setup confirmation
Phát hành các Ghi chú
Alert Name Condition Purpose
🟩 Risk-On Alignment All (NQ, RTY, YM) bullish and VIX falling Detects when market indices confirm a risk-on environment
🟥 Risk-Off Alignment All (NQ, RTY, YM) bearish and VIX rising Detects when market indices confirm a risk-off environment
🟢 Strong Bull Candle + Risk-On Strong bullish candle on your chart and risk-on alignment Ideal for long confirmation alerts
🔴 Strong Bear Candle + Risk-Off Strong bearish candle on your chart and risk-off alignment Ideal for short confirmation alerts
So you effectively have four total alerts now — two macro confirmations and two micro+macro combo alerts.
Phát hành các Ghi chú
My apologies was adding new alert for Strong Bull and Bear Candles and other image was in the picture had to adjust it. ✅ You now have 5 total alerts:
Alert Condition Meaning
Risk-On Alignment / All 3 futures bullish + VIX falling / Broad bullish market context
Risk-Off Alignment / All 3 futures bearish + VIX rising / Broad bearish market context
Out of Alignment / Not risk-on and not risk-off Mixed / conflicting signals — no clear sentiment
Strong Bull Candle + Risk-On / Strong bullish candle + risk-on / Ideal long setup confirmation
Strong Bear Candle + Risk-Off / Strong bearish candle + risk-off / Ideal short setup confirmation
Phát hành các Ghi chú
Dashboard has been updated to bold color for better visibility.
Phát hành các Ghi chú
Dashboard can now be moved to different parts on screen
Phát hành các Ghi chú
1 hour ago
Release Notes
🆕 Update: Added Normalized Trend Strength (n-Value)
This update introduces a Normalized Trend Strength metric, displayed as a small numeric value next to each trend signal. It measures how strong the current trend is relative to market volatility.
How It Works
The n-value uses the difference between the Fast EMA and Slow EMA, divided by ATR:
n = | Fast EMA – Slow EMA | ÷ ATR
This transforms raw price movement into a volatility-adjusted trend strength score, making it easier to compare trend quality across different market conditions.
How to Read the n-Value
n-Value Meaning
< 0.10 No trend / Chop / Noise
0.10 – 0.30 Weak trend
0.30 – 0.60 Moderate trend
0.60 – 1.00 Strong trend
1.00+ Very strong momentum
Why It Matters
This addition helps you:
Filter weak signals
Confirm when a trend has real strength
Avoid low-quality setups
Spot strong momentum early
The n-value works automatically with your existing Fast/Slow EMA trend logic and appears inline with the trend label so you can evaluate signals at a glance.

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.