OPEN-SOURCE SCRIPT
Liquidity Pools

This indicator uses SMC (ICT) concept for valid liquidity pools' identification.
It maps active liquidity pools using confirmed structural swing highs and swing lows. It is built on the same structural swing comparison logic as the SMC Structure Identifier, but focuses specifically on unswept structural highs and lows.
The swing logic uses configurable lookback and forward confirmation windows. Raw swings are filtered into structural swings by comparing consecutive highs and lows. If multiple swings of the same type occur before an opposite swing confirms structure, only the most extreme swing is kept. These surviving structural swings become potential liquidity pools.
Features:
• Confirmed swing high and swing low detection
• Structural swing filtering with overwritten swing handling
• Active liquidity levels from structural highs and lows
• Automatic invalidation when liquidity is swept
• Optional hiding or graying out of swept pools
• Configurable maximum pool age in bars
• Customizable high-side and low-side liquidity colors
• Customizable pool line width and line style
• Optional display of structural and ignored swing markers
Logic:
A liquidity pool is created from a structural swing high or structural swing low.
High-side liquidity:
• Created from confirmed structural highs
• Remains active while price stays below it
• Becomes invalid when a later candle’s high trades above the level
Low-side liquidity:
• Created from confirmed structural lows
• Remains active while price stays above it
• Becomes invalid when a later candle’s low trades below the level
Older active pools can be automatically removed using the maximum pool age setting, which helps keep the chart focused on recent liquidity instead of historical levels.
This tool is intended for traders who use market structure, swing points, and liquidity concepts in discretionary analysis.
Note:
1. Liquidity inside SMC is subjective and has many representations; this indicator is an attempt to implement on of the simplest variations into the code. Regulate Lookforward and Lookback variables to find the most suitable liquidity pools from swings for you.
2. This indicator does not provide buy or sell signals. It is a visual liquidity-mapping tool and should be used together with your own trading plan, risk management, and additional analysis.
It maps active liquidity pools using confirmed structural swing highs and swing lows. It is built on the same structural swing comparison logic as the SMC Structure Identifier, but focuses specifically on unswept structural highs and lows.
The swing logic uses configurable lookback and forward confirmation windows. Raw swings are filtered into structural swings by comparing consecutive highs and lows. If multiple swings of the same type occur before an opposite swing confirms structure, only the most extreme swing is kept. These surviving structural swings become potential liquidity pools.
Features:
• Confirmed swing high and swing low detection
• Structural swing filtering with overwritten swing handling
• Active liquidity levels from structural highs and lows
• Automatic invalidation when liquidity is swept
• Optional hiding or graying out of swept pools
• Configurable maximum pool age in bars
• Customizable high-side and low-side liquidity colors
• Customizable pool line width and line style
• Optional display of structural and ignored swing markers
Logic:
A liquidity pool is created from a structural swing high or structural swing low.
High-side liquidity:
• Created from confirmed structural highs
• Remains active while price stays below it
• Becomes invalid when a later candle’s high trades above the level
Low-side liquidity:
• Created from confirmed structural lows
• Remains active while price stays above it
• Becomes invalid when a later candle’s low trades below the level
Older active pools can be automatically removed using the maximum pool age setting, which helps keep the chart focused on recent liquidity instead of historical levels.
This tool is intended for traders who use market structure, swing points, and liquidity concepts in discretionary analysis.
Note:
1. Liquidity inside SMC is subjective and has many representations; this indicator is an attempt to implement on of the simplest variations into the code. Regulate Lookforward and Lookback variables to find the most suitable liquidity pools from swings for you.
2. This indicator does not provide buy or sell signals. It is a visual liquidity-mapping tool and should be used together with your own trading plan, risk management, and additional analysis.
오픈 소스 스크립트
트레이딩뷰의 진정한 정신에 따라, 이 스크립트의 작성자는 이를 오픈소스로 공개하여 트레이더들이 기능을 검토하고 검증할 수 있도록 했습니다. 작성자에게 찬사를 보냅니다! 이 코드는 무료로 사용할 수 있지만, 코드를 재게시하는 경우 하우스 룰이 적용된다는 점을 기억하세요.
면책사항
해당 정보와 게시물은 금융, 투자, 트레이딩 또는 기타 유형의 조언이나 권장 사항으로 간주되지 않으며, 트레이딩뷰에서 제공하거나 보증하는 것이 아닙니다. 자세한 내용은 이용 약관을 참조하세요.
오픈 소스 스크립트
트레이딩뷰의 진정한 정신에 따라, 이 스크립트의 작성자는 이를 오픈소스로 공개하여 트레이더들이 기능을 검토하고 검증할 수 있도록 했습니다. 작성자에게 찬사를 보냅니다! 이 코드는 무료로 사용할 수 있지만, 코드를 재게시하는 경우 하우스 룰이 적용된다는 점을 기억하세요.
면책사항
해당 정보와 게시물은 금융, 투자, 트레이딩 또는 기타 유형의 조언이나 권장 사항으로 간주되지 않으며, 트레이딩뷰에서 제공하거나 보증하는 것이 아닙니다. 자세한 내용은 이용 약관을 참조하세요.