Skip to main content

wma

Gets weighted moving average (WMA) for stock

Source Code: [link]

openbb.ta.wma(data: pd.Series, length: int = 50, offset: int = 0)

Parameters

NameTypeDescriptionDefaultOptional
datapd.SeriesDataframe of dates and pricesNoneFalse
lengthintLength of SMA window50True
offsetintLength of offset0True

Returns

TypeDescription
pd.DataFrameDataframe containing prices and WMA