PROTECTED SOURCE SCRIPT
Multi-Exchange Liquidation Map [Composite]

Multi-Exchange Liquidation Heatmap [Composite]
Institutional-Grade Liquidity Mapping (Pine Script v6)
🔵 Overview
The Multi-Exchange Liquidation Heatmap is a sophisticated visualization tool designed to reveal "Price Magnets" and "Max Pain" levels where high-leverage traders are forcibly liquidated. Unlike traditional volume profiles that only show past trades, this indicator projects future risk zones based on exchange margin-call mathematics.
By aggregating real-time data from Binance, Bybit, BitMEX, Coinbase, and Bitfinex, it provides a "composite" view of the market. This allows you to spot liquidity clusters that are invisible if you only monitor a single exchange.
⚙️ How It Works: The Logic
The script operates on a deterministic mathematical model rather than a heuristic/estimated one:
🛠️ How to Setup & Configure
1. Multi-Exchange Input
In the settings, you can toggle specific data feeds:
2. Filtering & Sensitivity
📈 Trading Strategy: Liquidations vs. Volatility
How to Trade:
⚠️ Technical Performance
This script is built on Pine Script v6, utilizing User-Defined Types (UDT) and Matrix-based Garbage Collection for maximum efficiency.
Disclaimer: Liquidation levels are theoretical proxies based on common leverage settings. This tool should be used as confluence for price action and market structure analysis.
Institutional-Grade Liquidity Mapping (Pine Script v6)
🔵 Overview
The Multi-Exchange Liquidation Heatmap is a sophisticated visualization tool designed to reveal "Price Magnets" and "Max Pain" levels where high-leverage traders are forcibly liquidated. Unlike traditional volume profiles that only show past trades, this indicator projects future risk zones based on exchange margin-call mathematics.
By aggregating real-time data from Binance, Bybit, BitMEX, Coinbase, and Bitfinex, it provides a "composite" view of the market. This allows you to spot liquidity clusters that are invisible if you only monitor a single exchange.
⚙️ How It Works: The Logic
The script operates on a deterministic mathematical model rather than a heuristic/estimated one:
- Pivot Detection: It identifies significant Swing Highs and Swing Lows (Pivots) across all enabled exchanges.
- Margin Mathematics: For every pivot, it calculates exact liquidation prices for 100x, 50x, and 25x leverage tiers using the standard exchange formulas:
*Long Liquidation: Pliq=Pentry×(1−L1)
Short Liquidation: Pliq=Pentry×(1+L1)
* - Composite Aggregation: Because a "wick" might be deeper on Bybit than on Binance, the script marks both levels. This creates a more accurate and denser "Liquidity Wall."
- Heatmap Visuals (Alpha Blending): Each zone is drawn with 95% transparency. When levels from different exchanges or different leverage tiers overlap at the same price, the color intensifies (darkens). These "hot zones" represent high-probability reversal or acceleration points.
- Dynamic Sweeping: To keep your chart clean, the script automatically deletes a box once the market price "sweeps" through it. This ensures you only see untaken liquidity.
🛠️ How to Setup & Configure
1. Multi-Exchange Input
In the settings, you can toggle specific data feeds:
* Binance & Bybit: Pre-configured for Perpetual contracts (e.g., BINANCE:BTCUSDTPERP).
* BitMEX: Captures "Starved Whales" and older market participants.
* Coinbase (Spot): While Spot has no liquidations, traders use Coinbase Swing points for Stop-Losses. Zoned at 25x to represent "Hedging Support."
* Custom / Hyperliquid Proxy: Since Hyperliquid isn't native to TV yet, use this field to input a custom ticker (e.g., OKX:BTCUSDTPERP or BYBIT:HYPEUSDT.P).
2. Filtering & Sensitivity
- Volume Filter Multiplier: Only pivots with a volume spike (e.g., 1.5x the 50-SMA) generate zones. This filters out retail "noise" and focuses on institutional entries.
- Pivot Lookback: Set how many candles are required to confirm a swing. A value of 5 is ideal for intraday trading.
📈 Trading Strategy: Liquidations vs. Volatility
How to Trade:
- The Magnet Effect: Price is attracted to dense "Heatmap" clusters. Use these zones as Take-Profit targets.
- The Exhaustion Signal: When price slams into a 50x or 100x liquidation zone and then pulls back, it is a high-confidence signal that the "fuel" for the move has been exhausted.
- The Cascade: If 100x liquidations trigger a move into 50x levels, expect a rapid "cascade" or "flash wick."
⚠️ Technical Performance
This script is built on Pine Script v6, utilizing User-Defined Types (UDT) and Matrix-based Garbage Collection for maximum efficiency.
- Request Limit: TradingView limits scripts to 40 request.security calls. This script uses approximately 10-15 calls, leaving you plenty of headroom for other indicators.
- Resolution: For the best results, use the 5m, 15m, or 1h timeframes.
Disclaimer: Liquidation levels are theoretical proxies based on common leverage settings. This tool should be used as confluence for price action and market structure analysis.
Protected script
This script is published as closed-source. However, you can use it freely and without any limitations – learn more here.
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.
Protected script
This script is published as closed-source. However, you can use it freely and without any limitations – learn more here.
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.