Weighted Close Price

The Weighted Close Price is the average of the high, low and close of a period with the close counted twice, as the price the period settled at.

The formula for the Weighted Close Price is as follows:

\[\text{Weighted Close Price} = \frac{\text{High} + \text{Low} + 2 \cdot \text{Close}}{4}\]

Where High, Low and Close are the highest, lowest and closing price of the period. It weights the close more than the Typical Price does, so it lies closer to the close while still reflecting the range.

A price transform condenses the open, high, low and close of a period into one price. The close alone says where a period ended, not where it traded; averaging it with the high and low, or the open, gives a price that reflects the whole range of the period. Indicators that should reflect the whole bar rather than only the close are built on these prices, and a moving average or oscillator of one of them reacts less to a close at the edge of the range than one of the close.

Also known as: WCLPRICE, weighted close, HLCC4.

In the Finance Toolkit this is get_price_transform with method="weighted_close", the same function as Price Transform.

Example · NVDA · 2021 to 2025

Install the Finance Toolkit with pip install financetoolkit -U, then call get_price_transform:

from financetoolkit import Toolkit

toolkit = Toolkit(
    tickers=["NVDA"],
    api_key="FINANCIAL_MODELING_PREP_KEY",
    start_date="2021-01-01",
    end_date="2025-12-31",
)

toolkit.technicals.get_price_transform(method="weighted_close")

Which returns:

References

  • Paper Achelis, S.B. (2000). “Technical Analysis from A to Z.” 2nd edition, McGraw-Hill.
  • Library Referenced against TA-Lib’s WCLPRICE (Weighted Close Price)
  • Library Shares similar logic as pandas-ta-classic’s wcp (Weighted Close Price)
  • Library Shares similar logic as Tulip Indicators’ wcprice (Weighted Close Price)
Share