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

    Function weightedClose

    • Weighted close(high + low + 2·close) / 4. TA-Lib's WCLPRICE, matched bar-for-bar.

      The typical price's sibling, with the close given twice the weight of either extreme: the argument is that the price a bar settled at carries more information than the two it merely traded through. It sits between typicalPrice (close weighted 1/3) and the close itself (1), which is the whole spectrum this transform family spans.

      Appends one column, default 'weightedClose'. Reads high, low and close.

      Same edges as typicalPrice: no warm-up, linear in price and shift-equivariant, a gap costs one bar, nothing is clamped.

      Type Parameters

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

      Parameters

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