OPEN-SOURCE SCRIPT
Unswept Equal Highs/Lows MTF + Diagonals

UNSWEPT EQUAL HIGHS/LOWS MTF + DIAGONALS — an engineered-liquidity map
WHAT IT DOES
This indicator maps the liquidity that is still sitting on the chart right now.
It finds places where two or more pivot lows (or pivot highs) printed at nearly the same price — equal lows / equal highs — and keeps that level on the chart only while it remains UNSWEPT. The moment price trades through it, the level is removed (or left behind as a faded ghost line, if you prefer). Clusters of equal lows and equal highs are where stop orders stack up — what many traders call "engineered liquidity". While such a level is intact it tends to behave as support or resistance; once it is swept, that fuel is spent. This indicator shows you, at a glance, which levels are still loaded and which have already been raided.
It does the same job on a second, higher timeframe at once (e.g. 1m chart + 1h levels), can merge the two into confluence zones, and can additionally draw diagonal trendlines built from pivots that price has never violated.
HOW IT WORKS
• Touch — a confirmed pivot low/high (left/right bars configurable). Pivots within a tolerance of each other (ATR-scaled or fixed ticks) stack into one level.
• Level — drawn at the extreme of its touches once it has the minimum number of touches (default 2) and price has never swept it.
• Sweep — price trades beyond the level by more than the tolerance (or by any single tick, in strict mode). Swept levels vanish or stay as faded dashed lines.
• Labels — each level shows "live/total ×". Total = how many pivots built the level. Live = how many of those individual lows/highs have NOT yet been traded through. A label like 3/4× means four lows formed the level and three still have their stops resting below. 0/4× means the level survives on tolerance but every individual low has already been picked off — drained liquidity.
• Higher timeframe — chart bars are aggregated into HTF bars internally (no security() repaint tricks), pivots are detected on those HTF bars, and the same logic applies. HTF levels draw thicker, labels carry a TF prefix ("1h 2/3×"), and their sweeps are checked on every chart bar, so an intra-hour raid registers the minute it happens.
• Confluence — when a chart-TF level and an HTF level of the same side overlap, a shaded zone wraps both. The zone lives until either member is swept. Toggle it in settings.
• Diagonals (chart TF only) — new pivots are paired with recent pivots into candidate trendlines; a candidate is only accepted if price never violated the line between the anchors, and it is only drawn after a third pivot confirms it (configurable).
HOW TO READ THE CHART
• Solid line = unswept level (thicker = higher timeframe)
• Dotted line = unbroken diagonal
• Dashed faded line = swept level (optional)
• Shaded box = chart-TF + HTF confluence zone
• Teal = lows/support side, red = highs/resistance side (both configurable)
HOW IT CAN BE USED
• Support / resistance entries — unswept multi-touch levels are objective S/R. In ranging conditions, price rotating between an intact equal-lows level and an intact equal-highs level gives you both ends of the box.
• False breakout / sweep-and-reclaim entries — a sweep of a multi-touch level that immediately reclaims is the classic liquidity-grab reversal. The sweep alerts fire exactly at that moment; the faded ghost line shows you where the raid happened.
• Breakout entries — a decisive break of a heavily-touched level means real stops were consumed; the old level zone becomes the natural retest area for continuation entries.
• Reading engineered liquidity — the live/total counter tells you how much stop fuel is still resting at each level. A fresh 4/4× level under price is a very different target than a drained 0/4×. Confluence zones (e.g. 1m + 1h equal lows overlapping) mark where that fuel is stacked across timeframes.
None of this is a signal by itself — the indicator shows structure and liquidity state; the trade decision, direction filter and risk management are yours. Test any idea before trading it.
ALERTS
14 alert conditions: level formed / level swept for lows and highs on both timeframes, confluence formed / swept, and diagonal formed / broken per side.
HONEST LIMITATIONS
• A touch only registers after pivot confirmation (right bars — in HTF bars for HTF levels, so a 1h touch with right=3 confirms about 3 hours after the pivot). Levels are back-drawn to the first touch; sweeps register immediately, without lag.
• Diagonal anchors are fixed at creation; the line is not re-fitted through later touches.
• The chart timeframe must be below the selected higher timeframe (e.g. chart 1m, HTF 60).
CREDITS
Created with the assistance of Claude Fable 5 (Anthropic's AI model). Concept, trading logic and testing by the author.
For education and research only. Nothing here is financial advice, and no performance is implied or promised.
WHAT IT DOES
This indicator maps the liquidity that is still sitting on the chart right now.
It finds places where two or more pivot lows (or pivot highs) printed at nearly the same price — equal lows / equal highs — and keeps that level on the chart only while it remains UNSWEPT. The moment price trades through it, the level is removed (or left behind as a faded ghost line, if you prefer). Clusters of equal lows and equal highs are where stop orders stack up — what many traders call "engineered liquidity". While such a level is intact it tends to behave as support or resistance; once it is swept, that fuel is spent. This indicator shows you, at a glance, which levels are still loaded and which have already been raided.
It does the same job on a second, higher timeframe at once (e.g. 1m chart + 1h levels), can merge the two into confluence zones, and can additionally draw diagonal trendlines built from pivots that price has never violated.
HOW IT WORKS
• Touch — a confirmed pivot low/high (left/right bars configurable). Pivots within a tolerance of each other (ATR-scaled or fixed ticks) stack into one level.
• Level — drawn at the extreme of its touches once it has the minimum number of touches (default 2) and price has never swept it.
• Sweep — price trades beyond the level by more than the tolerance (or by any single tick, in strict mode). Swept levels vanish or stay as faded dashed lines.
• Labels — each level shows "live/total ×". Total = how many pivots built the level. Live = how many of those individual lows/highs have NOT yet been traded through. A label like 3/4× means four lows formed the level and three still have their stops resting below. 0/4× means the level survives on tolerance but every individual low has already been picked off — drained liquidity.
• Higher timeframe — chart bars are aggregated into HTF bars internally (no security() repaint tricks), pivots are detected on those HTF bars, and the same logic applies. HTF levels draw thicker, labels carry a TF prefix ("1h 2/3×"), and their sweeps are checked on every chart bar, so an intra-hour raid registers the minute it happens.
• Confluence — when a chart-TF level and an HTF level of the same side overlap, a shaded zone wraps both. The zone lives until either member is swept. Toggle it in settings.
• Diagonals (chart TF only) — new pivots are paired with recent pivots into candidate trendlines; a candidate is only accepted if price never violated the line between the anchors, and it is only drawn after a third pivot confirms it (configurable).
HOW TO READ THE CHART
• Solid line = unswept level (thicker = higher timeframe)
• Dotted line = unbroken diagonal
• Dashed faded line = swept level (optional)
• Shaded box = chart-TF + HTF confluence zone
• Teal = lows/support side, red = highs/resistance side (both configurable)
HOW IT CAN BE USED
• Support / resistance entries — unswept multi-touch levels are objective S/R. In ranging conditions, price rotating between an intact equal-lows level and an intact equal-highs level gives you both ends of the box.
• False breakout / sweep-and-reclaim entries — a sweep of a multi-touch level that immediately reclaims is the classic liquidity-grab reversal. The sweep alerts fire exactly at that moment; the faded ghost line shows you where the raid happened.
• Breakout entries — a decisive break of a heavily-touched level means real stops were consumed; the old level zone becomes the natural retest area for continuation entries.
• Reading engineered liquidity — the live/total counter tells you how much stop fuel is still resting at each level. A fresh 4/4× level under price is a very different target than a drained 0/4×. Confluence zones (e.g. 1m + 1h equal lows overlapping) mark where that fuel is stacked across timeframes.
None of this is a signal by itself — the indicator shows structure and liquidity state; the trade decision, direction filter and risk management are yours. Test any idea before trading it.
ALERTS
14 alert conditions: level formed / level swept for lows and highs on both timeframes, confluence formed / swept, and diagonal formed / broken per side.
HONEST LIMITATIONS
• A touch only registers after pivot confirmation (right bars — in HTF bars for HTF levels, so a 1h touch with right=3 confirms about 3 hours after the pivot). Levels are back-drawn to the first touch; sweeps register immediately, without lag.
• Diagonal anchors are fixed at creation; the line is not re-fitted through later touches.
• The chart timeframe must be below the selected higher timeframe (e.g. chart 1m, HTF 60).
CREDITS
Created with the assistance of Claude Fable 5 (Anthropic's AI model). Concept, trading logic and testing by the author.
For education and research only. Nothing here is financial advice, and no performance is implied or promised.
Open-source script
In true TradingView spirit, the creator of this script has made it open-source, so that traders can review and verify its functionality. Kudos to the author! While you can use it for free, remember that republishing the code is subject to our House Rules.
Disclaimer
The information and publications are not meant to be, and do not constitute, financial, investment, trading, or other types of advice or recommendations supplied or endorsed by TradingView. Read more in the Terms of Use.
Open-source script
In true TradingView spirit, the creator of this script has made it open-source, so that traders can review and verify its functionality. Kudos to the author! While you can use it for free, remember that republishing the code is subject to our House Rules.
Disclaimer
The information and publications are not meant to be, and do not constitute, financial, investment, trading, or other types of advice or recommendations supplied or endorsed by TradingView. Read more in the Terms of Use.