OPEN-SOURCE SCRIPT
Telah dikemas kini Sweep Detector

The Sweep Detector identifies liquidity sweeps by detecting when a swing high or low is broken only by the wick of a candle, ensuring the body does not close beyond the level. It highlights these sweep points with markers and draws a line from the broken level to the candle that triggered the sweep. This helps traders spot potential reversals and liquidity grabs in the market.
Nota Keluaran
[Sweep Detector] This indicator detects liquidity sweeps at key swing highs and lows. It visually marks sweeps on the chart and triggers alerts when they occur.
[Features]
- Detects swing highs and swing lows.
- Identifies bullish and bearish sweeps.
- Plots markers and lines for visual confirmation.
- **New:** Alerts now trigger correctly when a sweep happens.
[Alerts]
- **Bullish Sweep:** When price wicks below a previous swing low but closes above it.
- **Bearish Sweep:** When price wicks above a previous swing high but closes below it.
[Usage]
- Add the indicator to your chart.
- Enable alerts under the "Create Alert" menu and select "Bullish Sweep" or "Bearish Sweep."
Nota Keluaran
🆕 Update - Added Combined Sweep Alert- New Alert: A third alert option that triggers when either a bullish or bearish sweep occurs.
- Allows traders to get notified of both types of sweeps with a single alert setup.
- The original alerts for individual bullish and bearish sweeps remain available.
---
Sweep Detector - Identify Liquidity Grabs
🔍 Overview
This indicator helps traders detect liquidity sweeps, where price wicks above or below key swing levels before reversing. These sweeps often signal potential reversals or stop hunts by institutions.
📌 How It Works
- Identifies Swing Highs & Lows
- Detects Bearish Sweeps (price wicks above a previous high but closes below it)
- Detects Bullish Sweeps (price wicks below a previous low but closes above it)
- Plots visual markers (🔴 for bearish sweeps, 🟢 for bullish sweeps)
- Draws horizontal lines from the broken level for clarity
📢 Alerts Available
- Bearish Sweep Alert – When a high sweep is detected
- Bullish Sweep Alert – When a low sweep is detected
- NEW: Combined Sweep Alert – Triggers when either a bullish or bearish sweep occurs
🎯 Use Cases
- Spot liquidity grabs before price reverses
- Identify stop hunts and fakeouts
- Confirm potential entry points in smart money concepts (SMC)
🔔 Set alerts to get notified of key liquidity sweeps in real time! 🚀
Skrip sumber terbuka
Dalam semangat sebenar TradingView, pencipta skrip ini telah menjadikannya sumber terbuka supaya pedagang dapat menilai dan mengesahkan kefungsiannya. Terima kasih kepada penulis! Walaupun anda boleh menggunakannya secara percuma, ingat bahawa menerbitkan semula kod ini adalah tertakluk kepada Peraturan Dalaman kami.
Penafian
Maklumat dan penerbitan adalah tidak dimaksudkan untuk menjadi, dan tidak membentuk, nasihat untuk kewangan, pelaburan, perdagangan dan jenis-jenis lain atau cadangan yang dibekalkan atau disahkan oleh TradingView. Baca dengan lebih lanjut di Terma Penggunaan.
Skrip sumber terbuka
Dalam semangat sebenar TradingView, pencipta skrip ini telah menjadikannya sumber terbuka supaya pedagang dapat menilai dan mengesahkan kefungsiannya. Terima kasih kepada penulis! Walaupun anda boleh menggunakannya secara percuma, ingat bahawa menerbitkan semula kod ini adalah tertakluk kepada Peraturan Dalaman kami.
Penafian
Maklumat dan penerbitan adalah tidak dimaksudkan untuk menjadi, dan tidak membentuk, nasihat untuk kewangan, pelaburan, perdagangan dan jenis-jenis lain atau cadangan yang dibekalkan atau disahkan oleh TradingView. Baca dengan lebih lanjut di Terma Penggunaan.