OPEN-SOURCE SCRIPT
已更新 Liquidity Magnet Terminal

Liquidity Magnet Terminal
Liquidity Magnet Terminal is a volume-weighted liquidity mapping tool that helps traders identify the price levels where the market has historically accumulated the most trading interest — the zones most likely to act as magnets for future price movement.
Most support/resistance tools plot every swing high and low individually, which quickly clutters the chart with dozens of overlapping lines of equal visual weight. This script takes a different approach: it treats pivots as raw data points, clusters the ones sitting close together into unified zones, and weights each zone by the volume that traded at those levels. The result is a small, ranked set of levels — the ones that actually matter — instead of visual noise.
How the zones are built
The script continuously scans for pivot highs and lows using a configurable lookback window, recording the price, volume, and direction (resistance vs. support) of each one. As new pivots form, nearby pivots of the same direction are merged into a single zone using a volume-weighted average — meaning a pivot backed by high volume pulls the zone's price toward itself more strongly than a low-volume pivot would. This mimics how real liquidity accumulates: not at one exact tick, but across a cluster of prices where repeated buying or selling interest has occurred.
Each resulting zone is then scored by its total accumulated volume and normalized against the strongest zone on the chart, producing a relative strength score from 0 to 1. Only the top-ranked zones (configurable count) that clear a minimum strength threshold are kept and drawn — everything else is filtered out automatically.
What you see on the chart
Horizontal lines marking each liquidity zone, color-coded by direction (resistance zones in red, support zones in green), with line length and opacity scaling to zone strength — the strongest, most "magnetic" levels stand out visually without any manual adjustment
A star marker (⭐) highlighting zones in the top strength tier (≥75% relative strength)
A compact terminal-style panel showing current price alongside all active zones, their price levels, and a strength bar for at-a-glance comparison
Inputs
Pivot strength, lookback period, number of zones to display, zone merge tolerance (%), minimum strength filter, line width, and toggles for the panel, price labels, and star markers — all adjustable to fit different timeframes and instruments.
How to use it
Liquidity Magnet Terminal is designed as a contextual map, not a standalone signal generator. Use the ranked zones to anticipate where price is likely to react, get drawn toward, or reverse from — then combine that context with your own entry triggers, market structure analysis, and risk management. Zone strength reflects historical volume clustering; it does not predict direction or guarantee a reaction.
Liquidity Magnet Terminal is a volume-weighted liquidity mapping tool that helps traders identify the price levels where the market has historically accumulated the most trading interest — the zones most likely to act as magnets for future price movement.
Most support/resistance tools plot every swing high and low individually, which quickly clutters the chart with dozens of overlapping lines of equal visual weight. This script takes a different approach: it treats pivots as raw data points, clusters the ones sitting close together into unified zones, and weights each zone by the volume that traded at those levels. The result is a small, ranked set of levels — the ones that actually matter — instead of visual noise.
How the zones are built
The script continuously scans for pivot highs and lows using a configurable lookback window, recording the price, volume, and direction (resistance vs. support) of each one. As new pivots form, nearby pivots of the same direction are merged into a single zone using a volume-weighted average — meaning a pivot backed by high volume pulls the zone's price toward itself more strongly than a low-volume pivot would. This mimics how real liquidity accumulates: not at one exact tick, but across a cluster of prices where repeated buying or selling interest has occurred.
Each resulting zone is then scored by its total accumulated volume and normalized against the strongest zone on the chart, producing a relative strength score from 0 to 1. Only the top-ranked zones (configurable count) that clear a minimum strength threshold are kept and drawn — everything else is filtered out automatically.
What you see on the chart
Horizontal lines marking each liquidity zone, color-coded by direction (resistance zones in red, support zones in green), with line length and opacity scaling to zone strength — the strongest, most "magnetic" levels stand out visually without any manual adjustment
A star marker (⭐) highlighting zones in the top strength tier (≥75% relative strength)
A compact terminal-style panel showing current price alongside all active zones, their price levels, and a strength bar for at-a-glance comparison
Inputs
Pivot strength, lookback period, number of zones to display, zone merge tolerance (%), minimum strength filter, line width, and toggles for the panel, price labels, and star markers — all adjustable to fit different timeframes and instruments.
How to use it
Liquidity Magnet Terminal is designed as a contextual map, not a standalone signal generator. Use the ranked zones to anticipate where price is likely to react, get drawn toward, or reverse from — then combine that context with your own entry triggers, market structure analysis, and risk management. Zone strength reflects historical volume clustering; it does not predict direction or guarantee a reaction.
版本注释
Correction in name版本注释
Small changes in copyright :)版本注释
Update of the screen + tags开源脚本
秉承TradingView的精神,该脚本的作者将其开源,以便交易者可以查看和验证其功能。向作者致敬!您可以免费使用该脚本,但请记住,重新发布代码须遵守我们的网站规则。
免责声明
这些信息和出版物并非旨在提供,也不构成TradingView提供或认可的任何形式的财务、投资、交易或其他类型的建议或推荐。请阅读使用条款了解更多信息。
开源脚本
秉承TradingView的精神,该脚本的作者将其开源,以便交易者可以查看和验证其功能。向作者致敬!您可以免费使用该脚本,但请记住,重新发布代码须遵守我们的网站规则。
免责声明
这些信息和出版物并非旨在提供,也不构成TradingView提供或认可的任何形式的财务、投资、交易或其他类型的建议或推荐。请阅读使用条款了解更多信息。