PROTECTED SOURCE SCRIPT

[X342] Liquidity Hunter

16
[X342] Liquidity Hunter — Sweep Detection

OVERVIEW
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
Liquidity Hunter identifies and tracks areas where stop-loss orders are likely clustered (liquidity pools) based on pivot points and notional value calculations.

METHODOLOGY
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
The indicator uses a sophisticated approach to identify liquidity:

1. Pivot Point Detection
- Uses configurable left/right bar lookback
- Identifies swing highs (upside liquidity targets)
- Identifies swing lows (downside liquidity targets)

2. Notional Value Calculation
- Formula: Price × Volume at pivot bar
- Represents the "dollar value" of orders at each level
- More accurate than simple volume or price levels alone

3. Dynamic Level Management
- Tracks up to configurable max levels per side
- Automatically removes MITIGATED levels (when price sweeps through)
- Oldest levels are removed when max is exceeded

WHY NOTIONAL VALUE?
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
Traditional support/resistance uses price alone. Notional value (Price × Volume) provides a more realistic view of where significant orders are clustered. A high volume bar at a pivot is more significant than a low volume bar.

FEATURES
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
✓ Dual language support (English / Türkçe)
✓ Automatic level cleanup on mitigation
✓ Notional value labels on each level
✓ Distance percentage to nearest levels
✓ Total liquidity summary panel
✓ Sweep detection alerts

VISUAL ELEMENTS
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
• Red Lines: Upside liquidity (buy stops above)
• Blue Lines: Downside liquidity (sell stops below)
• Labels: Show notional value at each level

INFO PANEL
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
Displays 4-column layout:
- Total upside liquidity (sum of all notional values)
- Distance to nearest upside level (%)
- Total downside liquidity
- Distance to nearest downside level (%)

SETTINGS
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
Detection:
- Left Bars: Bars to left for pivot detection (default: 15)
- Right Bars: Bars to right for pivot confirmation (default: 5)

Display:
- Max Levels Each: Maximum levels per side (default: 8)
- Show Liquidity Amount: Toggle notional value labels

Colors:
- Upside Liq Color: Color for resistance/upside levels
- Downside Liq Color: Color for support/downside levels

ALERTS
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
• New Upside Liq: New upside level formed
• New Downside Liq: New downside level formed
• Upside Sweep: Price swept through upside liquidity
• Downside Sweep: Price swept through downside liquidity

TRADING APPLICATION
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
- Use sweeps as potential reversal signals
- Larger notional values indicate stronger levels
- Distance % helps with risk/reward calculations
- Combine with trend indicators for confirmation

Penafian

Maklumat dan penerbitan adalah tidak bertujuan, dan tidak membentuk, nasihat atau cadangan kewangan, pelaburan, dagangan atau jenis lain yang diberikan atau disahkan oleh TradingView. Baca lebih dalam Terma Penggunaan.