indicator · on price · open source

Ehlers Hilbert Trendline indicator

Ehlers Hilbert Trendline is a free open-source indicator. Ehlers Hilbert Trendline — a simple weighted moving sum that approximates the in-phase… Deepwick Script runs a subset of Pine Script.

v1Updated 3 Oct 2026▲ 0 users
Running…
Loading chart…

What Ehlers Hilbert Trendline does

Ehlers Hilbert Trendline — a simple weighted moving sum that approximates the in-phase component of the Hilbert transform. Smoother than a 4-bar SMA, with no lag amplification.

  • Overlay the trigger (just the 2-bar projection of price) for entry signals.
  • Cheaper to compute than the full Hilbert engine.

Source code

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

//@version=6
indicator("Ehlers Hilbert Trendline", overlay=true)
colorLine = input.color("color.blue", "Color  Line")
src = (high + low) / 2
ht = (4 * src + 3 * src[1] + 2 * src[2] + src[3]) / 10
p_Hilbert_Trendline = plot(ht, "Hilbert Trendline", color=colorLine, linewidth=2)
alertcondition(ta.crossover(close, ht), "Above HT", "Close crossed above the Hilbert trendline")
alertcondition(ta.crossunder(close, ht), "Below HT", "Close crossed below the Hilbert trendline")

Comments

No comments yet.

Sign in to comment.