indicator · on price · open source
Liquidity Sweeps (Highs)
Running…
Loading chart…
About
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.
Source code
//@version=5
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)
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=color.orange, text="SWEEP")
alertcondition(sweepHi and not sweepHi[1], "High sweep", "Liquidity swept above swing high")
No comments yet.
Sign in to comment.