By Uladzimir Leuchankou, founder of Signal2Forex · 1 November 2026
What is EMA? Any glossary gives the short answer. EMA stands for exponential moving average — a line on the chart that follows the price and gives more weight to recent candles than to old ones. I suppose that answer is correct. It is also the answer that explained nothing to me when I first put the line on a chart.
But for me the EMA became clear only when I did the arithmetic by hand on real prices. So this page starts with numbers. Below are the last six daily closes of gold and the 10-day EMA I calculated from them on 31 October 2026.
| Date | Close, $ | 10-day EMA, $ |
|---|---|---|
| 23 October 2026 | 3,995.87 | 4,100.21 |
| 26 October 2026 | 4,016.69 | 4,085.03 |
| 27 October 2026 | 4,043.11 | 4,077.41 |
| 28 October 2026 | 4,039.52 | 4,070.52 |
| 29 October 2026 | 3,994.21 | 4,056.64 |
| 30 October 2026 | 3,875.52 | 4,023.71 |
Spot gold, daily closes, data as of 30 October 2026. The EMA was started on 3 August from the average of ten closes and run forward with the formula below.
On 30 October gold closed $148 below its own 10-day EMA. That gap is the subject of this page. Where the line comes from, why it sits where it sits, and what you can and cannot read from it in forex trading.
EMA meaning and full form
EMA full form is exponential moving average. Moving — because the value is recalculated on every new candle. Average — because it sums past prices. Exponential — because the weight of each price shrinks by the same factor with every step into the past. Today counts the most, yesterday a little less, the day before less again, and so on without a hard cut-off.
This is the difference from the simple moving average. The SMA takes the last N closes, adds them, divides by N and forgets everything older. The EMA never fully forgets. A close from two months ago still sits inside today’s value — with a weight so small that you cannot see it on the chart. I compare the two lines side by side on the SMA vs EMA page.
What does EMA mean on a forex chart? For me the EMA definition is this: the price the market remembers, with a bias toward the last few days. When the current price is above that memory, the recent move has been up. When it is below, the recent move has been down. The line does not know about the next Fed meeting, about a gap at the Monday open or about your stop loss.
The EMA formula on real prices
The EMA formula has one parameter — the period N — and one derived number, the smoothing factor: alpha = 2 / (N + 1). For a 10-day EMA alpha is 2 / 11 = 0.1818. Every new candle then updates the line in one step: new EMA = previous EMA + alpha × (close − previous EMA). This is the form I use in code, and the form in the MetaTrader 5 help is the same thing written differently.
Now the real EMA calculation for 30 October 2026 on the daily gold chart.
Previous EMA, 29 October: 4,056.64
Close, 30 October: 3,875.52
Difference: 3,875.52 − 4,056.64 = −181.12
Times alpha: −181.12 × 0.1818 = −32.93
New EMA: 4,056.64 − 32.93 = 4,023.71
Price fell by $119 from the previous close. The line moved by $33. This is how to calculate EMA for any day of any instrument: you need yesterday’s EMA and today’s close, nothing else.
The first value has to come from somewhere, and that is the one weak spot of the method. For the table I took the simple average of the first ten closes of August and ran the formula forward from there, about sixty steps. Your terminal starts the same recursion from the first bar in its history, many years back.
The seed is forgotten after a few dozen steps, so the two lines meet. I checked a seed from 1 October against the August one — the difference on 30 October was $1.31. What does not meet is the data. Two price providers close the day a few dollars apart, and so will their EMAs.
In money terms on this instrument: one standard lot of XAUUSD is 100 ounces. A $148 gap between the price and the line is $14,800 on 1 lot and $148 on 0.01 lot. A cent account trading 0.01 lot sees it as $1.48. The arithmetic of the line is the same at every size. Only the stop loss changes, and that is a question of pips and lot size rather than of the indicator.
Weight of each day
Why does the EMA calculation look so different from add ten numbers and divide by ten? Because of the weights. With alpha 0.1818, today’s close carries 18.2% of the value. Yesterday’s close carries 18.2% of what was left, which is 14.9%. The day before — 12.2%. The tenth day carries 3.0%, the twentieth 0.4%. The chart shows those shares next to the flat 10% that every day gets inside a 10-day SMA.
Weight of each past day in a 10-day EMA against a 10-day SMA. Calculated from the formula alone, so it is the same on any instrument and any date.
Two things follow from the picture. The first — the ten most recent days hold about 87% of a 10-day EMA, not 100%. The second — the remaining 13% sits in days the SMA has already thrown away. This is why the EMA turns earlier at a top than the SMA, and why it also crosses back and forth more often when the price goes sideways.
The same ratio holds for any period. A 20-day EMA keeps 86.5% of its value in the last twenty closes, and a 200-day EMA keeps 86.5% in the last two hundred. The number is a property of the formula, not of the market. It was already in Robert Brown’s work on exponential smoothing in the 1950s, long before anyone drew the line on a currency chart.
EMA forex periods
Which EMA do forex traders put on the chart? The common set is 9, 20 or 21, 50, 100 and 200. Nine and 21 come from the 12-26-9 family of the MACD, 50 and 200 from daily stock charts. Nobody has ever proved that one period is right.
I have seen the same EMA forex setup — 20 and 50 on H1 — on an account that doubled in a year and on an account that lost 40%. The period was not the difference between them. Which forex EMA period you choose matters less than two questions.
The first — on what timeframe. A 20 EMA on the M15 chart averages five hours of trading. The same 20 EMA on D1 averages a month.
The second — for what job. A line you use as a trend filter can be slow. A line you use as a trailing stop has to be fast, or it gives back too much of the move. In my robots those are two different inputs with two different values, never one line doing both jobs.
What is EMA in forex compared with EMA in stocks? The same formula on the same closes. EMA meaning in forex does not change. What changes is the candle. Forex runs 24 hours five days a week, so a daily candle closes at the broker’s server midnight and not at an exchange bell. Two brokers with different server time will show you two slightly different daily EMA values on EUR/USD.
Beginner line, experienced line
A beginner puts the EMA on the chart and trades the cross. Price above the line — buy. Price below — sell. On a trending week like 19 to 23 October, when gold fell from 4,147 to 3,996, this works and feels like a system.
Between 9 and 16 October the price crossed the 10-day line four times in six sessions and ended those sessions $29 lower than it started. The same rule lost four spreads there and a piece of confidence.
An experienced trader uses the same line for permission rather than entry. Price above the 50 EMA on H4 — only long setups are allowed. Price below — only short. The entry comes from something else: a level, a candle, a news time, a session open. The EMA only decides which half of the trades you are not taking.
This is a smaller job, and the line does it well. If someone asks what is the EMA for, my answer is one word — permission.
Price sat under the 10-day EMA for the last eleven sessions of October.
What you cannot read from the gap is the next move. On 31 October the price is $148 below the line. I do not know whether the price will come back up to the line next week or the line will keep walking down to the price. Both have happened to me many times. The EMA tells you where the recent average is. It does not tell you where the price is going.
Indicators built on the EMA
How one formula turns into a family. The exponential moving average indicator sits in the middle, and each branch is the same recursion with one extra step.
Once the formula is clear, you start to see it everywhere. The EMA indicator by itself is the simplest member of the family. MACD is the difference between a 12-period and a 26-period EMA, with a 9-period EMA of that difference as the signal line. TEMA and DEMA are the EMA applied to its own output two or three times, with a correction that pulls the lag back. TRIX is a triple EMA expressed as a rate of change.
The modern Keltner Channel is drawn around a 20-period EMA. Wilder’s RSI and ATR use their author’s own smoothing, which is an EMA with alpha = 1 / N — the line MetaTrader calls SMMA. Elder’s Force Index is a 13-period EMA of volume multiplied by the price change. When you tune any of those, you are tuning an EMA.
A disagreement about speed
Most articles on the exponential moving average say the same thing — the EMA is faster, so it is better for short-term EMA trading. I agree with the first half and disagree with the second. Faster means the line reacts sooner to a real move and sooner to a false one. On an intraday chart the false ones are more frequent.
The six gold sessions from 9 to 16 October are the argument: four crosses of the 10-day line, no trend, four losses for anyone trading the cross.
So my view is that the EMA is earlier, which is a different thing from better. Earlier is worth something on a daily chart, where a day of lag can cost $100 on an ounce of gold. On M5 it is worth almost nothing, because there the spread and the noise are larger than the lag you saved.
If you want a faster line on a fast chart, you need a filter on top of it, and a shorter period will not do that job.
The TEMA in Forex V
One observation from my own code. The Forex V Portfolio ships with a set of indicators, and one of them is a TEMA — a triple exponential moving average. In October 2026 I was porting the 28 robots from MetaTrader 4 to MetaTrader 5.
The CPU load of the terminal climbed to about 40% as soon as I started attaching the robots to the charts, and it stayed there after I closed all the charts. The Journal and the Experts tabs showed nothing. I took the indicators off one by one, and the load vanished the moment the TEMA was gone.
A triple EMA is three recursions per tick per chart. On one chart you will never notice. On 28 charts with a tick every second you will, and the corrected lag that the TEMA gives you comes out of your processor. Since then I treat every EMA stacked on an EMA as a cost first and an improvement second.
The plain EMA has no such problem — one multiplication, one addition, and the iMA function does it for you in a single call.
That is the exponential moving average in one month of gold prices. A line with memory, a weight that falls by half roughly every three and a half days, a formula with one parameter, a gap of $148 that nobody can read forward. The shorter the period, the sooner the line catches the price — and the more often it catches nothing. On 30 October 2026 gold closed at $3,875.52. The 10-day EMA that evening stood at $4,023.71.
Uladzimir Leuchankou is the founder of Signal2Forex, a software engineer with a BSc in Finance, and the developer of the site’s trading robots, including the Forex V Portfolio. The gold closes on this page are daily spot closes collected on 31 October 2026. The EMA arithmetic is shown in full so you can repeat it, and the CPU observation is from his own MetaTrader 5 terminal. He trades a real account that streams on the Signal2Forex YouTube channel. Contact: forexfactory1shop@gmail.com.
Sources: Moving Average and Triple Exponential Moving Average, MetaTrader 5 help; iMA, MQL5 reference; daily gold closes for October 2026, pricegold.net; Yahoo Finance, 30 October 2026, on gold’s lowest level of the year; R. G. Brown, Smoothing, Forecasting and Prediction of Discrete Time Series, 1963, on the origin of exponential smoothing.

Signal2forex.com - Best Forex robots and signals


