OPEN-SOURCE SCRIPT
stelaraX - BSL/SSL Liquidity

stelaraX – BSL/SSL Liquidity
stelaraX – BSL/SSL Liquidity is a technical analysis indicator that identifies and tracks buy-side and sell-side liquidity levels based on swing highs and swing lows. The script uses pivot detection to mark potential liquidity pools, then monitors price action to highlight when those levels are swept.
The indicator is designed to visualize liquidity as either lines, zones, or both, and to keep the chart clean through configurable level limits and optional extensions.
Core logic
Swing highs and swing lows are detected using ta.pivothigh and ta.pivotlow with a user-defined swing length.
Each detected swing high creates a BSL level, and each detected swing low creates an SSL level.
For every created level, the script stores:
* the price
* the bar index where the swing formed
* sweep status and sweep bar
* optional drawn objects (line, zone box, label)
A level is considered swept when:
* BSL is swept if high trades above the stored swing high price
* SSL is swept if low trades below the stored swing low price
When a sweep occurs, the corresponding visuals are updated to a “swept” style (higher transparency and dashed line), and the level is stopped/closed at the sweep bar.
Display and styling
The indicator supports three display modes:
* Lines: horizontal liquidity lines
* Zones: rectangular zones with adjustable width in percent
* Both: lines and zones together
Additional options:
* extend levels forward by a fixed amount if not swept
* show labels at creation (BSL / SSL)
* optional swept marker at the sweep bar
* customizable colors for active and swept states
* maximum number of levels to keep on chart (older levels are removed automatically)
Dashboard
An optional dashboard summarizes:
* total BSL levels and swept BSL levels
* total SSL levels and swept SSL levels
* sweep rate percentages for both sides
The dashboard position and text size are configurable.
Alerts
The script provides:
* alert conditions for new BSL and SSL levels (new pivot high / new pivot low)
* optional real-time alert messages when a sweep is detected (BSL swept or SSL swept)
Disclaimer
This indicator is intended for technical analysis purposes only and does not provide financial advice or trade recommendations. Trading decisions and risk management remain the responsibility of the user.
stelaraX – BSL/SSL Liquidity is a technical analysis indicator that identifies and tracks buy-side and sell-side liquidity levels based on swing highs and swing lows. The script uses pivot detection to mark potential liquidity pools, then monitors price action to highlight when those levels are swept.
The indicator is designed to visualize liquidity as either lines, zones, or both, and to keep the chart clean through configurable level limits and optional extensions.
Core logic
Swing highs and swing lows are detected using ta.pivothigh and ta.pivotlow with a user-defined swing length.
Each detected swing high creates a BSL level, and each detected swing low creates an SSL level.
For every created level, the script stores:
* the price
* the bar index where the swing formed
* sweep status and sweep bar
* optional drawn objects (line, zone box, label)
A level is considered swept when:
* BSL is swept if high trades above the stored swing high price
* SSL is swept if low trades below the stored swing low price
When a sweep occurs, the corresponding visuals are updated to a “swept” style (higher transparency and dashed line), and the level is stopped/closed at the sweep bar.
Display and styling
The indicator supports three display modes:
* Lines: horizontal liquidity lines
* Zones: rectangular zones with adjustable width in percent
* Both: lines and zones together
Additional options:
* extend levels forward by a fixed amount if not swept
* show labels at creation (BSL / SSL)
* optional swept marker at the sweep bar
* customizable colors for active and swept states
* maximum number of levels to keep on chart (older levels are removed automatically)
Dashboard
An optional dashboard summarizes:
* total BSL levels and swept BSL levels
* total SSL levels and swept SSL levels
* sweep rate percentages for both sides
The dashboard position and text size are configurable.
Alerts
The script provides:
* alert conditions for new BSL and SSL levels (new pivot high / new pivot low)
* optional real-time alert messages when a sweep is detected (BSL swept or SSL swept)
Disclaimer
This indicator is intended for technical analysis purposes only and does not provide financial advice or trade recommendations. Trading decisions and risk management remain the responsibility of the user.
오픈 소스 스크립트
트레이딩뷰의 진정한 정신에 따라, 이 스크립트의 작성자는 이를 오픈소스로 공개하여 트레이더들이 기능을 검토하고 검증할 수 있도록 했습니다. 작성자에게 찬사를 보냅니다! 이 코드는 무료로 사용할 수 있지만, 코드를 재게시하는 경우 하우스 룰이 적용된다는 점을 기억하세요.
면책사항
해당 정보와 게시물은 금융, 투자, 트레이딩 또는 기타 유형의 조언이나 권장 사항으로 간주되지 않으며, 트레이딩뷰에서 제공하거나 보증하는 것이 아닙니다. 자세한 내용은 이용 약관을 참조하세요.
오픈 소스 스크립트
트레이딩뷰의 진정한 정신에 따라, 이 스크립트의 작성자는 이를 오픈소스로 공개하여 트레이더들이 기능을 검토하고 검증할 수 있도록 했습니다. 작성자에게 찬사를 보냅니다! 이 코드는 무료로 사용할 수 있지만, 코드를 재게시하는 경우 하우스 룰이 적용된다는 점을 기억하세요.
면책사항
해당 정보와 게시물은 금융, 투자, 트레이딩 또는 기타 유형의 조언이나 권장 사항으로 간주되지 않으며, 트레이딩뷰에서 제공하거나 보증하는 것이 아닙니다. 자세한 내용은 이용 약관을 참조하세요.