OPEN-SOURCE SCRIPT
Market Sell-Off Gauge

OVERVIEW
The Market Sell‑Off Gauge identifies high‑conviction, risk‑off entry opportunities by detecting broad market sell‑off behavior and rising stablecoin dominance, then confirming risk‑off sentiment via NDX weakness, VIX spikes, and elevated volume. It uses fuzzy logic and sigmoid scaling to convert raw signals into a smooth, bounded metric.
FEATURES
VISUALISATION
USAGE
Chart & settings
Disclaimer
This indicator is intended for educational purposes only. Always perform your own due diligence before making financial decisions.
The Market Sell‑Off Gauge identifies high‑conviction, risk‑off entry opportunities by detecting broad market sell‑off behavior and rising stablecoin dominance, then confirming risk‑off sentiment via NDX weakness, VIX spikes, and elevated volume. It uses fuzzy logic and sigmoid scaling to convert raw signals into a smooth, bounded metric.
FEATURES
- Sell‑Off Detection - calculates percentage drops in the primary asset over a user‑defined lookback.
- Stablecoin Dominance Surge - tracks combined USDT/USDC dominance rises as a proxy for on‑chain “flight to safety.”
- Macro Confirmation
NDX Weakness (NASDAQ‑100)
VIX Spikes (CBOE Volatility Index)
Elevated Volume on declining bars - Fuzzy Logic & Scaling - component values feed into a fuzzy‑logic membership scor and are passed through a sigmoid compressor (–1 to +1). Weighted aggregation derives the final result of the gauge (or metric).
VISUALISATION
- Continuous line plot - Smoothed metric (–1 to +1), colored cold‑to‑warm.
- Entry circles - Highlighted when all conditions (fuzzy or crisp) are met after the time offset.
- Time‑Offset marker - Vertical line/label showing the user‑specified “start” bar.
- Component table - Displays real‑time % changes & volume multiples in the lower right of the indicator.
USAGE
- Asset drop % - The threshold percent decline to register a sell‑off.
- Stables rise % - The threshold percent increase in stablecoin dominance to qualify as a “flight to safety.”
- NDX drop % - The threshold percent decline in the NASDAQ‑100 for macro confirmation.
- VIX rise % - The threshold percent increase in VIX. Contributes to risk‑off validation.
- Volume Multiplier - Defines how many times above SMA volume must rise to confirm conviction.
- Lookback Period - Controls the number of bars over which % changes are measured.
- Time Offset - Point in time beyond which bars to “fade” historical signals, enables focus on recent data only.
- Fuzzy Logic Settings - Enables fuzzy scoring and set membership threshold & sensitivity.
- Weights - allows for adjusting the relative importance of each component (Asset, Stables, NDX, VIX, Volume).
- Sigmoid Steepness (k) - Controls curve steepness for compression (0.1 = very flat → 5.0 = very sharp S‑curve).
Chart & settings
- Best applied on 4H or Daily BTCUSD (or similar) charts to capture meaningful sell‑off events.
- Combine with broader trend filters (e.g., moving averages) for trend‑aligned entries.
- Adjust Sigmoid Steepness and Membership Sensitivity to fine‑tune signal crispness vs. smoothness. Refer to tooltips.
Disclaimer
This indicator is intended for educational purposes only. Always perform your own due diligence before making financial decisions.
오픈 소스 스크립트
진정한 트레이딩뷰 정신에 따라 이 스크립트 작성자는 트레이더가 기능을 검토하고 검증할 수 있도록 오픈소스로 공개했습니다. 작성자에게 찬사를 보냅니다! 무료로 사용할 수 있지만 코드를 다시 게시할 경우 하우스 룰이 적용된다는 점을 기억하세요.
면책사항
이 정보와 게시물은 TradingView에서 제공하거나 보증하는 금융, 투자, 거래 또는 기타 유형의 조언이나 권고 사항을 의미하거나 구성하지 않습니다. 자세한 내용은 이용 약관을 참고하세요.
오픈 소스 스크립트
진정한 트레이딩뷰 정신에 따라 이 스크립트 작성자는 트레이더가 기능을 검토하고 검증할 수 있도록 오픈소스로 공개했습니다. 작성자에게 찬사를 보냅니다! 무료로 사용할 수 있지만 코드를 다시 게시할 경우 하우스 룰이 적용된다는 점을 기억하세요.
면책사항
이 정보와 게시물은 TradingView에서 제공하거나 보증하는 금융, 투자, 거래 또는 기타 유형의 조언이나 권고 사항을 의미하거나 구성하지 않습니다. 자세한 내용은 이용 약관을 참고하세요.