wcp#

API documentation for pandas_ta.overlap.wcp Python function.

wcp(high, low, close, talib=None, offset=None, **kwargs)[source]#

Weighted Closing Price (WCP)

Weighted Closing Price is the weighted price given: high, low and double the close.

Sources:

https://www.fmlabs.com/reference/default.htm?url=WeightedCloses.htm

Calculation:

WCP = (2 * close + high + low) / 4

Args:

high (pd.Series): Series of ‘high’s low (pd.Series): Series of ‘low’s close (pd.Series): Series of ‘close’s talib (bool): If TA Lib is installed and talib is True, Returns the TA Lib

version. Default: True

offset (int): How many periods to offset the result. Default: 0

Kwargs:

fillna (value, optional): pd.DataFrame.fillna(value) fill_method (value, optional): Type of fill method

Returns:

pd.Series: New feature generated.