indicator · own pane · open source

Ehlers Smoothed RSI indicator

Ehlers Smoothed RSI is a free open-source indicator. Ehlers Smoothed RSI — feeds the differenced close (with a 4-bar smoothing kernel) into RSI. Deepwick Script runs a subset of Pine Script.

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

What Ehlers Smoothed RSI does

Ehlers Smoothed RSI — feeds the differenced close (with a 4-bar smoothing kernel) into RSI. Strips out the slow trend before measuring relative strength, so the RSI hugs the cycle.

  • Cleaner than classic RSI on trending assets.
  • 70/30 still work as extreme zones.

Source code

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

//@version=6
indicator("Ehlers Smoothed RSI", overlay=false)
len = input.int(14, "RSI length", minval=2, maxval=100)
colorBg = input.color("color.purple", "Color  Bg")
colorNeutral = input.color("color.gray", "Color  Neutral")
src = close - close[1]
smooth = (src + 2 * src[1] + 2 * src[2] + src[3]) / 6
rsi = ta.rsi(smooth, len)
hline(70, "OB", color=colorNeutral)
hline(30, "OS", color=colorNeutral)
p_Smoothed_RSI = plot(rsi, "Smoothed RSI", color=colorBg, linewidth=2)
alertcondition(ta.crossover(rsi, 70), "Overbought", "Smoothed RSI crossed above 70")
alertcondition(ta.crossunder(rsi, 30), "Oversold", "Smoothed RSI crossed below 30")

Comments

No comments yet.

Sign in to comment.