PROTECTED SOURCE SCRIPT

Volume Crisis

14
Created by Alphaomega18
๐ŸŽฏ What is the Crisis Detector Pro?
The Crisis Detector Pro is an advanced multi-component indicator that detects market crisis situations by simultaneously analyzing:

Volume: Anomalies and volume spikes
VIX: Volatility Index (S&P 500)
ATR: True volatility (all assets)
Open Interest: Estimated open interest (futures contracts)

The indicator calculates a Composite Crisis Score (0-100) that combines these elements to alert you to critical market moments.
๐Ÿ“Š Indicator Components
1๏ธโƒฃ Volume Analysis

Anomaly detection: Compares current volume to its moving average
Classification:

๐ŸŸก Moderate: 1.5x - 2x average
๐ŸŸ  High: 2x - 3x average
๐Ÿ”ด Extreme: > 3x average


Bollinger Bands: Detects volume breakouts
Clusters: Identifies 3+ consecutive days of anomalies

2๏ธโƒฃ VIX (Fear Index)

S&P 500 only
Default thresholds:

๐ŸŸก Moderate: VIX > 20
๐ŸŸ  High: VIX > 30
๐Ÿ”ด Extreme: VIX > 40



3๏ธโƒฃ ATR (Average True Range)

Measures true volatility
Compatible with all assets (stocks, futures, forex, crypto)
Compares current ATR to its average

4๏ธโƒฃ Open Interest (OI)

Estimation based on Volume / 2
Detects changes > 25%
Inverted colors:

๐Ÿ”ด Red: OI increase (new positions)
๐ŸŸข Green: OI decrease (position closing)



โš™๏ธ Main Parameters
Calculations:

Moving Average Period: 20 (default)
Standard Deviation Period: 20
ATR Period: 14

Volume Thresholds:

Moderate: 1.5x
High: 2.0x
Extreme: 3.0x

Composite Score (Weights):

Volume: 35%
VIX: 25%
ATR: 20%
Open Interest: 20%

๐Ÿ“ˆ Visual Signals
Top of Chart:

๐ŸŸก Yellow triangle: Moderate alert (Score 50-70)
๐ŸŸ  Orange triangle: High alert (Score 70-85)
๐Ÿ”ด Red triangle: EXTREME CRISIS (Score 85-100)
โš ๏ธ Purple cross: Reinforced signal (Volume + Volatility simultaneous)

Bottom of Chart:

๐Ÿ’Ž Purple diamond: 50-day volume record
โฌ› Fuchsia square: Cluster (3+ abnormal days)

Volume Bars:

Gray: Normal volume
๐ŸŸก Yellow: Moderate volume
๐ŸŸ  Orange: High volume
๐Ÿ”ด Red: Extreme volume

Open Interest Curve:

๐Ÿ”ต Blue: Normal variation
๐Ÿ”ด Red: Increase > 25%
๐ŸŸข Green: Decrease > 25%

๐ŸŽฏ How to Use the Indicator
1. Initial Setup
For S&P 500 / US Indices:

Enable VIX โœ…
Enable ATR โœ…
Enable OI โœ…
Composite Score โœ…

For Other Assets (Forex, Crypto, Stocks):

Disable VIX โŒ
Enable ATR โœ…
Enable OI (optional)
Composite Score โœ…

2. Crisis Score Interpretation
ScoreLevelMeaningAction0-50Normal โœ…Calm marketNormal trading50-70Vigilance ๐ŸŸกVolatility risingIncreased monitoring70-85Danger ๐ŸŸ Critical situationReduce exposure85-100Crisis ๐Ÿ”ดMAXIMUM ALERTCapital protection
3. Trading Strategies
Directional Trading:

Reinforced signal โš ๏ธ = Powerful move in progress
Enter in direction of movement with confirmation
Tight stops, quick targets

Risk Management:

Score > 70 โ†’ Reduce position size by 50%
Score > 85 โ†’ Stop trading or ultra-short positions
Cluster detected โ†’ Avoid new trades

Scalping/Day Trading:

Extreme volume ๐Ÿ”ด = Scalping opportunities
Wait for confirmation before entering
Exit quickly on spikes

Swing Trading:

Avoid opening swings during crises
Protect existing positions (trailing stops)
Wait for return to normal (Score < 50)

4. Open Interest (Futures):
OI Increase (๐Ÿ”ด Red):

New positions opened
Strong market conviction
Movement may intensify

OI Decrease (๐ŸŸข Green):

Position closing
Profit-taking or stop losses
Possible reversal

๐Ÿ”” Configurable Alerts
The indicator includes 8 types of alerts:

๐ŸŸก Moderate Crisis Alert: Score 50-70
๐ŸŸ  HIGH Crisis ALERT: Score 70-85
๐Ÿ”ด MAJOR CRISIS: Score 85-100
โš ๏ธ REINFORCED SIGNAL: Extreme Volume + Volatility simultaneous
๐Ÿ’Ž RECORD Volume: Highest volume over 50 days
๐Ÿ“Š Cluster DETECTED: 3+ consecutive abnormal days
๐Ÿ“ˆ OI SPIKE >25%: Sharp Open Interest increase
๐Ÿ“‰ OI DECLINE >25%: Sharp Open Interest decrease

Setup: Right-click on chart โ†’ "Add Alert" โ†’ Select alert
๐Ÿ’ก Optimization Tips
Scalping (1-5min):
MA Period: 10-15
Moderate Threshold: 1.3x
High Threshold: 1.8x
Volume Weight: 50%
Day Trading (15min-1H):
MA Period: 20 (default)
Thresholds: Default
Composite Score: Enabled
Swing Trading (4H-Daily):
MA Period: 30-50
StdDev Multiplier: 2.5
ATR Period: 20
Volatile Markets (Crypto):
Moderate Threshold: 1.8x
High Threshold: 2.5x
Extreme Threshold: 4.0x
ATR Weight: 30%
๐Ÿ“Š Statistics Table
The real-time table displays:

Crisis Score: 0-100 with color coding
Current volume: Value and ratio
Volume Score: Contribution to total score
Open Interest: Estimated value and % change
VIX: Current value (if enabled)
ATR: Ratio to average
Global STATUS: Normal โœ… / Vigilance ๐ŸŸก / Danger ๐ŸŸ  / Crisis ๐Ÿ”ด

โš ๏ธ Warnings and Limitations
โŒ Limitations:

Open Interest is estimated (Volume / 2), not real value
VIX only works for S&P 500
False signals possible in very volatile markets

โœ… Best Practices:

Always combine with classic technical analysis
Never trade solely on alerts
Adapt thresholds to your asset and timeframe
Backtest before using live
Respect your risk management plan

๐ŸŽ“ Real Use Cases
Example 1: Flash Crash

Extreme volume ๐Ÿ”ด + Extreme ATR ๐Ÿ”ด + Reinforced signal โš ๏ธ
Composite score > 90
Action: No new trades, protect existing positions

Example 2: Fed Announcement

VIX > 35 + Moderate volume ๐ŸŸก + OI rising ๐Ÿ”ด
Composite score: 65
Action: Reduce position size, widen stops

Example 3: Volatility Squeeze

Cluster detected + Volume record ๐Ÿ’Ž + OI declining ๐ŸŸข
Action: Scalping opportunity in breakout direction

๐Ÿ“ˆ Performance

Real-time detection (0 lag)
Compatible all markets and timeframes
Low resource consumption
Complete history preserved

Disclaimer

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.