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.
开源脚本
本着TradingView的真正精神,此脚本的创建者将其开源,以便交易者可以查看和验证其功能。向作者致敬!虽然您可以免费使用它,但请记住,重新发布代码必须遵守我们的网站规则。
免责声明
这些信息和出版物并不意味着也不构成TradingView提供或认可的金融、投资、交易或其它类型的建议或背书。请在使用条款阅读更多信息。
开源脚本
本着TradingView的真正精神,此脚本的创建者将其开源,以便交易者可以查看和验证其功能。向作者致敬!虽然您可以免费使用它,但请记住,重新发布代码必须遵守我们的网站规则。
免责声明
这些信息和出版物并不意味着也不构成TradingView提供或认可的金融、投资、交易或其它类型的建议或背书。请在使用条款阅读更多信息。