OPEN-SOURCE SCRIPT
@Complete Squeeze Cycle Detector v2.0 FINAL

Description:
The Complete Squeeze Cycle Detector identifies and tracks the full lifecycle of squeeze formations, from pre-squeeze consolidation through active squeeze periods to squeeze completion. The indicator systematically detects the characteristic conditions that precede and accompany squeeze events.
The indicator monitors multiple factors associated with squeeze development including:
• Volatility compression relative to recent volume activity
• Elevated market stress conditions as measured by VIX levels
• Momentum compression through rate of change measurements across multiple time periods
• Alignment of multiple exponential moving averages indicating consolidation
The squeeze cycle is classified into three distinct phases: Pre-Squeeze Setup, Active Squeeze, and Squeeze Complete. Each phase is identified based on threshold levels of multiple compression metrics, with adjustable sensitivity settings to control the strictness of detection.
The indicator provides visual identification of each phase through labels, background coloring, and an optional dashboard, allowing users to distinguish between the preparation phase where volatility contracts, the active squeeze phase where compression reaches critical levels, and the completion phase where the squeeze releases and directional movement resumes.
This systematic approach enables users to identify squeeze formations throughout their complete development cycle rather than focusing only on the breakout phase.
The Complete Squeeze Cycle Detector identifies and tracks the full lifecycle of squeeze formations, from pre-squeeze consolidation through active squeeze periods to squeeze completion. The indicator systematically detects the characteristic conditions that precede and accompany squeeze events.
The indicator monitors multiple factors associated with squeeze development including:
• Volatility compression relative to recent volume activity
• Elevated market stress conditions as measured by VIX levels
• Momentum compression through rate of change measurements across multiple time periods
• Alignment of multiple exponential moving averages indicating consolidation
The squeeze cycle is classified into three distinct phases: Pre-Squeeze Setup, Active Squeeze, and Squeeze Complete. Each phase is identified based on threshold levels of multiple compression metrics, with adjustable sensitivity settings to control the strictness of detection.
The indicator provides visual identification of each phase through labels, background coloring, and an optional dashboard, allowing users to distinguish between the preparation phase where volatility contracts, the active squeeze phase where compression reaches critical levels, and the completion phase where the squeeze releases and directional movement resumes.
This systematic approach enables users to identify squeeze formations throughout their complete development cycle rather than focusing only on the breakout phase.
Open-source script
In true TradingView spirit, the creator of this script has made it open-source, so that traders can review and verify its functionality. Kudos to the author! While you can use it for free, remember that republishing the code is subject to our House Rules.
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.
Open-source script
In true TradingView spirit, the creator of this script has made it open-source, so that traders can review and verify its functionality. Kudos to the author! While you can use it for free, remember that republishing the code is subject to our House Rules.
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.