indicator · on price · open source

Equal Highs (EQH) indicator

Equal Highs (EQH) is a free open-source indicator by @deepwick. Equal Highs (EQH) — two consecutive confirmed swing highs within a percentage tolerance. Deepwick Script runs a subset of Pine Script.

Deepwick · @deepwickv1Updated 3 Nov 2026▲ 0 users
Running…
Loading chart…

What Equal Highs (EQH) does

Equal Highs (EQH) — two consecutive confirmed swing highs within a percentage tolerance. A classic liquidity pool that price loves to sweep before reversing.

  • A line connects the two highs; the line extends forward.
  • tolerancePct controls how 'equal' the two highs must be (default 0.5%).
  • Triangles mark the EQH confluence.
  • The tighter the tolerance, the more precise the liquidity pool.
  • Triple or quadruple equal highs (rare) are the strongest reversal triggers in SMC.
  • Combine with a sweep-low alert to catch the actual reversal entry.
  • Default swing = 5, tolerance = 0.5% — works well on most liquid instruments.
  • The sweep alert fires when price takes out an EQH level and closes back below it.
  • For FX/instruments with high noise, raise tolerance to 1.0% to capture practical EQHs.

Source code

Deepwick Script, a subset of Pine Script · read-only

//@version=6
indicator("Equal Highs (EQH)", overlay=true)
swing = input.int(5, "Swing Length", minval=2, maxval=50)
tolerancePct = input.float(0.5, "Tolerance %", minval=0, maxval=2, step=0.1)
eqhColor = input.string("color.orange", "EQH Color")
lineWidth = input.int(2, "Line Width", minval=1, maxval=5)
alertEQH = input.bool(true, "Alert on EQH formation")
alertSweep = input.bool(false, "Alert on EQH Sweep")
alertStacked = input.bool(false, "Alert on Stacked EQHs")
lineStyle = input.string("dashed", "Line Style (solid/dashed/dotted)")
ph = ta.pivothigh(high, swing, swing)
var float lastPh = na
var float prevPh = na
if not na(ph)
    prevPh := lastPh
    lastPh := ph
tol = tolerancePct / 100
eqh = not na(lastPh) and not na(prevPh) and math.abs(lastPh - prevPh) <= math.max(lastPh, prevPh) * tol
var float eqhLevel = na
if eqh
    eqhLevel := math.max(lastPh, prevPh)
p_EQH_Level = plot(eqhLevel, "EQH Level", color=eqhColor, style=plot.style_stepline, linewidth=2)
plotshape(eqh and not eqh[1], "EQH", style=shape.diamond, location=location.abovebar, color=eqhColor, text="EQH")
alertcondition(eqh and not eqh[1], "Equal highs", "Two swing highs within tolerance")
alertcondition(eqh and not eqh[1] and high > eqhLevel and close < eqhLevel, "EQH sweep", "EQH liquidity swept — potential short entry")
alertcondition(eqh and eqh[1] and eqh[2], "Triple EQH", "Three pairs of equal highs — extreme liquidity pool")

Comments

No comments yet.

Sign in to comment.