--- title: ema description: OpenBB Terminal Function --- # ema Strategy where stock is bought when Price EMA(l) ### Usage ```python ema [-l LENGTH] [--spy] [--no_bench] ``` --- ## Parameters | Name | Description | Default | Optional | Choices | | ---- | ----------- | ------- | -------- | ------- | | length | EMA period to consider | 20 | True | None | | spy | Flag to add spy hold comparison | False | True | None | | no_bench | Flag to not show buy and hold comparison | False | True | None | ---