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

    Function medianPrice

    • Median price(high + low) / 2, the midpoint of the bar's range. TA-Lib's MEDPRICE, matched bar-for-bar.

      The other one-number bar summary the corpus keeps reaching for: awesomeOscillator is a difference of two SMAs of it, easeOfMovement measures how far it travelled, and highLowBands is a percent envelope around a moving average of it.

      Appends one column, default 'medianPrice'. Reads only high and lowclose is accepted on the shared options type and ignored, so a caller who spreads one options object across the family is not surprised by a throw.

      Same edges as typicalPrice: no warm-up, linear in price and shift-equivariant, a gap costs one bar, nothing is clamped (a low above a high still averages).

      Type Parameters

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

      Parameters

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