Skip to main content

ema

Gets exponential moving average (EMA) for stock

Source Code: [link]

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

Parameters

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

Returns

TypeDescription
pd.DataFrameDataframe containing prices and EMA