Liquidity Sweeps [LuxAlgo]

The Liquidity Sweeps indicator detects the presence of liquidity sweeps on the user's chart, while also providing potential areas of support/resistance or entry when Liquidity levels are taken.

In the event of a Liquidity Sweep a Sweep Area is created which may provide further areas of interest.


A Liquidity Sweep occurs when the price breaks through a liquidity level (further referred to as LqL), after which the price returns below/above the liquidity level, forming a wick.

The script provides 2 options when this can happen:

  1. A wick passes a LqL after which the price quickly returns.
  2. First the closing price breaks through a LqL. After a while, the price retests the LqL and forms a wick in the opposite direction.

The examples above show a bullish and bearish scenario of "a wick passing through an LqL where the price quickly comes back". This type of Liquidity Sweep is represented by a dotted line.

The following example shows a broken LqL, where the price retests the Liquidity zone and bounces back.

Instead of a dotted line, this type of Liquidity Sweep is represented by a dashed line.

When a Liquidity Sweep takes place, this is indicated by highlighting the "wick-LqL" distance. This distance is also the basis for the Sweep Area (see next sub-section). A small 3-bar long dotted line starts from the opposite wick as an extra aid to determine potential support/resistance/entry, ...

Colors can be set in the settings (here yellow and aqua blue instead of default colors for clarity).

🔹 Sweep Areas

The distance between the LqL and the maximum limit of the wick forms a Sweep Area, which can provide a potential support/resistance or entry zone.

These examples show both types of Liquidity Sweeps, followed by a box indicating the Sweep Area.

When the Sweep Area is mitigated or a certain amount of bars has passed (Settings - 'Max bars'), the boxes will no longer be updated.

In this case, the 'Trigger' label shows the bar where the high crossed a LqL, after which a red box starts between LqL and high.

The low of the 'Trigger' bar is the starting point of a short dotted line. Next to the 'Trigger bar' the high touches the Sweep Area before returning, providing a potential short entry. One bar further, another entry opportunity presents itself when the price breaks the small dotted line.

In the following bullish example, not only do we see opportunities when theLqL has been swept, but the following Sweep Area provides some potential entries.

The small green dotted lines also act as a guide where the price breaks above, then forms a small range, after which the price continues in an upward direction.

Here, the initial trigger on the left forms a Sweep Area that is quickly broken. However, the small green line provides a potential entry area later on. The price moves in a short channel before breaking above the LqL (green dashed line), providing more potential entries. Price retests this LqL, and goes below this level. The price remained around the previously formed channel, after which the price resumed its upward trend.


🔹 Liquidity Sweeps

  • Swings: Period used for the swing detection, with higher values returning longer term Liquidity Levels.
  • Options:
    - Only Wicks: Only detects a Liquidity Sweep when a wick sweeps a previous wick
    - Only Outbreaks & Retest: Only detects a Liquidity Sweep when the price breaks a Liquidity Level, returns & retests the Liquidity Level, and forms a wick in the opposite direction.
    - Wicks + Outbreaks & Retest: Both options can be detected.

🔹 Sweep Area

  • Extend: Enables/Disables extension of the Sweep Area boxes.
  • Max Bars: Limit the extension to a certain number of bars.
  • Color Sweep Area box.

Get access to our exclusive tools:

Join our 150k+ community:

All content provided by LuxAlgo is for informational & educational purposes only. Past performance does not guarantee future results.
Skrypt open-source

Zgodnie z prawdziwym duchem TradingView, autor tego skryptu opublikował go jako open-source, aby traderzy mogli go zrozumieć i zweryfikować. Brawo dla autora! Możesz używać go za darmo, ale ponowne wykorzystanie tego kodu w publikacji jest regulowane przez Dobre Praktyki. Możesz go oznaczyć jako ulubione, aby użyć go na wykresie.

Wyłączenie odpowiedzialności

Informacje i publikacje przygotowane przez TradingView lub jego użytkowników, prezentowane na tej stronie, nie stanowią rekomendacji ani porad handlowych, inwestycyjnych i finansowych i nie powinny być w ten sposób traktowane ani wykorzystywane. Więcej informacji na ten temat znajdziesz w naszym Regulaminie.

Chcesz użyć tego skryptu na wykresie?