@pond-ts/financial API Reference
    Preparing search index...

    Function ema

    • Exponential moving average — a period-span EMA (α = 2/(period+1), the financial convention), appended as a new column. Length-preserving warm-up (undefined for the first period - 1 bars) via the ema minSamples gate, so it lines up on the source's time axis. Composes on core's smooth('ema').

      Type Parameters

      • S extends SeriesSchema
      • const Output extends string = "ema"

      Parameters

      Returns TimeSeries<
          readonly [S[0], ValueColumnsForSchema<S>, OptionalNumberColumn<Output>],
      >