Pure Price Action Liquidity Sweeps

Pure Price Action Liquidity Sweeps

Summary

Pure Price Action Liquidity Sweeps (by LuxAlgo) detects bullish and bearish liquidity sweeps around recent pivot highs/lows. It plots horizontal liquidity lines from the pivot and highlights sweep zones when price wicks through a level and closes back inside. Untouched (unswept) levels remain as dotted lines; swept levels are drawn solid with a small rectangle marking the sweep.

1) Liquidity Sweeps

  • Liquidity pools often sit above swing highs (buy-stop clusters) and below swing lows (sell-stop clusters).

  • A breakout is price closing beyond a level with follow-through.

  • A liquidity sweep (a.k.a. stop run) is price wicking through a prior high/low to trigger stops, then closing back inside the prior range.

  • After a sweep, markets often revert toward the prior range or pivot area; however, strong trends can ignore this and keep pushing.

2) How the Indicator Works

Pivot detection by depth

You control the sensitivity with profundidad:

  • Short-Term (1): periodoPivote = 5, offset = 2

  • Mid-Term (2): periodoPivote = 13, offset = 6

  • Long-Term (3): periodoPivote = 21, offset = 10

A Pivot High is confirmed when high[offset] equals the highest high over periodoPivote.
A Pivot Low is confirmed when low[offset] equals the lowest low over periodoPivote.

Note: Pivots confirm with a delay (offset) by design—this reduces noise.

Sweep vs mitigation logic

For each active pivot level (within limiteBarras):

  • Bearish sweep (above a Pivot High):
    If price wicks above the pivot high but the close is back below it → mark as swept and draw a small rectangle around the sweep candle’s wick (from pivot to max wick).

  • Bullish sweep (below a Pivot Low):
    If price wicks below the pivot low but the close is back above it → mark as swept and draw a small rectangle (from min wick to pivot).

  • Mitigation (level invalidation):
    If a close beyond the level occurs (close above a high-pivot line for bearish side, or close below a low-pivot line for bullish side), the level is considered mitigated and stops plotting.

Drawing rules

  • Unswept & unmitigated: draw dotted horizontal line from the pivot bar to the current bar.

  • Swept: draw solid line from the pivot bar to the sweep bar, plus a semi-transparent rectangle marking the sweep.

  • Visibility & performance: at most maxLineas lines per side are drawn; only pivots within the last limiteBarras bars are considered. Processing happens at bar close.

3) Reading the Signals on Chart

  • Bearish liquidity sweep (above highs)
    You’ll see a solid red line from the pivot high to the sweep bar and a small red rectangle above the line. This suggests a failed breakout/stop run and potential mean reversion or downside reaction.

  • Bullish liquidity sweep (below lows)
    You’ll see a solid green line from the pivot low to the sweep bar and a green rectangle below the line. This hints at a failed breakdown and potential upside reaction.

  • When to be cautious

    • Strong trends can convert sweeps into continuation (sweep + immediate close through the level on subsequent bars).

    • Dense clusters of equal highs/lows can create multiple sweeps—use context and risk controls.

4) Inputs & Defaults (Configuration Guide)

Input Default What it does Impact
profundidad 1 1 = Short-Term, 2 = Mid-Term, 3 = Long-Term Higher values = fewer, stronger pivots (less noise).
maxLineas 40 Max liquidity lines per side to display Prevents clutter; lower for scalping.
limiteBarras 2000 Lifetime of a pivot level (bars) Limits historical processing & drawing.
RedAlcista GreenAlcista BlueAlcista 8, 153, 129 RGB for bullish lines Visual theme for bullish sweeps.
AlphaAlcista 255 Opacity for bullish solid lines Full opacity on swept lines.
AlphaBarridoAlcista 80 Opacity for bullish fill Semi-transparent sweep rectangle.
RedBajista GreenBajista BlueBajista 242, 54, 69 RGB for bearish lines Visual theme for bearish sweeps.
AlphaBajista 255 Opacity for bearish solid lines Full opacity on swept lines.
AlphaBarridoBajista 80 Opacity for bearish fill Semi-transparent sweep rectangle.

Depth mapping (for quick tuning):

  • profundidad = 1periodoPivote = 5, offset = 2 (fast/short-term)

  • profundidad = 2periodoPivote = 13, offset = 6 (balanced/mid-term)

  • profundidad = 3periodoPivote = 21, offset = 10 (slow/long-term)

5) ProBuilder Code (Paste & Go)

Share this

Risk disclosure:

No information on this site is investment advice or a solicitation to buy or sell any financial instrument. Past performance is not indicative of future results. Trading may expose you to risk of loss greater than your deposits and is only suitable for experienced investors who have sufficient financial means to bear such risk.

ProRealTime ITF files and other attachments : How to import ITF files into ProRealTime platform?

PRC is also on YouTube, subscribe to our channel for exclusive content and tutorials

avatar
Register or
Related users ' posts
roccafragius Hi Ivan sorry another question, in order to create a bot that open the trade, I'm tryng to c...
roccafragius ////////////////////////////////////////// 0825-liquidity-test //--------------------------...
freddy382 Hello Ivan, I tested the indicator, which is great, but I only get the volume display for Bi...
Iván no it wasn't
xpe74 could be interesting to do so as visually it works well ....
xpe74 Hi ivan, still working on your indicator. Is there a way (as i'm not a coder) to integrate i...
geroniman merci Ivan, super indicatuer. Les cours vont souvent toucher 50% des zones vertes ou rouges....
Iván Pour ajouter une ligne supplémentaire, il suffit de créer une nouvelle variable, par exemple...
Maurizio A. excellent indicateur ! comment puis-je modifier le code pour afficher uniquement les dernier...
sanchota Mira que has hecho unos cuantos indicadores,pues este los supera a todos.Brillante.
teshmi9z Hola, ¿es posible detectar cuándo el precio regresa a la zona del 61 al 88 % de Fibonacci y,...
NicoGB67 Hola Iván, estoy usando desde hace poco este indicador y a veces cuando estoy esperando un n...
Iván Hola. El comportamiento es normal porque el último fibo es provisional por lo tanto se puede...
Regisnew Bonjour Ivan serait il possible de proposer un screener pour détecter les zones de support v...
bembel242 Hello Ivan ! A belated HNY ! I know late ! Quick question on theis great indicator plse. I u...
gp38super Wow! This is GOLD! Great job!
Iván Hi We could find stocks with sweep on: //PRC_Sweep Institucional //version = 0 //28.0...
inverse Like the way you think Ivan ... :)
ar Bonjour Ivan et merci pour ton partage, Est-il possible d'avoir ce code en ITF
Iván Hi You should delete from the indicator code all drawing functions and all variables not us...
Iván I've created a screener to show [longcondition or shortcondition]
Chrisinobi Hallo Ivan, Danke das ist Perfekt !! Kannst du bitte in der Screener-Bibliothek die itf. hoc...
fazel53 How do i attach this indicator to my mt5 platform?
Nicolas You can't! All indicators here are for ProRealTime trading platform: https://www.prorealtime...
mistersylv What parameter should we change to make another channel appear in the higher or lower time u...
carpentier Joffrey Bonjour à tous, Avant tout merci pour ce travail, cependant je suis bloqué quand je l'insta...
carpentier Joffrey Re, C'est ok, j'ai trouvé mon erreur... Cependant sur quel base peut on calculer son CALC...
Aragorna Hi Nicolas, How is it possible to use it in a higher timeframe plotted on a lower timeframe?...
thierrybl Thanks a lot
B-ling1 Hi Vonasi, I love this indicator - good job! Just one question: If I want the monthly OHLC L...
ezman Copy and paste this code, don't work. error!
datageek How do I change the thickness of the line or change it too dashed lines? Kind regards
lkiklkik NE fonctionne pas ( ou plus ... )
Nicolas il faut modifier toutes les références à top par itop et bottom par ibottom. Ces mots étant ...
Vonasi There is another version of this indicator that can plot the same lines but onto an indicato...
Martin35 Hello Vonasi, do you think it is possible with PRT to code with the same principle as on thi...
mathiasKN Steffen Schmauch • 12/11/2018 # hello Nicolas, can I change the indicator that I only get t...
Nicolas Please open a new topic in the indicator forum and explain there your query, thank you.
upupandaway This seems like a very useful indicator. However, it does not seem to open properly in the c...
mscharstrom Hi @robertogozzi, I really love this indicator. However, I'd like to tinker with it to fit ...
Ahimsa Hi Roberto I cannot thank you enough for writing this code. It could help me more than you ...
Nicolas With PRT v11, you have to click on "price" at the upper left side of the price chart.
Nicolas Sure, I suggest you open a new topic in the forum to discuss about your ideas.
hdgm Bonjour Nicolas, est ce que l'on peut en faire une stratégie de trading automatisée ?
Nicolas Non, pas en utilisant l'indicateur zigzag traditionnel de la plateforme.
Gianluca ok i fixed it i hope is ok like this: //TAC trader zone 10.2 | indicator //01.01.2018 //R...
TAC Bolsa Hello try this new version or view the blog with the new indicators .. https://www.t...
TAC Bolsa Sorry, TAC Trader Zone V2 https://www.tiburonesdealetacorta.com/2018/11/indicador-tac-tr...

Top