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

    Function percentChange

    • Percent change (rate of change) — the percent difference from periods bars ago: (value / value[i − periods] − 1) × 100. Appends one column; undefined for the first periods rows (no look-back) and where the prior value is 0/missing. periods counts bars, so it's gap-correct on a trading axis.

      Type Parameters

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

      Parameters

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