Skip to content
Skillpedia
Analysis & spreadsheets37k Β· #7528

liquidation-heatmap

What it does

This skill explains where leveraged crypto positions are likely to be forced to close. It is for traders who want to see where price may speed up or get pulled.

When to use it

  • βœ“When you want to see where many leveraged crypto positions could be liquidated.
  • βœ“When you are looking for support or resistance levels based on liquidation data.
  • βœ“When you suspect a sudden price move could be caused by a chain of forced closes.

Skill link

https://github.com/HKUDS/Vibe-Trading/blob/main/agent/src/skills/liquidation-heatmap/SKILL.md

Copy it and paste it into your AI (Claude, ChatGPT or Cursor), asking it to follow the instructions.

How to use

The easiest way: copy the message and paste it into your AI. It reads the skill and follows the instructions.

Ready-to-paste message

Use this skill to help me: https://github.com/HKUDS/Vibe-Trading/blob/main/agent/src/skills/liquidation-heatmap/SKILL.md Read the SKILL.md file at that link and follow its instructions for my task.
Want your AI to find skills like this on its own?Install the free Skillpedia MCP: one line, and it searches 15,000+ skills before each task.Install in 1 minute β†’

Example of what to ask your AI

β€œWhere are the big liquidation clusters on the Bitcoin chart right now?”

5 new skills a week. 1 minute to read.

How it works

It calculates liquidation prices from leverage and entry price, then shows where those prices bunch up. Dense clusters are treated as zones where price may move quickly.

Technical content (original SKILL.md)

Original text by the author, straight from GitHub.

Liquidation Heatmap & Level Analysis

Overview

Analyze the distribution of leveraged positions and their liquidation price levels to identify zones where forced selling/buying will accelerate price moves. Liquidation clusters act as "magnets" β€” price tends to be attracted toward large liquidation concentrations because market makers and whales profit from triggering cascading liquidations.

Core Concepts

1. Liquidation Mechanics

How liquidation works:

# Long position liquidation
long_liquidation_price = entry_price * (1 - 1/leverage + maintenance_margin)

# Short position liquidation
short_liquidation_price = entry_price * (1 + 1/leverage - maintenance_margin)

# Example: BTC long at $65,000, 10x leverage, 0.5% maintenance margin
# Liquidation: $65,000 * (1 - 1/10 + 0.005) = $58,825
# A 9.5% move against the position triggers liquidation

Leverage and liquidation distance:

Leverage Liquidation Distance (Long) Liquidation Distance (Short)
2x ~50% drop ~50% rise
5x ~20% drop ~20% rise
10x ~10% drop ~10% rise
20x ~5% drop ~5% rise
50x ~2% drop ~2% rise
100x ~1% drop ~1% rise

2. Liquidation Heatmap Interpretation

A liquidation heatmap shows where liquidation orders are concentrated across different price levels, typically color-coded by density.

Reading the heatmap:

Price Level    Long Liquidations    Short Liquidations    Interpretation
$70,000        β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘          β–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆ      Heavy short liquidation zone
$68,000        β–‘β–‘β–‘β–‘                β–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆ            Moderate short liquidation
$66,000        β–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆ             β–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆ               Balanced (current price area)
$64,000        β–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆ          β–‘β–‘β–‘β–‘                  Moderate long liquidation
$62,000        β–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆ    β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘            Heavy long liquidation zone

Key principles:

  1. Liquidation clusters are magnets: price tends to gravitate toward large liquidation pools because the forced orders provide liquidity for whales to fill their positions
  2. Liquidation cascades: when a cluster gets hit, the forced selling/buying pushes price further, potentially triggering the next cluster β†’ cascade effect
  3. After liquidation wipe: once a large cluster is liquidated, that price level often becomes support/resistance (overleveraged positions are gone)

3. Liquidation Level Identification

def identify_liquidation_clusters(open_interest_by_price, leverage_distribution):
    """
    Estimate where liquidation clusters exist based on
    open interest and leverage distribution.
    """
    clusters = []

    for price_level in price_range:
        # Long liquidations: positions opened above this level with high leverage
        long_liq_volume = estimate_long_liq_at_price(
            open_interest_by_price, leverage_distribution, price_level
        )

        # Short liquidations: positions opened below this level with high leverage
        short_liq_volume = estimate_short_liq_at_price(
            open_interest_by_price, leverage_distribution, price_level
        )

        total = long_liq_volume + short_liq_volume

        if total > significance_threshold:
            clusters.append({
                "price": price_level,
                "long_liq": long_liq_volume,
                "short_liq": short_liq_volume,
                "type": "long" if long_liq_volume > short_liq_volume else "short",
                "magnitude": total,
            })

    return sorted(clusters, key=lambda x: x["magnitude"], reverse=True)

4. Liquidation-Based Trading Signals

Signal 1: Liquidation Magnet

def liquidation_magnet_signal(current_price, clusters):
    """
    Price is likely to move toward the nearest large liquidation cluster.
    """
    # Find nearest cluster above and below
    above = [c for c in clusters if c["price"] > current_price]
    below = [c for c in clusters if c["price"] < current_price]

    nearest_above = min(above, key=lambda c: c["price"] - current_price) if above else None
    nearest_below = min(below, key=lambda c: current_price - c["price"]) if below else None

    if nearest_above and nearest_below:
        above_magnitude = nearest_above["magnitude"]
        below_magnitude = nearest_below["magnitude"]

        if above_magnitude > below_magnitude * 2:
            return "upward_
FAQ

What is a liquidation cascade?

It is a chain reaction where one forced close pushes the price far enough to trigger more closes.

Why does leverage matter here?

Higher leverage means a smaller price move can trigger liquidation. For example, 10x leverage is hit by about a 10 percent move against the position.

Is a liquidation level a guaranteed signal?

No. It is one clue, so it should be used together with other analysis.

Details

Original description by the author

Liquidation level analysis and heatmap interpretation β€” identify leveraged position concentration, liquidation cascades, stop-hunt zones, and use liquidation data as support/resistance signals.

repo: HKUDS/Vibe-Trading

Popularity

GitHub stars
37k
Ranking position
#7528
License
MIT
Updated
11/1/2026

Is this skill useful?

0

Sign in to vote.

Comments

  • …

More skills from this repository

Similar skills