OPEN-SOURCE SCRIPT
Обновлено AetherEdge - Adaptive Liquidation Heatmap

🖊️ Overview
AE-LIQ is a liquidation-level estimation engine in the spirit of CoinGlass-style liquidation heatmaps. It estimates the price levels where leveraged liquidation orders cluster and renders them as bright horizontal bands — the "magnets" price tends to be drawn toward. Real liquidation maps use exchange position data, but since Pine can only access price and volume, this tool estimates from those by back-solving liquidation prices for several leverage tiers, emphasizing the bands that work via adaptive learning.
🔶 Key Features
Liquidation-band estimation: back-solves liquidation prices for 5×/10×/25×/50×/100× leverage
Volume weighting: each bar's volume serves as a position-size proxy for band intensity
Swept decay: bands price has already traded through are decayed, emphasizing un-swept bands (remaining liquidity)
Long/short selection: long liquidations (below) and short liquidations (above) can be shown separately
[AI Layer] Adaptive tier reliability: online-learns whether price reaching each tier's bands actually reacted, emphasizing the effective ones
Viridis palette (purple→teal→green→yellow) reproducing the CoinGlass aesthetic
Integrated HUD showing the strongest leverage tier and each tier's reliability
🧠 Technical Architecture
Liquidation distance is approximated by the inverse of leverage (≈10% for 10×, ≈4% for 25×). From each bar's price, liquidation prices are back-solved for every enabled leverage tier, and a volume-based weight is added to the row (price bin) that price occupies. Higher leverage produces tighter, more crowded bands weighted more heavily. The accumulated row energy is normalized, bands price recently swept are decayed by the configured amount ("liquidated"), and un-swept bands remain bright. The AI layer checks whether, historically, price reaching each tier's liquidation distance actually produced an ATR-scaled reaction, updating per-tier reliability via an exponentially-weighted average. More reliable tiers gain band weight and visual emphasis. Rendering uses per-row horizontal box transparency grading, with Viridis-spectrum brightness encoding energy magnitude.⚙️ Recommended Settings & Tuning Guide
Tuned with crypto in mind. Price Resolution 60 and Accumulation Lookback ~250 are a starting point. On high-volatility instruments, raise Vertical Range to cover a wider price span. Swept-Band Decay controls how much traded-through bands are erased — higher leaves only the un-swept bands vivid, like CoinGlass. If cluttered, turn off unneeded tiers or restrict to one side (long/short).
💡 How to Use in Practice
Bright yellow bands read as price levels where heavy liquidations sleep — magnets that attract price. Price often moves toward such bands, and reaching them tends to trigger large volatility (liquidation cascades). The brightest bands above and below current price offer references for short-term targets and risk management. The HUD's strongest tier shows which leverage layer actually functions as a magnet on this instrument, guiding which bands to prioritize. Pairing with other structure analysis and favoring levels where liquidation bands align with support/resistance is effective.
⚠️ Important Notes
This tool is Estimated and differs from a real CoinGlass liquidation map. Exchange open-interest and leverage-distribution data cannot be accessed in Pine, so this is an approximation back-solved from price and volume, and may diverge from the actual distribution of liquidation orders. Liquidation bands are probabilistic estimates, not certain price targets. The heatmap rebuilds only on the last bar and does not repaint confirmed history. The AI reliability learning requires accumulated data.
🚨 Disclaimer
This indicator is provided for educational and informational purposes only and does not constitute financial or investment advice. No output guarantees future prices, and past performance does not indicate future results. All trading decisions are made at your own risk.
AE-LIQ is a liquidation-level estimation engine in the spirit of CoinGlass-style liquidation heatmaps. It estimates the price levels where leveraged liquidation orders cluster and renders them as bright horizontal bands — the "magnets" price tends to be drawn toward. Real liquidation maps use exchange position data, but since Pine can only access price and volume, this tool estimates from those by back-solving liquidation prices for several leverage tiers, emphasizing the bands that work via adaptive learning.
🔶 Key Features
Liquidation-band estimation: back-solves liquidation prices for 5×/10×/25×/50×/100× leverage
Volume weighting: each bar's volume serves as a position-size proxy for band intensity
Swept decay: bands price has already traded through are decayed, emphasizing un-swept bands (remaining liquidity)
Long/short selection: long liquidations (below) and short liquidations (above) can be shown separately
[AI Layer] Adaptive tier reliability: online-learns whether price reaching each tier's bands actually reacted, emphasizing the effective ones
Viridis palette (purple→teal→green→yellow) reproducing the CoinGlass aesthetic
Integrated HUD showing the strongest leverage tier and each tier's reliability
🧠 Technical Architecture
Liquidation distance is approximated by the inverse of leverage (≈10% for 10×, ≈4% for 25×). From each bar's price, liquidation prices are back-solved for every enabled leverage tier, and a volume-based weight is added to the row (price bin) that price occupies. Higher leverage produces tighter, more crowded bands weighted more heavily. The accumulated row energy is normalized, bands price recently swept are decayed by the configured amount ("liquidated"), and un-swept bands remain bright. The AI layer checks whether, historically, price reaching each tier's liquidation distance actually produced an ATR-scaled reaction, updating per-tier reliability via an exponentially-weighted average. More reliable tiers gain band weight and visual emphasis. Rendering uses per-row horizontal box transparency grading, with Viridis-spectrum brightness encoding energy magnitude.⚙️ Recommended Settings & Tuning Guide
Tuned with crypto in mind. Price Resolution 60 and Accumulation Lookback ~250 are a starting point. On high-volatility instruments, raise Vertical Range to cover a wider price span. Swept-Band Decay controls how much traded-through bands are erased — higher leaves only the un-swept bands vivid, like CoinGlass. If cluttered, turn off unneeded tiers or restrict to one side (long/short).
💡 How to Use in Practice
Bright yellow bands read as price levels where heavy liquidations sleep — magnets that attract price. Price often moves toward such bands, and reaching them tends to trigger large volatility (liquidation cascades). The brightest bands above and below current price offer references for short-term targets and risk management. The HUD's strongest tier shows which leverage layer actually functions as a magnet on this instrument, guiding which bands to prioritize. Pairing with other structure analysis and favoring levels where liquidation bands align with support/resistance is effective.
⚠️ Important Notes
This tool is Estimated and differs from a real CoinGlass liquidation map. Exchange open-interest and leverage-distribution data cannot be accessed in Pine, so this is an approximation back-solved from price and volume, and may diverge from the actual distribution of liquidation orders. Liquidation bands are probabilistic estimates, not certain price targets. The heatmap rebuilds only on the last bar and does not repaint confirmed history. The AI reliability learning requires accumulated data.
🚨 Disclaimer
This indicator is provided for educational and informational purposes only and does not constitute financial or investment advice. No output guarantees future prices, and past performance does not indicate future results. All trading decisions are made at your own risk.
Информация о релизе
ver.2Скрипт с открытым кодом
В истинном духе TradingView, создатель этого скрипта сделал его открытым исходным кодом, чтобы трейдеры могли проверить и убедиться в его функциональности. Браво автору! Вы можете использовать его бесплатно, но помните, что перепубликация кода подчиняется нашим Правилам поведения.
Отказ от ответственности
Информация и публикации не предназначены для предоставления и не являются финансовыми, инвестиционными, торговыми или другими видами советов или рекомендаций, предоставленных или одобренных TradingView. Подробнее читайте в Условиях использования.
Скрипт с открытым кодом
В истинном духе TradingView, создатель этого скрипта сделал его открытым исходным кодом, чтобы трейдеры могли проверить и убедиться в его функциональности. Браво автору! Вы можете использовать его бесплатно, но помните, что перепубликация кода подчиняется нашим Правилам поведения.
Отказ от ответственности
Информация и публикации не предназначены для предоставления и не являются финансовыми, инвестиционными, торговыми или другими видами советов или рекомендаций, предоставленных или одобренных TradingView. Подробнее читайте в Условиях использования.