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
Name | Type | Description | Default | Optional |
---|---|---|---|---|
dataset | pd.DataFrame | The dataset you wish to clean | None | False |
target_column | str | The column you wish to add the EMA to | close | True |
period | int | Time Span | 10 | True |
Returns
Type | Description |
---|---|
pd.DataFrame | Dataframe with added EMA column |