OPEN-SOURCE SCRIPT
Updated Liquidity + Order-Flow Exhaustion (Smart-Money Logic)

Liquidity + Order-Flow Exhaustion (Smart-Money Logic)
Detects liquidity sweeps and market-structure shifts — core concepts in Smart Money Trading.
Features:
Best use: 15m–4h charts, ideally with volume, displacement, or FVG confluence.
© 2025 tkarolak · Licensed under Apache 2.0 License
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.
Open-source script
In true TradingView spirit, the creator of this script has made it open-source, so that traders can review and verify its functionality. Kudos to the author! While you can use it for free, remember that republishing the code is subject to our House Rules.
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.
Open-source script
In true TradingView spirit, the creator of this script has made it open-source, so that traders can review and verify its functionality. Kudos to the author! While you can use it for free, remember that republishing the code is subject to our House Rules.
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.