Liquidity Sweeps
By LuxAlgoFeb 8, 2024940 chart adds
Liquidity Sweeps is an indicator on Vela, our next-generation charting platform, written in Pine Script®.

Liquidity Sweeps flags the moment price runs a prior level, grabs the stops beyond it, and snaps back. Every detected 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; 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
Free to use
Run it on Vela. Go further with a paid plan.
- Up to 500 Custom Alerts, with webhook automation
- Up to 10× the chart history of Free
- Orderflow lookback up to full history
- More Quant usage to customize it, plus extra usage when you need it
- Futures data alongside crypto, stocks, forex and commodities
Also works on
Related indicators
All 27 Liquidity Sweep indicatorsRun it on Vela. Make it yours with Quant.
Open this indicator free on Vela, our next-generation charting platform. Then ask Quant, our coding agent built into Vela, to retune it or turn it into a backtested strategy of your own.



