OPEN-SOURCE SCRIPT

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.

🔶 USAGE

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.


istantanea

istantanea

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.

istantanea

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, ...

istantanea

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.

istantanea

istantanea

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.

istantanea

istantanea

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.

istantanea

istantanea

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.

🔶 SETTINGS

🔹 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.
ictliquidityliquiditygrabliquiditysweepluxalgopriceactionSupport and ResistancesupportandresistancezonesswingTrend Analysis

Script open-source

In pieno spirito TradingView, l'autore di questo script lo ha pubblicato open-source, in modo che i trader possano comprenderlo e verificarlo. Un saluto all'autore! È possibile utilizzarlo gratuitamente, ma il riutilizzo di questo codice in una pubblicazione è regolato dal nostro Regolamento. Per aggiungerlo al grafico, mettilo tra i preferiti.

Vuoi usare questo script sui tuoi grafici?


Get access to our exclusive tools: luxalgo.com

Join our 150k+ community: discord.gg/lux

All content provided by LuxAlgo is for informational & educational purposes only. Past performance does not guarantee future results.
Anche su:

Declinazione di responsabilità