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提供或认可的任何形式的财务、投资、交易或其他类型的建议或推荐。请阅读使用条款了解更多信息。