OPEN-SOURCE SCRIPT
ICT Liquidity Hunter

ICT Liquidity Hunter
OVERVIEW
ICT Liquidity Hunter is not another "trade the CHoCH" indicator. It is built on the same Inner Circle Trader (ICT) / Smart Money Concepts structure that most ICT traders use to enter a trade, but it uses that structure for the opposite purpose: to locate where those traders end up placing their stop-loss orders, so that level can be marked as a probable liquidity target instead of an entry signal.
CONCEPT
The vast majority of retail ICT traders execute the same textbook sequence: wait for a Change of Character (CHoCH), wait for price to return to the Order Block (OB) or Fair Value Gap (FVG) left behind by that break, and enter when price shows a clean, obvious rejection at that zone. Because this sequence is taught everywhere and followed by a huge number of traders in exactly the same way, the stop-loss orders from all those entries cluster tightly just beyond the extreme of that rejection candle - a very predictable, crowded pool of resting liquidity.
This script does not stop at marking the OB/FVG zone the way a conventional ICT indicator would. It goes one step further: it waits for the same rejection the crowd is trading, then marks the exact high or low left by that rejection candle as a "Liquidity Level" - the level where the stops of everyone who just entered on that textbook retest are most likely resting. That level, not the zone itself, is the actual point of interest: it is a probable target for a subsequent liquidity run/stop hunt, either before price resumes in the "expected" direction or as the setup for a reversal against the crowd that just entered.
In short: conventional ICT tools show you where to copy the crowd's entry. This one shows you where the crowd's stops are sitting once they've already entered - so you can plan around that liquidity instead of trading the same obvious retest everyone else is watching.
WHAT IT'S MADE OF
1. Market structure / CHoCH
The script builds an alternating (zig-zag) sequence of swing highs and lows from pivot points, filtered by a minimum size (in ATR) so minor internal noise doesn't count as real structure. A CHoCH is flagged the first time price closes back through the currently active opposite swing level since the trend last flipped - the same first break of structure a traditional ICT trader would use as their starting signal.
2. Order Blocks and Fair Value Gaps
Once a CHoCH fires, the script looks back over a configurable number of bars for:
- Order Block: the last candle of the opposite color before the impulse that caused the break.
- Fair Value Gap: a 3-candle imbalance (a gap between candle 1 and candle 3) formed during that same impulse.
Both are drawn as shaded zones - above the breakout candle for a bearish CHoCH, below it for a bullish CHoCH - exactly where a conventional ICT trader would be watching for their own entry. Only a small number of zones are kept on the chart at once, and each one expires automatically if price never returns to it within a set number of bars.
3. Rejection detection
When price returns and touches an active OB/FVG zone, the script checks the candle that touches it (or the one immediately after) for a strong, obvious rejection: a candle whose range is a multiple of the recent average range, closing decisively away from the zone - the exact kind of clean reaction that convinces the crowd to enter and place stops just beyond it.
4. Liquidity Level
A valid rejection prints a solid horizontal line - the Liquidity Level - starting at the exact high (bearish rejection) or low (bullish rejection) of that candle, extending forward in time. This is not the entry the crowd took; it is the resting-stop level just beyond it, and therefore the level most likely to get run before or instead of continuation in the "obvious" direction. Liquidity lines expire automatically after a set number of bars if price never reaches them.
5. Alerts
Two alert conditions are built in: one for a bullish rejection (liquidity marked below) and one for a bearish rejection (liquidity marked above), so alerts can be set directly from the TradingView alert dialog the moment a new Liquidity Level appears.
HOW TO USE IT
- Structure group: controls how strict the swing/CHoCH detection is (pivot lookback, minimum swing size in ATR) and how long an OB/FVG zone stays valid before it expires unused.
- Order Block / FVG group: toggle Order Blocks and/or FVGs independently, set how far back to search for them after a CHoCH, and optionally require a minimum FVG size.
- Rejection candle group: controls what counts as a "strong" rejection candle (size relative to average range, how close the close must be to the extreme of the candle) and how many liquidity lines/zones stay visible at once.
- Style group: colors for bullish/bearish OB, FVG and liquidity lines, and an optional display of the raw swing pivot points.
A typical read: let the CHoCH and the OB/FVG zone form exactly as a conventional ICT trader would expect. Once a rejection candle prints and a "Liquidity Level" line appears, treat that line - not the zone - as the point of interest: the resting liquidity from everyone who just entered on the retest. Whether you plan a position through that level, tighten risk ahead of it, or simply use it as a warning that the "obvious" move may get run first, always combine it with your own higher-timeframe context, confirmation and risk management.
NOTES
This is an educational tool for visualizing where ICT-style retest liquidity is likely to build up, based on standard market structure, order blocks and FVGs. It does not constitute financial advice and does not guarantee any outcome. Like any structure-based tool, back-test it on the instrument and timeframe you intend to trade before using it live.
OVERVIEW
ICT Liquidity Hunter is not another "trade the CHoCH" indicator. It is built on the same Inner Circle Trader (ICT) / Smart Money Concepts structure that most ICT traders use to enter a trade, but it uses that structure for the opposite purpose: to locate where those traders end up placing their stop-loss orders, so that level can be marked as a probable liquidity target instead of an entry signal.
CONCEPT
The vast majority of retail ICT traders execute the same textbook sequence: wait for a Change of Character (CHoCH), wait for price to return to the Order Block (OB) or Fair Value Gap (FVG) left behind by that break, and enter when price shows a clean, obvious rejection at that zone. Because this sequence is taught everywhere and followed by a huge number of traders in exactly the same way, the stop-loss orders from all those entries cluster tightly just beyond the extreme of that rejection candle - a very predictable, crowded pool of resting liquidity.
This script does not stop at marking the OB/FVG zone the way a conventional ICT indicator would. It goes one step further: it waits for the same rejection the crowd is trading, then marks the exact high or low left by that rejection candle as a "Liquidity Level" - the level where the stops of everyone who just entered on that textbook retest are most likely resting. That level, not the zone itself, is the actual point of interest: it is a probable target for a subsequent liquidity run/stop hunt, either before price resumes in the "expected" direction or as the setup for a reversal against the crowd that just entered.
In short: conventional ICT tools show you where to copy the crowd's entry. This one shows you where the crowd's stops are sitting once they've already entered - so you can plan around that liquidity instead of trading the same obvious retest everyone else is watching.
WHAT IT'S MADE OF
1. Market structure / CHoCH
The script builds an alternating (zig-zag) sequence of swing highs and lows from pivot points, filtered by a minimum size (in ATR) so minor internal noise doesn't count as real structure. A CHoCH is flagged the first time price closes back through the currently active opposite swing level since the trend last flipped - the same first break of structure a traditional ICT trader would use as their starting signal.
2. Order Blocks and Fair Value Gaps
Once a CHoCH fires, the script looks back over a configurable number of bars for:
- Order Block: the last candle of the opposite color before the impulse that caused the break.
- Fair Value Gap: a 3-candle imbalance (a gap between candle 1 and candle 3) formed during that same impulse.
Both are drawn as shaded zones - above the breakout candle for a bearish CHoCH, below it for a bullish CHoCH - exactly where a conventional ICT trader would be watching for their own entry. Only a small number of zones are kept on the chart at once, and each one expires automatically if price never returns to it within a set number of bars.
3. Rejection detection
When price returns and touches an active OB/FVG zone, the script checks the candle that touches it (or the one immediately after) for a strong, obvious rejection: a candle whose range is a multiple of the recent average range, closing decisively away from the zone - the exact kind of clean reaction that convinces the crowd to enter and place stops just beyond it.
4. Liquidity Level
A valid rejection prints a solid horizontal line - the Liquidity Level - starting at the exact high (bearish rejection) or low (bullish rejection) of that candle, extending forward in time. This is not the entry the crowd took; it is the resting-stop level just beyond it, and therefore the level most likely to get run before or instead of continuation in the "obvious" direction. Liquidity lines expire automatically after a set number of bars if price never reaches them.
5. Alerts
Two alert conditions are built in: one for a bullish rejection (liquidity marked below) and one for a bearish rejection (liquidity marked above), so alerts can be set directly from the TradingView alert dialog the moment a new Liquidity Level appears.
HOW TO USE IT
- Structure group: controls how strict the swing/CHoCH detection is (pivot lookback, minimum swing size in ATR) and how long an OB/FVG zone stays valid before it expires unused.
- Order Block / FVG group: toggle Order Blocks and/or FVGs independently, set how far back to search for them after a CHoCH, and optionally require a minimum FVG size.
- Rejection candle group: controls what counts as a "strong" rejection candle (size relative to average range, how close the close must be to the extreme of the candle) and how many liquidity lines/zones stay visible at once.
- Style group: colors for bullish/bearish OB, FVG and liquidity lines, and an optional display of the raw swing pivot points.
A typical read: let the CHoCH and the OB/FVG zone form exactly as a conventional ICT trader would expect. Once a rejection candle prints and a "Liquidity Level" line appears, treat that line - not the zone - as the point of interest: the resting liquidity from everyone who just entered on the retest. Whether you plan a position through that level, tighten risk ahead of it, or simply use it as a warning that the "obvious" move may get run first, always combine it with your own higher-timeframe context, confirmation and risk management.
NOTES
This is an educational tool for visualizing where ICT-style retest liquidity is likely to build up, based on standard market structure, order blocks and FVGs. It does not constitute financial advice and does not guarantee any outcome. Like any structure-based tool, back-test it on the instrument and timeframe you intend to trade before using it live.
Open-source Skript
Ganz im Sinne von TradingView hat dieser Autor sein/ihr Script als Open-Source veröffentlicht. Auf diese Weise können nun auch andere Trader das Script rezensieren und die Funktionalität überprüfen. Vielen Dank an den Autor! Sie können das Script kostenlos verwenden, aber eine Wiederveröffentlichung des Codes unterliegt unseren Hausregeln.
Haftungsausschluss
Die Informationen und Veröffentlichungen sind nicht als Finanz-, Anlage-, Handels- oder andere Arten von Ratschlägen oder Empfehlungen gedacht, die von TradingView bereitgestellt oder gebilligt werden, und stellen diese nicht dar. Lesen Sie mehr in den Nutzungsbedingungen.
Open-source Skript
Ganz im Sinne von TradingView hat dieser Autor sein/ihr Script als Open-Source veröffentlicht. Auf diese Weise können nun auch andere Trader das Script rezensieren und die Funktionalität überprüfen. Vielen Dank an den Autor! Sie können das Script kostenlos verwenden, aber eine Wiederveröffentlichung des Codes unterliegt unseren Hausregeln.
Haftungsausschluss
Die Informationen und Veröffentlichungen sind nicht als Finanz-, Anlage-, Handels- oder andere Arten von Ratschlägen oder Empfehlungen gedacht, die von TradingView bereitgestellt oder gebilligt werden, und stellen diese nicht dar. Lesen Sie mehr in den Nutzungsbedingungen.