INVITE-ONLY SCRIPT

Liquidation Cascade Detector [QuantAlgo]

410
🟢 Overview

The Liquidation Cascade Detector employs multi-dimensional microstructure analysis to identify forced liquidation events by synthesizing volume anomalies, price acceleration dynamics, and volatility regime shifts. Unlike conventional momentum indicators that merely track directional bias, this indicator isolates the specific market conditions where leveraged positions experience forced unwinding, creating asymmetric opportunities for mean reversion traders and market makers to take advantage of temporary liquidity imbalances.

These liquidation cascades manifest through various catalysts: overwhelming spot selling coupled with leveraged long liquidation forced unwinding creates downward spirals where organic sell pressure triggers margin calls, which generate additional selling that triggers more margin calls. Conversely, sudden large buy orders or coordinated buying can squeeze overleveraged shorts, forcing buy-to-cover orders that push price higher, triggering additional short stops in a self-reinforcing feedback loop. The indicator captures both scenarios, regardless of whether the initial catalyst is organic flow or forced liquidation.

For sophisticated traders/market makers deploying amplification strategies, this indicator serves as an early warning system for distressed order flow. By detecting the moments when cascading stop-losses and margin calls create self-reinforcing price movements, the system enables traders to: (1) identify forced participants experiencing capital pressure, (2) strategically add liquidity in the direction of panic flow to amplify displacement, (3) accumulate contra-positions during the overshoot phase, and (4) capture mean reversion profits as equilibrium pricing reasserts itself. This approach transforms destructive liquidation events into potential profit opportunities by systematically front-running and then fading coordinated forced selling/buying.
لقطة
🟢 How It Works

The detection engine operates through a three-tier confirmation framework that validates liquidation events only when multiple independent market stress indicators align simultaneously:

► Tier 1: Volume Anomaly Detection

The system calculates bar-to-bar volume ratios to identify abnormal participation spikes characteristic of forced liquidations. The Volume Spike threshold filters for transactions where current volume significantly exceeds previous bar volume. When leveraged positions hit stop-losses or margin requirements, their simultaneous unwinding creates distinctive volume signatures absent during organic price discovery. This metric isolates moments when market makers face one-sided order flow from distressed participants unable to control execution timing, whether triggered by whale orders absorbing liquidity or cascading margin calls creating relentless directional pressure.

► Tier 2: Price Acceleration Measurement

By comparing current bar's absolute body size against the previous bar's movement, the algorithm quantifies momentum acceleration. The Price Acceleration threshold identifies scenarios where price velocity increases dramatically, a hallmark of cascading liquidations where each stop-loss triggers additional stops in a feedback loop. This calculation distinguishes between gradual trend development (irrelevant for amplification attacks) and explosive moves driven by forced order flow requiring immediate liquidity provision. The metric captures both panic selling scenarios where spot sellers overwhelm bid liquidity triggering long liquidations, and short squeeze dynamics where aggressive buying exhausts offer-side depth forcing short covering.

► Tier 3: Volatility Expansion Analysis

The indicator measures bar range expansion by computing the current high-low range relative to the previous bar. The Volatility Spike threshold captures regime shifts where intrabar price action becomes erratic, evidence that market depth has evaporated and order book imbalance is driving price. Combined with body-to-range analysis indicating strong directional conviction, this metric confirms that volatility expansion reflects genuine liquidation pressure rather than random noise or low-volume chop.
لقطة
*Supplementary Confirmation Metrics

Beyond the three primary detection tiers, the system analyzes additional candle characteristics that distinguish genuine liquidation events from ordinary volatility:

► Candle Strength: Measures the ratio of candle body size to total bar range. High readings (above 60%) indicate strong directional conviction where price moved decisively in one direction with minimal retracement. During liquidations, distressed traders execute market orders that drive price aggressively without the normal back-and-forth of balanced trading. Strong-bodied candles with minimal wicks confirm forced participants are accepting any available price rather than attempting to minimize slippage, validating that observed volume and price acceleration stem from liquidation pressure rather than routine trading.

► Volume Climax: Identifies when current volume reaches the highest level within recent history. Climax volume events mark terminal liquidation phases where maximum panic or squeeze intensity occurs. These extreme participation spikes typically represent the final wave of forced exits as the last remaining stops are triggered or the final shorts capitulate. For mean reversion traders, volume climax signals provide optimal reversal entry timing, as they mark maximum displacement from equilibrium when all forced sellers/buyers have been exhausted.

*Directional Classification

The system categorizes cascades into two actionable classes:

1. Short Liquidation (Bullish Cascade): Upward price movement combined with cascade patterns equals forced short covering. This occurs when aggressive spot buying (often from whales placing large market orders) or coordinated buy programs exhaust available offer liquidity, spiking price upward and triggering clustered short stop-losses. Short sellers experiencing margin pressure must buy-to-close regardless of price, creating artificial demand spikes that compound the initial buying pressure. The combination of organic buying and forced covering creates explosive upward moves as each liquidated short adds buy-side pressure, triggering additional shorts in a self-reinforcing loop. Market makers can amplify this by lifting offers ahead of forced buy orders, then selling into the exhaustion at elevated levels.
لقطة
2. Long Liquidation (Bearish Cascade): Downward price movement combined with cascade patterns equals forced long liquidation. This manifests when heavy spot selling (panic sellers, large institutional unwinds, or coordinated distribution) overwhelms bid-side liquidity, breaking through support levels where long stop-losses cluster. Over-leveraged longs facing margin calls must sell-to-close at any price, generating artificial supply waves that compound the initial selling pressure. The dual force of organic selling coupled with forced long liquidation creates downward spirals where each margin call triggers additional margin calls through further price deterioration. Amplification opportunities exist by hitting bids ahead of panic selling, accumulating long positions during the capitulation, and reversing as sellers exhaust.
لقطة
🟢 How to Use

1. For Mean Reversion Traders

When the indicator highlights a short liquidation cascade (green background), this signals that shorts are experiencing forced buy-to-cover pressure, often initiated by whale bids or aggressive spot buying that triggered the squeeze. Mean reversion traders can interpret this as a temporary upward dislocation from fair value. As the dashboard shows declining momentum metrics and the cascade highlighting stops, this represents a potential fade opportunity. Enter short positions expecting price to revert back toward pre-cascade levels once the forced buying exhausts and the initial large buyer completes their accumulation.
لقطة
When a long liquidation cascade triggers (red background), longs are undergoing forced sell-to-close liquidation, typically catalyzed by overwhelming spot selling that breached key support levels. This creates artificial downward pressure disconnected from fundamental value, as margin-driven forced selling compounds organic sell flow. Mean reversion traders wait for the cascade to complete (dashboard transitions from active liquidation status to neutral), then enter long positions anticipating snap-back toward equilibrium pricing as panic subsides and forced sellers are exhausted.
لقطة
You can also monitor the dashboard's Volume Climax indicator. When it displays "YES" during an active cascade, this suggests the liquidation is reaching its terminal phase, whether driven by the final shorts being squeezed out or the last leveraged longs capitulating. Mean reversion entries become highest probability at this point, as maximum displacement from fair value has occurred. Wait for the next 1-3 bars after climax confirmation, then enter contra-trend positions with tight stops.

The Candle Strength metric also helps validate entry timing. When candle strength readings drop significantly after maintaining elevated levels during the cascade, this divergence indicates absorption is occurring. Market makers are stepping in to provide liquidity, supporting your mean reversion thesis. Strong candle bodies during the cascade followed by weaker bodies signal the forced flow is diminishing.

2. For Momentum & Trend Following Traders

When price breaks through a significant resistance level and immediately triggers a short liquidation cascade (green background), this confirms breakout validity through forced participation. Shorts positioned against the breakout are now experiencing margin pressure from the combination of breakout momentum and potential whale buying, creating self-reinforcing buying that propels price higher. Enter long positions during the cascade or immediately after, as the forced covering provides fuel for extended momentum continuation.
لقطة
Conversely, when price breaks below key support and triggers a long liquidation cascade (red background), the breakdown is validated by forced selling from trapped longs. Heavy spot selling coupled with margin liquidations creates accelerated downside momentum as liquidations cascade through clustered stop-loss levels. Enter short positions as the cascade develops, riding the combined force of organic selling and forced liquidation for extended trend moves.
لقطة

3. For Sophisticated Traders & Market Makers

► Amplification Attack Execution

Sophisticated operators can exploit cascades through systematic amplification positioning. When a short liquidation is detected (green highlight activating), often initiated by whale bids absorbing offer liquidity, place aggressive buy orders to front-run and amplify the forced short covering. This exacerbates upward pressure, pushing price further from equilibrium and triggering additional clustered stops. Simultaneously begin accumulating short positions at these artificially elevated levels. As dashboard metrics indicate cascade exhaustion (volume spike declining, climax signal appearing, candle strength weakening), flatten amplification longs and hold accumulated shorts into the mean reversion.

For long liquidations (red highlight), typically catalyzed by heavy spot selling overwhelming bid depth, execute the inverse strategy. Place aggressive sell orders to compound the panic selling, amplifying downward displacement and accelerating margin call triggers. Layer long entries at depressed prices during this amplification phase as forced liquidation selling creates artificial supply. When dashboard signals cascade completion (metrics normalizing, volume climax passing), exit amplification shorts and maintain long positions for the reversal trade.

► Market Making During Liquidity Crises

During detected cascades, temporarily adjust quote placement strategy. When dashboard shows all three confirmation metrics activating simultaneously with strong candle bodies, this indicates the highest probability liquidation event, whether from whale order flow or cascading margin calls. Widen spreads dramatically to capture enhanced edge during the liquidity vacuum. Alternatively, step away from quote provision entirely on your natural inventory side (stop offering during short cascades driven by aggressive buying, stop bidding during long cascades driven by overwhelming selling) to avoid adverse selection from forced flow.

Use cascade detection to inform inventory management. During short cascades initiated by large buy orders or short squeezes, reduce existing short inventory exposure while allowing the forced buying to push price higher. Rebuild short inventory only at the inflated levels created by liquidation pressure. During long cascades where spot selling compounds leveraged liquidation, reduce long inventory and use the forced selling to reaccumulate at artificially depressed prices rather than providing stabilizing liquidity too early.

► Sequential Positioning Strategy

Advanced traders can structure trades in phases: (1) Initial amplification orders placed immediately upon cascade detection to front-run forced flow, (2) Contra-position accumulation scaled in as displacement extends and dashboard readings intensify, (3) Amplification trade exit when metrics show deceleration or candle strength weakens, (4) Contra-position hold through mean reversion, targeting pre-cascade price levels. This sequential approach extracts profit from both the dislocation phase and the subsequent equilibrium restoration.

► Risk Monitoring

If cascade highlighting persists across many consecutive bars while dashboard volume readings remain extremely elevated with sustained strong candle bodies, this suggests sustained institutional deleveraging or persistent whale activity rather than simple retail liquidation. Reduce amplification position sizing significantly, as these extended events can exhibit delayed mean reversion. Professional counter-parties may be establishing dominant positions, limiting your edge.

When volatility spike metrics decline while cascade highlighting continues, professional absorption is occurring. Proceed cautiously with amplification strategies, as intelligent liquidity providers are already positioning for the reversal, potentially front-running your intended reversal trade. Similarly, if large liquidation wicks appear during cascades, this indicates partial absorption is happening, suggesting more sophisticated players are taking the opposite side of distressed flow.

إخلاء المسؤولية

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.