The EMA (exponential moving average) is a moving average in which new prices carry more weight than older ones.
What does the EMA mean?
Today’s EMA is built from yesterday’s EMA and today’s close: EMA today = close × k + EMA yesterday × (1 − k). The smoothing factor k is 2 : (n + 1), so about 0.095 for n = 20. Each new price enters at this share, older prices gradually lose weight but never drop out abruptly. As a result the EMA reacts earlier to turns than an SMA of the same length and does not jump when an old outlier leaves the window.
Example with model figures
Model with n = 3, so k = 2 : 4 = 0.5. Yesterday’s EMA is 11.00, today the price closes at 15.00. EMA today = 15 × 0.5 + 11 × 0.5 = 13.00. An SMA 3 of the prices 10, 12 and 15 would be 12.33. The next day the price closes at 13.00: EMA = 13 × 0.5 + 13 × 0.5 = 13.00 – it stays put because price and EMA are equal.
How to read it
The EMA suits you if you want to see turns earlier; on the other hand it also reacts more strongly to outliers. Pairs such as EMA 20 and EMA 50 show whether the short move is faster than the medium one. The EMA also lags the price – just less. For the very long trend many still use the simple 200-day line.
Common mistakes
People often assume the EMA predicts turns. The line only shows turns somewhat earlier than the SMA, after they have already begun in the price. A second mistake is to compare values from different programs: the EMA depends on its starting value, and short price histories give slightly different numbers. Third, in sideways phases every cross of two EMAs is read as a hint, although the lines constantly circle each other there.
How to use it on TickerEagle
The trend by timeframe checks whether the EMA 20 is above the EMA 50; the MACD in the screener is based on EMA 12 and EMA 26. On the chart page you can show and hide EMA lines.