indicator · on price · open source

Wilder's Smoothed Moving Average

Deepwick · @deepwickv1Updated 2 Oct 2026▲ 0 users
Running…
Loading chart…

About

Wilder's Smoothed Moving Average (RMA) uses the smoothing constant 1/N instead of the EMA's 2/(N+1). The result moves slower than an EMA at the same length and is the exact kernel inside RSI and ATR.

  • The reference smoothing for momentum and volatility indicators.
  • Raise N for very smooth, slow-moving trend lines.
  • Pair with an EMA crossover to compare both kernels.

Source code

//@version=5
indicator("Wilder's Smoothed Moving Average", overlay=true)
len = input.int(14, "Length", minval=1, maxval=500)
src = input.source("close", "Source")
rma = ta.rma(src, len)
p_RMA = plot(rma, "RMA", color=color.maroon, linewidth=2)
alertcondition(ta.crossover(close, rma), "Price crosses above RMA", "Price crossed above the RMA")
alertcondition(ta.crossunder(close, rma), "Price crosses below RMA", "Price crossed below the RMA")

Comments

No comments yet.

Sign in to comment.

Wilder's Smoothed Moving Average — indicator by @deepwick | Deepwick