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. اقرأ المزيد في شروط الاستخدام.