OPEN-SOURCE SCRIPT
Güncellendi

Liquidation Reversal Signals [AlgoAlpha]

1 629
🟠OVERVIEW
This tool detects potential liquidation-driven reversals by combining z-score analysis of up/down volume with the classic Supertrend. It watches for abnormal surges in directional volume (on a lower timeframe) and links them to trend flips on the main chart. When both align within a short window, it flags a probable reversal caused by forced liquidations. The goal is to help traders identify exhaustion points where aggressive liquidation moves may mark the end of a trend leg.

🟠CONCEPTS
The logic revolves around Z-score normalization of up and down volume to locate statistical extremes. When up-volume z-scores exceed a threshold during a bearish Supertrend, it implies trapped shorts being squeezed; the opposite applies for long liquidations. The script tracks these liquidation spikes and monitors whether a Supertrend regime change follows soon after. If confirmed within the allowed timeout, a colored signal marks the event.
In essence:
  • Z-score outliers = potential forced liquidations.
  • Supertrend = structural regime context.
  • Combined = statistically confirmed reversal signals, not random flips.

This pairing reduces false positives by ensuring that both volatility structure and order-flow extremes agree before flagging a reversal.
ekran görüntüsü

🟠FEATURES
  1. Z-score detection for liquidation spikes with adjustable lookback and threshold.
    ekran görüntüsü
  2. Confirmation logic linking liquidations to Supertrend flips.
    ekran görüntüsü
  3. Alerts for liquidation spikes and confirmed reversal starts.
    ekran görüntüsü
  4. On-chart “No Volume” warning to avoid misreads on illiquid assets.
    ekran görüntüsü


🟠USAGE
  1. Setup: Add the script to your main chart. Choose a lower timeframe (default 15m) to capture more granular liquidation flows. Adjust Z-Score Length to control how far back the script measures normal behavior and Threshold to decide what counts as extreme. Keep Timeout Bars low (e.g. 20–50) for faster reversals, or higher for slower markets.
  2. Read the chart:
     • Circles appear below bars when long liquidations occur; above bars for short liquidations.
     • A Supertrend flip with a recent liquidation spike will display an arrow and color shift.
     • Fills between candles and trend lines show which side dominates: green for bullish reversal, red for bearish.
     • Candle color fades based on the magnitude of liquidation pressure.
  3. Settings that matter:
     • Z-Score Length: Longer smooths noise but delays signal; shorter reacts faster.
     • Z-Score Threshold: Higher means only extreme liquidations trigger; lower finds smaller squeezes.
     • Timeout Bars: Defines how long after a liquidation the Supertrend flip remains valid.
     • Lower Timeframe: Determines the precision of volume readings; too low may increase noise.

Sürüm Notları
Update Title

Feragatname

Bilgiler ve yayınlar, TradingView tarafından sağlanan veya onaylanan finansal, yatırım, işlem veya diğer türden tavsiye veya tavsiyeler anlamına gelmez ve teşkil etmez. Kullanım Şartları'nda daha fazlasını okuyun.