PROTECTED SOURCE SCRIPT

Crash Survival Indicator (SPX, Weekly/Daily)

27
Short description
SPX-focused risk context tool using 30WMA/ATR/ADX and distance to 30WMA, with optional Hindenburg-Omen breadth and macro add-ons. Weekly is primary; Daily provides early-warning. Educational only.

Full description (English first)
What it is
Crash Survival Indicator (CSI) is a rules-based risk context indicator for the S&P 500 index (SPX). It helps keep decisions data-driven during stress by combining four weekly conditions into a weighted risk score and presenting them in a readable dashboard. Optional breadth (Hindenburg Omen cluster proxy) and macro add-ons give additional context. This is not a buy/sell system.

Why it’s original and useful
Weekly core with confirmation: Four classic conditions (30WMA regime, ATR(14) trend, ADX(14) > 20 & rising, and % distance from 30WMA) feed a 0–100 score. A 2-of-3 gate (WMA down / ATR up / ADX>20↑) must confirm before “Danger,” reducing false spikes.
Daily Early-Warning: A separate daily preview flags conditions approaching the Danger threshold (with a streak filter). It’s a heads-up only, not a timeframe switch.
Scope control to avoid confusion: Signals (labels/alerts) are restricted to SPX on Weekly/Daily by design. The dashboard can be shown SPX-only or on all symbols (configurable).
Clarity for all users: Beginner card view (plain badges) and Pro table view (detailed chips) improve readability without hiding logic.
How it works (mechanics)
Weekly core (primary frame)
30WMA regime: price vs 30-week WMA; IN/OUT labels on crosses.
ATR(14): rising ATR counts as volatility stress.
ADX(14): risk weight when ADX > 20 and rising.
Distance to 30WMA: % deviation flags potential overheat.
Scoring & thresholds: Weighted sum → Caution ≥ 40, Danger ≥ 60 (defaults). Danger also requires the 2-of-3 gate above.
Daily Early-Warning: Uses daily versions of the same ideas to detect near-Danger conditions with a streak requirement (heads-up only).
Optional breadth (Hindenburg Omen proxy): Elevated new highs and new lows while the NYSE Composite is above its 50DMA, with deteriorating breadth momentum; requires cluster confirmation to reduce noise.
Optional macro add-ons: VIX regime, DXY strength, credit stress (HYG/LQD vs MA), and TNX trend each add adjustable weights.

Inputs (overview)
Scope & Mode: SPX primary/alt tickers; signal restriction to SPX + Weekly/Daily; dashboard visibility (SPX-only vs all symbols); Beginner or Pro display.
Label Policy: Weekly-only / Weekly-core + Daily-early (default) / All (W/D); lookback windows and minimum bar gaps to prevent clutter.
Scoring: Weights for 30WMA down, ATR up, ADX>20↑, Overheat; Caution/Danger thresholds; Overheat % (distance).
Hindenburg Omen (optional): NYSE Composite and High/Low/AD series; cluster requirement.
Macro add-ons (optional): Symbols + weights for VIX, DXY, HYG, LQD, TNX.
Early Warning (Daily): Near-Danger buffer and streak length.
Visuals & Alerts: Background shading, labels on/off, font size, dashboard position, runtime

alerts.
Alerts (contextual; not trade signals)
OUT — 30WMA Down Break (Weekly)
IN — 30WMA Reclaim (Weekly)
Risk ≥ Danger + 2-of-3 Gate
Hindenburg Omen Cluster detected
Early Warning (Daily near Danger, streak)
Alerts provide context only. They are not buy/sell instructions.

Intended use and limitations
Use the Weekly panel for decisions; treat Daily Early-Warning as a heads-up.
Best used as risk framing alongside your own process (position sizing, liquidity, event risk).
Breadth/macro inputs depend on your data source; if unavailable, keep add-ons off.
No forward-looking data or lookahead; designed to avoid repainting.

Disclaimer
For educational purposes only. Not financial advice, not an investment recommendation, and not a solicitation to buy or sell any security. Past performance does not guarantee future results. Users are solely responsible for their decisions and regulatory compliance.

Optional Korean addendum (append after English)
한국어 안내 요약: 본 지표는 위기 상황에서 감정보다 데이터를 우선할 수 있도록 리스크 맥락을 제공합니다. 주봉이 핵심, 일봉은 조기경보(Heads-up)이며, 매수/매도 신호가 아닙니다. 심프님의 프로토타입 철학을 살리되 SPX 한정 신호, 라벨/알림 정책, 선택형 오멘/매크로 기능, 초보/프로 대시보드 등 가독성을 개선했습니다. 투자 판단과 책임은 전적으로 사용자에게 있습니다.


Privacy & format
Visibility: Public
Source: Protected (no source disclosure), compliant with Publishing Rules
Language: English title & description first; Korean addendum optional
Screenshot guidance (for your gallery)
Weekly SPX showing dashboard at “Danger” with an OUT label.
Weekly SPX with Hindenburg Omen Cluster label and shaded background.
Daily SPX with Early-Warning label as weekly approaches Danger.
Beginner vs Pro dashboard comparison on SPX.


Author certification (paste if needed)
I certify this publication contains no promotions, links, or solicitations, complies with TradingView House Rules and Script Publishing Rules, uses Pine v5, and is intended solely for educational purposes with no performance claims.

Declinazione di responsabilità

Le informazioni ed i contenuti pubblicati non costituiscono in alcun modo una sollecitazione ad investire o ad operare nei mercati finanziari. Non sono inoltre fornite o supportate da TradingView. Maggiori dettagli nelle Condizioni d'uso.