Liquidity Swings

Liquidity Swings

1. Introduction

In the world of technical analysis, understanding where liquidity clusters can offer a powerful edge. These zones, often located around swing highs and lows, reveal areas where price has previously reacted strongly—either through rejection or breakthrough. The Liquidity Swings indicator (by LuxAlgo) is designed to visualize these key price zones, highlighting areas of potential support and resistance based on historical pivot points and volume interaction.

2. How the Indicator Works

The Liquidity Swings indicator identifies pivot highs and pivot lows based on a configurable lookback period. Once these pivot points are detected, the script begins to monitor how price interacts with those levels:

  • Touches: When price enters the defined liquidity zone but does not break through.

  • Crosses: When price decisively breaks beyond the liquidity zone.

For each pivot, the indicator keeps track of:

  • The number of touches.

  • The volume during these touches.

  • Whether the zone was eventually broken.

Once a zone is broken or has received enough interactions (touches), it is visualized on the chart with dynamic segments and rectangles to highlight the area.

This dual-layered logic allows traders to differentiate between respected zones (untouched) and weakened or broken zones (crossed).

3. Indicator Parameters

The indicator offers several parameters that allow for full customization:

  • length (default: 14)
    The number of bars used to identify pivot highs/lows. Higher values make the indicator detect more significant, less frequent pivots.

  • areaType (default: 1)
    Defines how the liquidity zone is drawn:

    • 1: Wick extremities (from high to candle body).

    • 2: Full range (from high to low).

  • filterValue (default: 2)
    Minimum number of touches required for a zone to be displayed.

Display Settings

  • showTop (default: 1)
    Enable or disable resistance zones (pivot highs).

  • topAreaAlpha (default: 30)
    Transparency level for the red resistance area (0–255).

  • showBtm (default: 1)
    Enable or disable support zones (pivot lows).

  • btmAreaAlpha (default: 30)
    Transparency level for the green support area (0–255).

4. Chart Interpretation

Once applied, the indicator highlights liquidity zones using a color-coded system:

  • Resistance Zones (Pivot Highs):

    • Red dotted line: broken liquidity level.

    • Red rectangle: area from top wick to body or full range.

    • Label above the zone shows total volume accumulated from touches.

  • Support Zones (Pivot Lows):

    • Green dotted line: broken liquidity level.

    • Green rectangle: support area.

    • Label below the zone shows volume data.

If the zone hasn’t been broken but has sufficient touch count, the indicator draws the segment until the current bar, allowing traders to assess ongoing respect for the zone.

This allows for intuitive visualization of both historical significance and current relevance of price zones.

5. Configuration Tips

  • Increase filterValue to 3 or more to reduce noise and focus on high-importance zones.

  • If you’re only interested in resistance, disable showBtm, and vice versa.

  • Adjust topAreaAlpha and btmAreaAlpha for better integration with your chart’s background.

6. ProRealTime Code

7. Conclusion

The Liquidity Swings indicator offers a visually intuitive and algorithmically robust way to detect and analyze areas of significant price interaction. By combining pivot structure with touch count and volume filtering, it enables traders to better anticipate where the market is likely to find support or resistance.

Whether used standalone or in combination with other tools, this indicator can become an essential part of your technical analysis workflow.

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

  1. roccafragius • 8 hours ago #

    Hi Ivan, this indicator is great!!! Thank you so much! Do you think it is usable to create a bot starting from this indicator? Where do you see the trigger to open/close the trade? Thank you! Franco

avatar
Register or

Likes

avatar
Related users ' posts
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.
Iván Hola. Sí se puede, tendrás que hacerlo programando. Así, eliminando toda la parte de código ...
Cyril18 Thank you Ivan, great job Would it be possible to add in the sript the possibility of conne...
Jrmjrm Bonjour, pourriez vous m'aider pour la commande suivante (je n'arrive pas à call l'indicateu...
Iván Hi, Sorry, but what do you mean?
luiskohnen Hola, queria saber si el indicador repinta, porque a mi me parecio que si. Saludos y gracias...
Diamant Bonsoir, L'un d'entre vous peut-il me donner les définissions de LL-HH-LH et HL. Merci d'av...
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 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...
Noobywan (My apologies for unformatted code, the formatting only works in forum or library posts not ...
Noobywan Hi FXTT, no problem for requests (as long as no one requests me singing), just usually it’s ...
JC_Bywan Bug fix at line 38, should be: if changebarre or (opentime[1]=start) then (same as in ...
mistersylv What parameter should we change to make another channel appear in the higher or lower time u...
Fabian Hi Thomas, thanks for your explanations. Which indicator do you use in the screenshot ...
Thomas Thats On Balance Volume and Bollinger or SMA or what you want. It shows me the volume flow. ...
bertrandpinoy @MAKSIDE I would be grateful if you send me your version. have a nice day
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?...
Lighthouse
6 years ago
Swinglines
v10.3
Swinglines
2
Indicators
Ciccio New version
Ciccio New version 2.0 on the original Forum thread
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!
Nicolas
6 years ago
sophia_etoille83 Merci beaucoup Nicolas, En effet l'ajout du close affiche le même graph, je parlais d'af...
Nicolas Non tu ne parlais pas de cela ?! Il fallait afficher l'indicateur sous le graphe principal e...
sophia_etoille83 Ok Nicolas je vais le poster. Je me suis mal exprimée alors. Je refais un post. Merci Bel...
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 ...
Nicolas change the lastline with: RETURN lastsig and check if lastsig change its value with the a...
nectouxg Hello Nicolas, I will try tonight when I get home, just one last question, I trade the DA...
FXtonio Bonjour, j'ai un problème avec le code, il me dit que ce n'est pas correct ligne 26-27-28: ...
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...
abhay I am getting a shading between the lines, how can I avoid that. I just want to see lines as ...
Vonasi Delete the 'Color Zone' in the indicator settings window.

Top