OPEN-SOURCE SCRIPT
HTF - High/Low Zones

Here is a complete, ready-to-publish presentation in English for your TradingView script page, including suggested visual diagrams/screenshots and clear markdown formatting.🚀 Liquidity Pivot MTF with Smart Merge & Dynamic Freeze📌 OverviewLiquidity Pivot MTF is a multi-timeframe structural liquidity mapping tool designed for Price Action and Smart Money concepts. It automatically plots key support and resistance zones based on Higher Timeframe Pivot Swing Bodies (Monthly 1M, Weekly 1W, Daily 1D, and 4H).Instead of cluttering your chart with hundreds of historic lines, this indicator intelligently merges overlapping zones, counts retest interactions (x1, x2, x3...), and freezes broken levels the exact moment a candle body closes beyond them.📸 Key Visual Features & Screenshots Guide1. Active vs. Frozen Zones UNBROKEN ZONE (Active & Projected Right)
┌───────────────────────────────────────────────► [1W (x3)]
└───────────────────────────────────────────────►
BROKEN ZONE (Frozen at Break Bar - Historical Memory)
┌───────────────────────┐
└───────────────────────┘ (Candle closed beyond -> Projection Stopped)
Active Unbroken Zones: Project infinitely to the right (extend.right), marking fresh, unmitigated liquidity pools waiting to be swept.Frozen Historic Zones: When a candle body closes through a zone, the extension stops on that exact bar. It stays visible as a historical reference without cluttering current price action.2. Smart Zone Merging & Touch Counter Pivot 1 ──┐
Pivot 2 ──┼──► Combined into One Expanded Box ──► [1W (x2)]
Pivot 3 ──┘
No More Clutter: Multiple swing pivots forming near the same price range are automatically unified into a single, comprehensive zone.Touch Counter (xN): Displays how many times price action has reacted within the same structural level (e.g., 1W (x1), 1W (x3)), highlighting high-probability liquidity pools.🛠️ Key Parameters & FeaturesFeatureDescriptionMTF HierarchyAutomatically filters higher timeframe levels based on your active chart (e.g., Shows 1M & 1W on Daily chart).Body AnchoredCalculates boundaries using candle open/close prices instead of wicks, eliminating false signals caused by random spikes.Mitigation ControlFreezes a Resistance only when Close > Top, and a Support only when Close < Bottom.Fully CustomizableModify colors, text size, zone percentage width, and pivot depth in inputs.🎯 How to Use in Your Trading StrategyLiquidity Sweeps (Rejection Setup):Look for price to wick into an active 1W or 1M zone (e.g., 1W x2).If the candle wicks into the box but closes outside, it confirms a liquidity sweep/rejection setup for a high-probability reversal entry.Structural Invalidation (Breakout Setup):When a candle body closes completely through a active zone, the indicator freezes the box projection. This confirms structural mitigation/invalidation, signaling a potential breakout continuation or a stop-loss trigger.Natural Targets (Take Profit):Target the nearest unmitigated opposite zone projecting on the right edge of your chart.
┌───────────────────────────────────────────────► [1W (x3)]
└───────────────────────────────────────────────►
BROKEN ZONE (Frozen at Break Bar - Historical Memory)
┌───────────────────────┐
└───────────────────────┘ (Candle closed beyond -> Projection Stopped)
Active Unbroken Zones: Project infinitely to the right (extend.right), marking fresh, unmitigated liquidity pools waiting to be swept.Frozen Historic Zones: When a candle body closes through a zone, the extension stops on that exact bar. It stays visible as a historical reference without cluttering current price action.2. Smart Zone Merging & Touch Counter Pivot 1 ──┐
Pivot 2 ──┼──► Combined into One Expanded Box ──► [1W (x2)]
Pivot 3 ──┘
No More Clutter: Multiple swing pivots forming near the same price range are automatically unified into a single, comprehensive zone.Touch Counter (xN): Displays how many times price action has reacted within the same structural level (e.g., 1W (x1), 1W (x3)), highlighting high-probability liquidity pools.🛠️ Key Parameters & FeaturesFeatureDescriptionMTF HierarchyAutomatically filters higher timeframe levels based on your active chart (e.g., Shows 1M & 1W on Daily chart).Body AnchoredCalculates boundaries using candle open/close prices instead of wicks, eliminating false signals caused by random spikes.Mitigation ControlFreezes a Resistance only when Close > Top, and a Support only when Close < Bottom.Fully CustomizableModify colors, text size, zone percentage width, and pivot depth in inputs.🎯 How to Use in Your Trading StrategyLiquidity Sweeps (Rejection Setup):Look for price to wick into an active 1W or 1M zone (e.g., 1W x2).If the candle wicks into the box but closes outside, it confirms a liquidity sweep/rejection setup for a high-probability reversal entry.Structural Invalidation (Breakout Setup):When a candle body closes completely through a active zone, the indicator freezes the box projection. This confirms structural mitigation/invalidation, signaling a potential breakout continuation or a stop-loss trigger.Natural Targets (Take Profit):Target the nearest unmitigated opposite zone projecting on the right edge of your chart.
نص برمجي مفتوح المصدر
بروح TradingView الحقيقية، قام مبتكر هذا النص البرمجي بجعله مفتوح المصدر، بحيث يمكن للمتداولين مراجعة وظائفه والتحقق منها. شكرا للمؤلف! بينما يمكنك استخدامه مجانًا، تذكر أن إعادة نشر الكود يخضع لقواعد الموقع الخاصة بنا.
إخلاء المسؤولية
لا يُقصد بالمعلومات والمنشورات أن تكون، أو تشكل، أي نصيحة مالية أو استثمارية أو تجارية أو أنواع أخرى من النصائح أو التوصيات المقدمة أو المعتمدة من TradingView. اقرأ المزيد في شروط الاستخدام.
نص برمجي مفتوح المصدر
بروح TradingView الحقيقية، قام مبتكر هذا النص البرمجي بجعله مفتوح المصدر، بحيث يمكن للمتداولين مراجعة وظائفه والتحقق منها. شكرا للمؤلف! بينما يمكنك استخدامه مجانًا، تذكر أن إعادة نشر الكود يخضع لقواعد الموقع الخاصة بنا.
إخلاء المسؤولية
لا يُقصد بالمعلومات والمنشورات أن تكون، أو تشكل، أي نصيحة مالية أو استثمارية أو تجارية أو أنواع أخرى من النصائح أو التوصيات المقدمة أو المعتمدة من TradingView. اقرأ المزيد في شروط الاستخدام.