• the reference ema: seeded with the SMA of the first period values, NaN before that. The base bundle's ema seeds from values[0] and emits from index 0 instead, so the two disagree for roughly the first period bars and converge after. Anything reproducing a reference platform plot needs this one.

    Parameters

    • values: readonly number[]
    • period: number

    Returns number[]