indicator · on price · open source
Liquidity Sweeps (Highs) indicator
Liquidity Sweeps (Highs) is a free open-source indicator. Liquidity Sweeps (Highs) — a wick takes out the most recent swing high but the bar closes… Deepwick Script runs a subset of Pine Script.
Running…
Loading chart…
What Liquidity Sweeps (Highs) does
Liquidity Sweeps (Highs) — a wick takes out the most recent swing high but the bar closes back below it. Often marks the trap that precedes a reversal.
- Triangle-down marker on the sweeping bar.
lookbackcontrols how many bars back we still consider a swing high live.- Combine with bearish OB or FVG for high-conviction shorts.
- A high-volume sweep of a strong resistance level is the highest-conviction short entry.
- Multiple consecutive high sweeps without follow-through = ongoing distribution by sellers.
- Default swing = 5, lookback = 20 — captures the most recent pivot high as the trigger.
- The deep-sweep alert flags sweeps that exceed the level by more than 1 ATR — strongest signal.
- Use the colour input to match your chart theme; default orange works on most backgrounds.
Learn more: What a liquidity sweep is
Source code
Deepwick Script, a subset of Pine Script · read-only
//@version=6
indicator("Liquidity Sweeps (Highs)", overlay=true)
swing = input.int(5, "Swing Length", minval=2, maxval=50)
lookback = input.int(20, "Lookback", minval=5, maxval=100)
markerColor = input.string("color.orange", "Sweep Marker Color")
markerText = input.string("SWEEP", "Sweep Marker Text")
alertNormal = input.bool(true, "Alert on Every Sweep")
alertDeep = input.bool(false, "Alert on Deep Sweep (1+ ATR)")
alertStacked = input.bool(false, "Alert on Stacked Sweeps")
minBodyPct = input.float(50, "Min Body % for Sweep", minval=0, maxval=100, step=5)
ph = ta.pivothigh(high, swing, swing)
var float lastPh = na
if not na(ph)
lastPh := ph
sweepHi = high > lastPh and close < lastPh and close < open
plotshape(sweepHi and not sweepHi[1], "High Sweep", style=shape.triangledown, location=location.abovebar, color=markerColor, text="markerText")
alertcondition(sweepHi and not sweepHi[1], "High sweep", "Liquidity swept above swing high")
alertcondition(sweepHi and not sweepHi[1] and (high - lastPh) > ta.atr(14), "Deep high sweep", "Deep high sweep — wick exceeded level by more than 1 ATR")
alertcondition(sweepHi and sweepHi[1] and sweepHi[2], "Triple high sweep", "Three consecutive high sweeps — strong distribution")
No comments yet.
Sign in to comment.