OPEN-SOURCE SCRIPT
EonMetrics Liquidity Toolkit

Liquidity Toolkit by EonMetrics
WHAT IT DOES
Whenever price makes a swing high or a swing low, a cluster of pending stop orders tends to sit just beyond it — buy-stop orders resting just above a swing high, and sell-stop orders resting just below a swing low. This is what traders call "liquidity." Large market participants often push price briefly through one of these levels to trigger those resting orders (grabbing the liquidity) before reversing back the other way — which is why these levels frequently mark turning points, not just breakout points.
This indicator finds and tracks these levels automatically:
- Buyside Liquidity (BSL) — the resting buy-stop cluster above a swing high, drawn as a line until price reaches it.
- Sellside Liquidity (SSL) — the resting sell-stop cluster below a swing low, drawn the same way.
- Equal Highs / Equal Lows (EQH / EQL) — when two or more swing highs (or lows) line up at almost the same price, that's a bigger, more obvious pool of resting orders (a double or triple top/bottom) — a stronger magnet for price than a single level.
- Liquidity Sweep — the actual moment a level gets taken: a wick pierces through it and price closes back on the original side. This can optionally require above-average volume on that candle, so you only see genuine, forceful grabs instead of every minor wick poke.
- Previous Day/Week High & Low (PDH / PDL / PWH / PWL) — the same tracking and sweep logic applied to yesterday's and last week's high/low, which tend to be some of the largest, most-watched liquidity targets of all.



Every level also shows a strength tag — the actual volume traded when it formed, plus how many times average that is (e.g. "340k (2.3x)") — so you can tell a level that formed with real conviction from one that formed on a quiet, unremarkable candle.

HOW TO ACTUALLY USE IT (STEP BY STEP)
1. Decide which side you're watching, then wait for the actual sweep — don't trade a level just because it's sitting there on the chart.
- Looking to go short? Find a Buyside Liquidity (BSL) level (or an Equal High) sitting above the current price, and wait for the sweep marker to appear — a wick punches through it, then price closes back below it.
- Looking to go long? Find a Sellside Liquidity (SSL) level (or an Equal Low) sitting below the current price, and wait for the sweep marker there — a wick punches through it, then price closes back above it.
2. Give extra weight to Equal Highs/Lows (marked EQH/EQL, especially ones with a "x2" or "x3" touch count) and to the Previous Day/Week High/Low lines — these are the bigger, more heavily-defended levels, so a sweep there tends to matter more than a sweep of a single minor swing.
3. Check the strength label on the swept level before acting — a sweep that happened on 2x average volume or higher is a far more convincing signal of a genuine reversal than one on below-average volume.
4. Treat the sweep as your trigger, not the resting level itself: a Buyside sweep points you toward looking for shorts, a Sellside sweep points you toward looking for longs.
5. Levels that get swept turn gray and dotted automatically — that tells you at a glance which levels have already been taken and are no longer valid targets, versus which ones are still resting and still ahead of price.
EVERY SETTING EXPLAINED
General group
- Swing Length (bars) — how many candles on each side must be lower/higher for a point to count as a real swing. A bigger number only catches major, more significant levels; a smaller number catches minor ones (more levels, more frequently).
- Max Levels Tracked — the maximum number of levels kept on the chart at once. Once you go over this, the oldest one is dropped. Lower this for a cleaner chart and better performance.
Buyside / Sellside Liquidity group
- Show BSL / SSL Levels — master on/off switch for these lines.
- Buyside (BSL) Color / Sellside (SSL) Color — line colors for each type.
- Line Width — thickness of the level lines.
- Line Style — solid, dashed, or dotted.
Equal Highs / Equal Lows group
- Highlight Equal Highs / Lows — turns on the automatic merging of two nearby swing highs (or lows) into one highlighted EQH/EQL pool.
- Equality Tolerance (x ATR) — how close two levels need to be in price (relative to recent volatility) to count as "equal." A larger value merges more loosely (more pairs count as equal); a smaller value requires them to be nearly identical.
- Equal High (EQH) Color / Equal Low (EQL) Color.
- Extend EQH/EQL Right — when off (default), an equal pool is just drawn as a short connector between the two matching swings. When on, it's also projected forward to the right as a live target, the same way single BSL/SSL levels are.
Level Strength group
- Show Level Strength — adds the volume text tag to every level (raw volume plus the multiple vs. the recent average, e.g. "340k (2.3x)"). Equal pools also show how many times that price has been touched (e.g. "EQH x3"). Turn this off for a cleaner look with just the lines and BSL/SSL/EQH/EQL tags.
Liquidity Sweep group
- Show Sweep Markers — turns on the small marker that appears the moment a level is swept.
- Enable Volume Filter — when on, a sweep is only confirmed if the candle that caused it traded on unusually high volume, filtering out weak/low-conviction wicks.
- Volume Multiplier vs. Average — how many times above the average volume that candle must trade to confirm a sweep. Only used when the Volume Filter above is on.
- Volume Lookback (bars) — how many past candles are averaged together to calculate that "average volume" baseline.
- Swept Level Color — the color a level turns once it has been taken, so already-used levels are still visible but clearly distinguished from live ones.
Higher-Timeframe Liquidity (PDH / PDL / PWH / PWL) group
- Show Previous Day High / Low — turns on tracking of yesterday's high and low as full liquidity levels (works on intraday charts only).
- Show Previous Week High / Low — turns on tracking of last week's high and low the same way (works on intraday and daily charts).
- Prev Day (PDH / PDL) Color / Prev Week (PWH / PWL) Color.
- HTF Line Width — thickness of these lines. Thicker by default than regular swing levels, since they're generally the more important reference points.
Labels group
- Show Level Labels — master switch for all the small text tags (BSL / SSL / EQH / EQL) shown on each level.
- Label Size — Tiny, Small, or Normal text size for those tags.
WHAT IT DOES
Whenever price makes a swing high or a swing low, a cluster of pending stop orders tends to sit just beyond it — buy-stop orders resting just above a swing high, and sell-stop orders resting just below a swing low. This is what traders call "liquidity." Large market participants often push price briefly through one of these levels to trigger those resting orders (grabbing the liquidity) before reversing back the other way — which is why these levels frequently mark turning points, not just breakout points.
This indicator finds and tracks these levels automatically:
- Buyside Liquidity (BSL) — the resting buy-stop cluster above a swing high, drawn as a line until price reaches it.
- Sellside Liquidity (SSL) — the resting sell-stop cluster below a swing low, drawn the same way.
- Equal Highs / Equal Lows (EQH / EQL) — when two or more swing highs (or lows) line up at almost the same price, that's a bigger, more obvious pool of resting orders (a double or triple top/bottom) — a stronger magnet for price than a single level.
- Liquidity Sweep — the actual moment a level gets taken: a wick pierces through it and price closes back on the original side. This can optionally require above-average volume on that candle, so you only see genuine, forceful grabs instead of every minor wick poke.
- Previous Day/Week High & Low (PDH / PDL / PWH / PWL) — the same tracking and sweep logic applied to yesterday's and last week's high/low, which tend to be some of the largest, most-watched liquidity targets of all.
Every level also shows a strength tag — the actual volume traded when it formed, plus how many times average that is (e.g. "340k (2.3x)") — so you can tell a level that formed with real conviction from one that formed on a quiet, unremarkable candle.
HOW TO ACTUALLY USE IT (STEP BY STEP)
1. Decide which side you're watching, then wait for the actual sweep — don't trade a level just because it's sitting there on the chart.
- Looking to go short? Find a Buyside Liquidity (BSL) level (or an Equal High) sitting above the current price, and wait for the sweep marker to appear — a wick punches through it, then price closes back below it.
- Looking to go long? Find a Sellside Liquidity (SSL) level (or an Equal Low) sitting below the current price, and wait for the sweep marker there — a wick punches through it, then price closes back above it.
2. Give extra weight to Equal Highs/Lows (marked EQH/EQL, especially ones with a "x2" or "x3" touch count) and to the Previous Day/Week High/Low lines — these are the bigger, more heavily-defended levels, so a sweep there tends to matter more than a sweep of a single minor swing.
3. Check the strength label on the swept level before acting — a sweep that happened on 2x average volume or higher is a far more convincing signal of a genuine reversal than one on below-average volume.
4. Treat the sweep as your trigger, not the resting level itself: a Buyside sweep points you toward looking for shorts, a Sellside sweep points you toward looking for longs.
5. Levels that get swept turn gray and dotted automatically — that tells you at a glance which levels have already been taken and are no longer valid targets, versus which ones are still resting and still ahead of price.
EVERY SETTING EXPLAINED
General group
- Swing Length (bars) — how many candles on each side must be lower/higher for a point to count as a real swing. A bigger number only catches major, more significant levels; a smaller number catches minor ones (more levels, more frequently).
- Max Levels Tracked — the maximum number of levels kept on the chart at once. Once you go over this, the oldest one is dropped. Lower this for a cleaner chart and better performance.
Buyside / Sellside Liquidity group
- Show BSL / SSL Levels — master on/off switch for these lines.
- Buyside (BSL) Color / Sellside (SSL) Color — line colors for each type.
- Line Width — thickness of the level lines.
- Line Style — solid, dashed, or dotted.
Equal Highs / Equal Lows group
- Highlight Equal Highs / Lows — turns on the automatic merging of two nearby swing highs (or lows) into one highlighted EQH/EQL pool.
- Equality Tolerance (x ATR) — how close two levels need to be in price (relative to recent volatility) to count as "equal." A larger value merges more loosely (more pairs count as equal); a smaller value requires them to be nearly identical.
- Equal High (EQH) Color / Equal Low (EQL) Color.
- Extend EQH/EQL Right — when off (default), an equal pool is just drawn as a short connector between the two matching swings. When on, it's also projected forward to the right as a live target, the same way single BSL/SSL levels are.
Level Strength group
- Show Level Strength — adds the volume text tag to every level (raw volume plus the multiple vs. the recent average, e.g. "340k (2.3x)"). Equal pools also show how many times that price has been touched (e.g. "EQH x3"). Turn this off for a cleaner look with just the lines and BSL/SSL/EQH/EQL tags.
Liquidity Sweep group
- Show Sweep Markers — turns on the small marker that appears the moment a level is swept.
- Enable Volume Filter — when on, a sweep is only confirmed if the candle that caused it traded on unusually high volume, filtering out weak/low-conviction wicks.
- Volume Multiplier vs. Average — how many times above the average volume that candle must trade to confirm a sweep. Only used when the Volume Filter above is on.
- Volume Lookback (bars) — how many past candles are averaged together to calculate that "average volume" baseline.
- Swept Level Color — the color a level turns once it has been taken, so already-used levels are still visible but clearly distinguished from live ones.
Higher-Timeframe Liquidity (PDH / PDL / PWH / PWL) group
- Show Previous Day High / Low — turns on tracking of yesterday's high and low as full liquidity levels (works on intraday charts only).
- Show Previous Week High / Low — turns on tracking of last week's high and low the same way (works on intraday and daily charts).
- Prev Day (PDH / PDL) Color / Prev Week (PWH / PWL) Color.
- HTF Line Width — thickness of these lines. Thicker by default than regular swing levels, since they're generally the more important reference points.
Labels group
- Show Level Labels — master switch for all the small text tags (BSL / SSL / EQH / EQL) shown on each level.
- Label Size — Tiny, Small, or Normal text size for those tags.
Script de código abierto
Fiel al espíritu de TradingView, el creador de este script lo ha convertido en código abierto, para que los traders puedan revisar y verificar su funcionalidad. ¡Enhorabuena al autor! Aunque puede utilizarlo de forma gratuita, recuerde que cualquier republicación del código está sujeta a nuestras Normas internas.
Exención de responsabilidad
La información y las publicaciones no constituyen, ni deben considerarse como, asesoramiento o recomendaciones financieras, de inversión, de trading u otro tipo, proporcionadas o respaldadas por TradingView. Obtenga más información en Condiciones de uso.
Script de código abierto
Fiel al espíritu de TradingView, el creador de este script lo ha convertido en código abierto, para que los traders puedan revisar y verificar su funcionalidad. ¡Enhorabuena al autor! Aunque puede utilizarlo de forma gratuita, recuerde que cualquier republicación del código está sujeta a nuestras Normas internas.
Exención de responsabilidad
La información y las publicaciones no constituyen, ni deben considerarse como, asesoramiento o recomendaciones financieras, de inversión, de trading u otro tipo, proporcionadas o respaldadas por TradingView. Obtenga más información en Condiciones de uso.