# Liquidity Sweeps

Liquidity Sweeps is an indicator on [Vela](https://vela.luxalgo.com/chart), our next-generation charting platform, written in Pine Script®.

Detects liquidity sweeps of swing-based liquidity levels and boxes the swept range as a tradable Sweep Area. Wick-only raids print as dotted lines and break-and-retest events as dashed lines, so a stop hunt is never confused with a clean breakout. Built for traders who fade raids at prior highs and lows or wait for the retest to confirm.

- Indicator in the LuxAlgo Library, by LuxAlgo, published Feb 8, 2024.
- Access: free.
- Concepts: [Liquidity Sweep](https://www.luxalgo.com/library/concept/liquidity-sweep/) (primary), [Liquidity Pool](https://www.luxalgo.com/library/concept/liquidity-pool/), [Swing High/low](https://www.luxalgo.com/library/concept/swing-high-low/)
- Open on Vela: https://vela.luxalgo.com/chart?pineScriptCodeId=cmpwn353i004dvhsgeych7s7y
- Page: https://www.luxalgo.com/library/indicator/liquidity-sweeps/

**Liquidity Sweeps** flags the moment price runs a prior level, grabs the stops beyond it, and snaps back. Every detected [liquidity sweep](https://www.luxalgo.com/library/concept/liquidity-sweep/) is drawn on the level it raided, and the distance between that level and the wick's extreme is boxed as a Sweep Area, a zone that frequently goes on to act as support, resistance, or an entry window.

Two distinct events qualify. A wick can pierce a liquidity level before price closes back, drawn with a dotted line; or price can close through the level, retest it, and print a wick in the opposite direction, drawn with a dashed line. A thick vertical line marks the bar where the sweep occurred.

## How to Trade the Liquidity Sweeps?

- **Dotted-line sweep**: the level was pierced intrabar and rejected at once, a classic stop raid; look for reversal entries from the resulting Sweep Area.
- **Dashed-line sweep**: the level broke on a close, then held on the retest: price wicked back through it and closed on the breakout side again, so the Sweep Area is colored for the breakout's direction (bullish after a broken high, bearish after a broken low).
- **Sweep Area**: treat the box as support or resistance for entries, targets, and stops until price mitigates it or its bar limit runs out.

Raise the swing period when you want levels built from longer-term [swing highs and lows](https://www.luxalgo.com/library/concept/swing-high-low/); shorter settings keep the focus on recent, faster liquidity.

## Liquidity Sweeps Settings

- **Swings**: the period used for swing detection; increasing it identifies longer-term liquidity levels.
- **Options**: choose **Only Wicks**, **Only Outbreaks & Retest**, or **Wicks + Outbreaks & Retest** to control which sweep types are detected.
- **Extend**: turns the prolonging of Sweep Area boxes on or off.
- **Max Bars**: caps how many bars a Sweep Area keeps extending before it stops updating.

## Frequently Asked Questions

### What is a Sweep Area exactly?

It is the zone between the swept liquidity level and the tip of the sweeping wick. Because that range is where the raid was absorbed, price often reacts there on a revisit, making it a practical reference for entries and stop placement.

### How does Liquidity Sweeps differ from Liquidity Swings?

[Liquidity Swings](https://www.luxalgo.com/library/indicator/liquidity-swings/) builds the map (swing zones with their visit counts and accumulated volume), while Liquidity Sweeps waits for a level to actually be raided and boxes the reaction. Many traders run both: one for context, one for the trigger.

### Is the Liquidity Sweeps indicator free?

Yes. It is a free LuxAlgo Library tool. Add it to your chart from this page, and you can also load it into Quant, our coding agent, right here to experiment with sweep-based ideas. You can also copy the source code from this page and run it anywhere Pine Script® runs.

## Related indicators

- [FVG + Liquidity Sweep + CISD](https://www.luxalgo.com/library/indicator/fvg-liquidity-sweep-cisd/) (Liquidity Sweep): markdown at https://www.luxalgo.com/library/indicator/fvg-liquidity-sweep-cisd.md
- [Pure Price Action Liquidity Sweeps](https://www.luxalgo.com/library/indicator/pure-price-action-liquidity-sweeps/) (Liquidity Sweep): markdown at https://www.luxalgo.com/library/indicator/pure-price-action-liquidity-sweeps.md
- [Session Sweeps](https://www.luxalgo.com/library/indicator/session-sweeps/) (Liquidity Sweep): markdown at https://www.luxalgo.com/library/indicator/session-sweeps.md
- [Sweeps & IFVGs](https://www.luxalgo.com/library/indicator/sweeps-ifvgs/) (Liquidity Sweep): markdown at https://www.luxalgo.com/library/indicator/sweeps-ifvgs.md
- [ICT Concepts](https://www.luxalgo.com/library/indicator/ict-concepts/) (Liquidity Sweep): markdown at https://www.luxalgo.com/library/indicator/ict-concepts.md
- [HTF Sweep Signals](https://www.luxalgo.com/library/indicator/htf-sweep-signals/) (Liquidity Sweep): markdown at https://www.luxalgo.com/library/indicator/htf-sweep-signals.md
- [Liquidity Swings](https://www.luxalgo.com/library/indicator/liquidity-swings/) (Liquidity Pool): markdown at https://www.luxalgo.com/library/indicator/liquidity-swings.md
- [Liquidity Levels](https://www.luxalgo.com/library/indicator/liquidity-levels/) (Liquidity Pool): markdown at https://www.luxalgo.com/library/indicator/liquidity-levels.md

---

Source: https://www.luxalgo.com/library/indicator/liquidity-sweeps/ (LuxAlgo Library). Free to use with attribution: https://www.luxalgo.com/library/license/
