PROTECTED SOURCE SCRIPT

Highs and Lows

59
🔍 Highs and Lows – Liquidity Zone Tracker
This script automatically detects and highlights key swing highs and lows on your chart using a pivot-based algorithm. These zones are dynamically plotted as visual rectangles that help identify unmitigated liquidity pools commonly used in Smart Money and institutional trading models.

Each level is marked as “fresh” when first plotted, meaning it hasn't been interacted with by price. When price touches a zone (via wick or full body), the script automatically de-emphasizes that zone to help you focus on actionable, untested levels.

📌 Key Features:
Pivot-Based Detection: Highs and lows are derived from confirmed swing points using a user-defined lookback period (default: 25 bars).

Freshness Logic:

Fresh zones are visually emphasized.

Touched zones fade automatically once price interacts, reducing chart clutter and drawing focus to relevant liquidity.

Customizable Visuals:

Individual styling for high and low zones (border color, fill color, style, width).

Adjustable max number of zones shown (default: 4 per side).

Touch & Break Detection:

Uses both wick interaction and full-body candle cross to determine freshness.

Real-Time Alerts:

Optional alerts for when price touches fresh high or low levels, ideal for breakout, mitigation, or reaction-based strategies.

📈 Practical Use Cases:
Identify untapped liquidity pools for entries/exits.

Visualize institutional interest areas in line with ICT/Smart Money models.

Use as entry confirmation zones in confluence with FVGs, BOS/CHOCH, and displacement tools.

Highlight stop-hunt or inducement zones before market expansion.

⚙️ How It Works:
High/low levels are detected using ta.pivothigh and ta.pivotlow.

Detected zones are boxed from the swing candle’s high/low to its close.

Price interaction logic:

Wick touch sets a box to "unfresh".

Full-body cross can reset a box as “fresh”.

Arrays are used to manage both box objects and their freshness states.

Max zone limits keep the chart clean and focused.

🛑 This script is closed-source to protect unique zone-tracking and visual management logic, but all key functionality and use cases are fully described above.

免責聲明

這些資訊和出版物並不意味著也不構成TradingView提供或認可的金融、投資、交易或其他類型的意見或建議。請在使用條款閱讀更多資訊。