indicator · on price · open source

Ehlers Reflex indicator

Ehlers Reflex is a free open-source indicator by @deepwick. Ehlers Reflex — the smoothed distance from the recent highest close. Deepwick Script runs a subset of Pine Script.

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

What Ehlers Reflex does

Ehlers Reflex — the smoothed distance from the recent highest close. Highlights reflexive bounces off the rolling peak.

  • Drops below 0 = price lost the rolling peak; recovers above 0 = new high.
  • Trend filter when stacked with a 200-bar MA.

Source code

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

//@version=6
indicator("Ehlers Reflex", overlay=true)
len = input.int(20, "Length", minval=5, maxval=100)
colorMid2 = input.color("color.teal", "Color  Mid2")
colorNeutral = input.color("color.gray", "Color  Neutral")
src = close
reflex = ta.rma(src - ta.highest(close, len), len)
hline(0, "Zero", color=colorNeutral)
p_Reflex = plot(reflex, "Reflex", color=colorMid2, linewidth=2)
alertcondition(ta.crossover(reflex, 0), "Reflex up", "Reflex crossed above zero")
alertcondition(ta.crossunder(reflex, 0), "Reflex down", "Reflex crossed below zero")

Comments

No comments yet.

Sign in to comment.