dogabot dogabot

strategy

EMA (Exponential Moving Average)

What an exponential moving average measures, how it differs from a simple MA, and how dogabot uses EMA in crossover and trend rules.

strategyindicatorsema

An exponential moving average (EMA) is a trend-following average that gives more weight to recent prices. It reacts faster than a simple moving average (SMA) to new market moves.

Formula

α = 2 / (N + 1)

EMA_t = α × Close_t + (1 − α) × EMA_{t−1}

The first value is often seeded with SMA_N, then updated each bar.

Typical settings

Use casePeriod range
Fast trend / crossover short leg5–20
Medium trend20–50
Slow trend / crossover long leg50–200

How traders use EMA

In dogabot

dogabot’s strategy engine uses EMA for:

Example

On a BTC/USDT 1h chart, the 20-period EMA is at $96,500 and the last close is $97,200 (price above the line). In a Moving Average rule with period 20, that bar contributes a buy bias. If the 5-period EMA crosses above the 100-period EMA on the same chart, a MA Crossover rule would also lean buy.

Related in the app

Ready to put this into practice?

Create a free account and explore dogabot with paper trading.

Try Backtest