OPEN-SOURCE SCRIPT
BSL / SSL Liquidity

**BSL / SSL Liquidity**
---
**Overview**
A clean and simple liquidity level detector that automatically marks Buy Side Liquidity (BSL) and Sell Side Liquidity (SSL) levels on the chart based on swing highs and lows.
---
**What is BSL and SSL?**
- **Buy Side Liquidity (BSL)** — rests above swing highs where buy stop orders accumulate. Smart money targets these levels to fill sell orders before reversing.
- **Sell Side Liquidity (SSL)** — rests below swing lows where sell stop orders accumulate. Smart money targets these levels to fill buy orders before reversing.
---
**Key Features**
- **Candle Close Based** — levels are only swept and removed when price **closes** above a BSL or below an SSL. Wicks that breach a level but close back inside are ignored, keeping valid levels intact.
- **User Defined Level Count** — control how many recent swing points are displayed on the chart at any time via the Max Levels input.
- **Auto Cleanup** — swept levels are automatically removed from the chart the moment price closes through them, keeping the chart clean and relevant.
---
**How to Use**
- **BSL** — potential upside target or short entry zone when swept
- **SSL** — potential downside target or long entry zone when swept
- Combine with higher timeframe bias and confluence factors for best results
---
**Best Timeframes**
Works on all timeframes. Most effective on 1H and above for swing level identification.
---
**Overview**
A clean and simple liquidity level detector that automatically marks Buy Side Liquidity (BSL) and Sell Side Liquidity (SSL) levels on the chart based on swing highs and lows.
---
**What is BSL and SSL?**
- **Buy Side Liquidity (BSL)** — rests above swing highs where buy stop orders accumulate. Smart money targets these levels to fill sell orders before reversing.
- **Sell Side Liquidity (SSL)** — rests below swing lows where sell stop orders accumulate. Smart money targets these levels to fill buy orders before reversing.
---
**Key Features**
- **Candle Close Based** — levels are only swept and removed when price **closes** above a BSL or below an SSL. Wicks that breach a level but close back inside are ignored, keeping valid levels intact.
- **User Defined Level Count** — control how many recent swing points are displayed on the chart at any time via the Max Levels input.
- **Auto Cleanup** — swept levels are automatically removed from the chart the moment price closes through them, keeping the chart clean and relevant.
---
**How to Use**
- **BSL** — potential upside target or short entry zone when swept
- **SSL** — potential downside target or long entry zone when swept
- Combine with higher timeframe bias and confluence factors for best results
---
**Best Timeframes**
Works on all timeframes. Most effective on 1H and above for swing level identification.
Mã nguồn mở
Theo đúng tinh thần TradingView, tác giả của tập lệnh này đã công bố nó dưới dạng mã nguồn mở, để các nhà giao dịch có thể xem xét và xác minh chức năng. Chúc mừng tác giả! Mặc dù bạn có thể sử dụng miễn phí, hãy nhớ rằng việc công bố lại mã phải tuân theo Nội quy.
Thông báo miễn trừ trách nhiệm
Thông tin và các ấn phẩm này không nhằm mục đích, và không cấu thành, lời khuyên hoặc khuyến nghị về tài chính, đầu tư, giao dịch hay các loại khác do TradingView cung cấp hoặc xác nhận. Đọc thêm tại Điều khoản Sử dụng.
Mã nguồn mở
Theo đúng tinh thần TradingView, tác giả của tập lệnh này đã công bố nó dưới dạng mã nguồn mở, để các nhà giao dịch có thể xem xét và xác minh chức năng. Chúc mừng tác giả! Mặc dù bạn có thể sử dụng miễn phí, hãy nhớ rằng việc công bố lại mã phải tuân theo Nội quy.
Thông báo miễn trừ trách nhiệm
Thông tin và các ấn phẩm này không nhằm mục đích, và không cấu thành, lời khuyên hoặc khuyến nghị về tài chính, đầu tư, giao dịch hay các loại khác do TradingView cung cấp hoặc xác nhận. Đọc thêm tại Điều khoản Sử dụng.