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.mdCopy 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
For Claude Code, Codex or Cursor: run it in your project folder and the skill gets installed.
Download the SKILL.md and drop it into your agentβs skills folder.
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:
- Liquidation clusters are magnets: price tends to gravitate toward large liquidation pools because the forced orders provide liquidity for whales to fill their positions
- Liquidation cascades: when a cluster gets hit, the forced selling/buying pushes price further, potentially triggering the next cluster β cascade effect
- 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
Comments
- β¦
More skills from this repository
vibe-trading
37kGives your agent a full finance research toolkit, covering backtests, factor analysis, options pricing and market data across many markets.
adr-hshare
37kShows your agent how to compare the price of a Chinese company listed in several markets, such as a US ADR and a Hong Kong share.
akshare
37kLets your agent pull free market data for Chinese and global stocks, futures, forex and economic indicators, with no API key needed.
alpha-zoo
37kLets your agent browse a library of ready-made stock factors and test how well a whole set of them predicts returns on a chosen market.
Similar skills
gitcrawl
394kLets your agent search a saved archive of GitHub issues and pull requests, group duplicates, and check their current status on GitHub.
slacrawl
394kLets your agent search and count messages in a local Slack archive, check how fresh that archive is, and refresh it when needed.
goplaces
394kHelps your agent search for places, get their details and reviews, and resolve place names using Google Places, with JSON output for scripts.