Skip to content

Moving averages

dejavu.indicators.ma.SMA

Bases: SequentialIndicator

Simple moving average. Used in trend following strategies, and also as the basis for more complex indicators like EMA and Bollinger Bands.

dejavu.indicators.ma.EMA

Bases: SequentialIndicator

__init__(period)

Exponential moving average. More responsive to recent price changes than SMA, making it popular for short-term trading and momentum strategies.

dejavu.indicators.macd.MACD

Moving Average Convergence Divergence.