OPEN-SOURCE SCRIPT

HOG Liquidity Hunter

601
HOG Liquidity Hunter – Pivot‑Based Liquidity Zones

📌 Overview
Plots dynamic support and resistance zones on swing pivots with an ATR‑based buffer. Anchored only when pivots are confirmed, the zones stay close to current price levels—ideal for spotting liquidity runs or traps.

🔧 How It Works

Detects swing highs and lows using ta.pivothigh() / ta.pivotlow() with a user‑defined lookback.

After a pivot is confirmed, calculates BSL/SSL zone = pivot ± (ATR * margin).

Zones update only on confirmed pivots—no repainting on open bars.

⚙️ Inputs

Lookback: bars to confirm pivots (e.g. 10–20).

ATR Margin Multiplier: buffer width (e.g. 1.25).

✅ Benefits

Structure‑focused: Zones align with real swing points.

Responsive yet stable: Tight ATR margin keeps zones precise, only updating on valid pivots.

Clean visuals: Two uncluttered zones—easy to interpret.

🛠 How to Use

Detect near‑zone bounce entries or exits on 4H/1D charts.

Combine with trend or volume indicators for stronger setups.

Use zones to identify potential stop‑run, liquidity re‑tests, or range turns.

⚠️ Notes & Disclaimers

Zones base off historical pivots; may lag until confirmed.

No future-looking data—relying entirely on closing bar confirmation.

Use alongside a complete trading framework; this is not a standalone signal.

Disclaimer

The information and publications are not meant to be, and do not constitute, financial, investment, trading, or other types of advice or recommendations supplied or endorsed by TradingView. Read more in the Terms of Use.