Skip to main content

ema

A moving average provides an indication of the trend of the price movement

Source Code: [link]

openbb.forecast.ema(dataset: pd.DataFrame, target_column: str = "close", period: int = 10)

Parameters

NameTypeDescriptionDefaultOptional
datasetpd.DataFrameThe dataset you wish to cleanNoneFalse
target_columnstrThe column you wish to add the EMA tocloseTrue
periodintTime Span10True

Returns

TypeDescription
pd.DataFrameDataframe with added EMA column