What is an EMA (exponential moving average)?
An exponential moving average (EMA) is an average that gives the newest bar the largest weight and lets older bars fade out gradually instead of dropping off a cliff.
That makes it turn sooner than a simple average of the same length. Ours draws up to six lines on the price pane, 12, 26 and 50 bars by default, on the close or any source you choose. Each line is seeded with the simple average of its first N bars and then updated bar by bar.
How is an EMA calculated?
EMA[t] = k × P[t] + (1 − k) × EMA[t-1], k = 2 / (N + 1), first EMA = SMA(N)
The terms in the formula
- P[t]
- Source value on bar t (the close by default).
- N
- Length in bars: 12, 26 and 50 by default.
- k
- Smoothing weight; for N = 12 it is about 0.154, so the newest bar carries about 15% of the value.
- EMA[t-1]
- The previous bar's EMA.
How do you read an EMA?
- A rising EMA with price above it is commonly read as upward momentum; a falling EMA with price below it as the opposite.
- Because it reacts faster than an SMA, traders often use short EMAs (such as 12 or 20) to follow the current swing and longer ones (50) for the broader trend.
- The 12 and 26 defaults are the same pair MACD is built from: their crossing is the moment MACD crosses zero.
- Price pulling back to a rising EMA and holding is often watched as a sign the trend is intact.
What are the limits of an EMA?
- Faster reaction also means more false turns: a single large bar can bend a short EMA noticeably.
- It still lags; it only lags less than an SMA of the same length.
- In theory every past bar still has a tiny weight, so the very first values depend on how much history is loaded.
- In choppy, trendless markets crosses of price and EMA flip often and carry little information.
Where can you see it on TickerBase?
Open a live chart and add the indicator