PROTECTED SOURCE SCRIPT
Volume Crisis

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
๐ฏ 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
Skrip dilindungi
Skrip ini diterbitkan sebagai sumber tertutup. Akan tetapi, anda boleh menggunakannya secara bebas dan tanpa apa-apa had โ ketahui lebih di sini.
Penafian
Maklumat dan penerbitan adalah tidak bertujuan, dan tidak membentuk, nasihat atau cadangan kewangan, pelaburan, dagangan atau jenis lain yang diberikan atau disahkan oleh TradingView. Baca lebih dalam Terma Penggunaan.
Skrip dilindungi
Skrip ini diterbitkan sebagai sumber tertutup. Akan tetapi, anda boleh menggunakannya secara bebas dan tanpa apa-apa had โ ketahui lebih di sini.
Penafian
Maklumat dan penerbitan adalah tidak bertujuan, dan tidak membentuk, nasihat atau cadangan kewangan, pelaburan, dagangan atau jenis lain yang diberikan atau disahkan oleh TradingView. Baca lebih dalam Terma Penggunaan.