• Wilder's smoothing (RMA): seed with the SMA of the first period values, then (prev * (period - 1) + v) / period. The basis of RSI, ATR, and ADX.

    Parameters

    • values: readonly number[]
    • period: number

    Returns number[]