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.
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")
No comments yet.
Sign in to comment.