OPEN-SOURCE SCRIPT
Institutional Liquidity Sweep & Volume Breakout [SMC]

Hello Traders,
This open-source Pine Script (v5) indicator is designed to identify institutional "Liquidity Sweeps" or "Stop Hunts" based on Smart Money Concepts (SMC).
In financial markets, institutional algorithms frequently push prices past recent short-term swing highs or lows to trigger retail stop-losses and engineering liquidity before driving the market in the actual intended direction. This tool helps traders detect those exact institutional reversal points in real-time.
1. *Dynamic Swing Analysis:* The script tracks the highest high and lowest low of a user-defined lookback period (default is 20 bars) to establish key liquidity zones.
2. *Liquidity Sweep Detection:* A potential signal occurs when the price pierces through these key swing levels but fails to sustain the breakout, closing back inside the range. This indicates a clear fakeout or liquidity grab.
3. *Volume Filter Confirmation:* To filter out weak and false signals, a sweep is only validated if the breaking candle carries significantly higher volume than the 20-period moving average volume. High volume confirms institutional participation.
How to Trade with This Indicator:
-Bullish Sweep (Green Triangle & Label)NOccurs when the price sweeps a major swing low on high volume and closes back above it. This is a high-probability signal to look for long setups or exit short positions, especially on lower timeframes like the 5-minute or 15-minute charts for Gold (XAUUSD) and major USD currency pairs.
Bearish Sweep (Red Triangle & Label) Occurs when the price sweeps a major swing high on high volume and closes back below it. This indicates institutional selling pressure and serves as a signal to look for short entries.
Customizable Settings
Swing Lookback Period Adjust the number of historical bars to find stronger or tighter swing structures.
Volume Multiplier: Customize how many times higher the volume must be compared to its average to trigger a valid sweep.
Show Labels:* Toggle chart labels on or off for a cleaner interface.
*Disclaimer:* No indicator works 100% of the time. Always practice strict risk management. For best results, use these signals in confluence with higher timeframe market structure, order blocks, or major macroeconomic trends.
This open-source Pine Script (v5) indicator is designed to identify institutional "Liquidity Sweeps" or "Stop Hunts" based on Smart Money Concepts (SMC).
In financial markets, institutional algorithms frequently push prices past recent short-term swing highs or lows to trigger retail stop-losses and engineering liquidity before driving the market in the actual intended direction. This tool helps traders detect those exact institutional reversal points in real-time.
1. *Dynamic Swing Analysis:* The script tracks the highest high and lowest low of a user-defined lookback period (default is 20 bars) to establish key liquidity zones.
2. *Liquidity Sweep Detection:* A potential signal occurs when the price pierces through these key swing levels but fails to sustain the breakout, closing back inside the range. This indicates a clear fakeout or liquidity grab.
3. *Volume Filter Confirmation:* To filter out weak and false signals, a sweep is only validated if the breaking candle carries significantly higher volume than the 20-period moving average volume. High volume confirms institutional participation.
How to Trade with This Indicator:
-Bullish Sweep (Green Triangle & Label)NOccurs when the price sweeps a major swing low on high volume and closes back above it. This is a high-probability signal to look for long setups or exit short positions, especially on lower timeframes like the 5-minute or 15-minute charts for Gold (XAUUSD) and major USD currency pairs.
Bearish Sweep (Red Triangle & Label) Occurs when the price sweeps a major swing high on high volume and closes back below it. This indicates institutional selling pressure and serves as a signal to look for short entries.
Customizable Settings
Swing Lookback Period Adjust the number of historical bars to find stronger or tighter swing structures.
Volume Multiplier: Customize how many times higher the volume must be compared to its average to trigger a valid sweep.
Show Labels:* Toggle chart labels on or off for a cleaner interface.
*Disclaimer:* No indicator works 100% of the time. Always practice strict risk management. For best results, use these signals in confluence with higher timeframe market structure, order blocks, or major macroeconomic trends.
オープンソーススクリプト
TradingViewの精神に則り、このスクリプトの作者はコードをオープンソースとして公開してくれました。トレーダーが内容を確認・検証できるようにという配慮です。作者に拍手を送りましょう!無料で利用できますが、コードの再公開はハウスルールに従う必要があります。
免責事項
これらの情報および投稿は、TradingViewが提供または承認する金融、投資、取引、またはその他の種類の助言もしくは推奨であることを意図したものではなく、またこれらに該当するものでもありません。詳細は利用規約をご覧ください。
オープンソーススクリプト
TradingViewの精神に則り、このスクリプトの作者はコードをオープンソースとして公開してくれました。トレーダーが内容を確認・検証できるようにという配慮です。作者に拍手を送りましょう!無料で利用できますが、コードの再公開はハウスルールに従う必要があります。
免責事項
これらの情報および投稿は、TradingViewが提供または承認する金融、投資、取引、またはその他の種類の助言もしくは推奨であることを意図したものではなく、またこれらに該当するものでもありません。詳細は利用規約をご覧ください。