OPEN-SOURCE SCRIPT
Updated

Liquidity + Order-Flow Exhaustion (Smart-Money Logic)

231
Liquidity + Order-Flow Exhaustion (Smart-Money Logic)

Detects liquidity sweeps and market-structure shifts — core concepts in Smart Money Trading.


🟢 Bullish Shift — price sweeps prior lows, absorbs sell-side liquidity, then closes higher → potential reversal up.
🔴 Bearish Shift — price takes prior highs, traps late buyers, then closes lower → potential reversal down.


Features:
  • Auto-detects stop-hunts & structure breaks in real time
  • Background coloring highlights potential reversal zones
  • Optional 🔹 / 🔸 labels visualize liquidity grabs directly on candles
  • Alerts fire when a confirmed structure shift occurs


Best use: 15m–4h charts, ideally with volume, displacement, or FVG confluence.

© 2025 tkarolak · Licensed under Apache 2.0 License
Release Notes
v1.1.0 - Settings and Usability Update

  • Custom Lookback Length: Implemented a single input for controlling the bar length used in ta.highest() and ta.lowest() calculations.

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.