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

Liquidity + Order-Flow Exhaustion (Smart-Money Logic) is a visual tool that helps traders recognize where big market participants (“smart money”) are likely accumulating or distributing positions.
It identifies liquidity sweeps (stop-hunts above or below previous swing levels) and market structure shifts (reversals confirmed by price closing back in the opposite direction).
How it works:
How to read the signals:
How to use it:
What makes it original:
Tip: For even better accuracy, align detected shifts with higher-timeframe bias or VWAP deviations.
It identifies liquidity sweeps (stop-hunts above or below previous swing levels) and market structure shifts (reversals confirmed by price closing back in the opposite direction).
In simple terms, it shows where price “tricks” retail traders into chasing breakouts — right before reversing.
How it works:
- The script scans recent highs and lows to find when price breaks them and quickly rejects — a sign of stop-hunts or liquidity grabs.
- It then checks for a close back inside the previous range to confirm a possible Market Structure Shift (MSS).
- When this happens, the chart highlights the zone and optionally adds directional labels (🔹 or 🔸) to mark where the liquidity event occurred.
How to read the signals:
- 🟢 Bullish shift — Price takes out a previous low, then closes higher. This often marks the end of a short-term down-move.
- 🔴 Bearish shift — Price sweeps a previous high, then closes lower. This often marks the end of a short-term rally.
- Colored backgrounds and labels help visualize these key reversals directly on the chart.
How to use it:
- Apply to any timeframe; 15-minute to 4-hour charts work best.
- Use it to confirm reversals near major swing points or liquidity zones.
- Combine with volume spikes, displacement candles, or Fair-Value Gaps (FVGs) for stronger confirmation.
What makes it original:
- Simple, self-contained logic inspired by Smart Money Concepts (SMC).
- Automatically detects both liquidity sweeps and the subsequent structural shift.
- Visual and alert-ready design — perfect for discretionary or algorithmic strategies.
Tip: For even better accuracy, align detected shifts with higher-timeframe bias or VWAP deviations.
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.