Audio played live by your browser, with no audio file or extra download.
The simple moving average (SMA) for a number of days is the average of that many of the latest prices, recalculated every day by dropping the oldest price and adding the newest. It is calculated from prices that were actually published, so it describes what has passed and cannot carry anything about the next price. This lesson calculates an average by hand, then shows its cost, the one that cannot be separated from it: the lag, a calculated number, not an accidental flaw.
Take the last five prices of the euro in dollars published by the US Federal Reserve Board in its H.10 release, from 21 to 25 September 2026: 1.1469, 1.1432, 1.1394, 1.1373, 1.1400. Their sum is 5.7068, and dividing it by five gives 1.14136 dollars: this is the average of the five days. Each of them is a reference rate, one for each day, the noon rate in New York, and not a price at which it was possible to trade.
On the next day the oldest of the five prices drops out and the newest comes in, so a new average is calculated, and that is where the word “moving” comes from. The days here are days that have a reference rate, not calendar days: holidays in New York have no price, so they are not counted. And on a trading platform the days may be the broker’s server days, as the lesson “Trading platforms: what they show, and what they do not say” made clear.
The exponential moving average (EMA) does not give the days the same weight. It puts on the newest price a weight of 2 ÷ (number of days + 1), which is 0.0392 for fifty days, and puts the rest on yesterday’s average. So the newer prices weigh more, and the old ones do not drop out suddenly: their weight dwindles. In this level its calculation starts from the first price in the series, in 1999.
Because it is an average of prices that have passed. And its lag is a calculation, not an estimate: if the price moves in a straight line, the simple average for a number of days lies behind it by that number minus one, divided by two: 24.5 days for fifty days, and 99.5 days for two hundred days. The exponential average for fifty days settles on a straight line at the same lag, 24.5 days. So where do they differ? At the turn: because the exponential one weighs the newest more, it turns round faster when the price changes direction.
The price of the euro reached its trough on 13 January 2025, and the exponential average reached its trough 22 prices after it, and the simple average 33 after it
On small screens, drag the diagram sideways to see all of it
In the diagram the price of the euro reached its lowest level between October 2024 and September 2025, 1.0209 dollars, on 13 January 2025. The exponential average for fifty days reached its trough after 22 prices, on 13 February, and the simple one after 33 prices, on 3 March. A shorter average, or the exponential one, lags less at the turn, but it also moves with every fluctuation that does not last. This is a trade-off worth stating, and it has no solution in the calculation.
When two averages are drawn, a short one and a long one, one of them crosses the other from time to time, and this is called a crossover. The next diagram shows the price of the euro over two years with 50-day and 200-day averages. The short one crossed the long one three times in the period: downward on 27 November 2024, upward on 17 April 2025 and downward on 13 April 2026.
The price of the euro over two years with 50-day and 200-day averages: the slow line turns round late
On small screens, drag the diagram sideways to see all of it
And over the whole history, from 18 October 1999, when the two averages came to have a value, until 25 September 2026, the fifty-day average crossed the two-hundred-day average 38 times: 19 upward and 19 downward. Traders call the upward crossing the golden cross and the downward crossing the death cross. These are two names for describing two averages, no more. And counting the crossovers does not say whether acting on them was profitable or loss-making; that is a question that needs a test, with its costs and its traps, and it is the subject of a later lesson in this level on testing ideas.
Every crossing between the 50-day and 200-day averages in the price of the euro since 1999: 38 crossings, half of them upward and half downward
On small screens, drag the diagram sideways to see all of it
The European Central Bank (ECB) also publishes a reference rate for the euro, one for each day, which is determined at about 14:10 Central European time, hours before the noon rate in New York. Before the calculation, a single set of comparison conditions was written: the same two averages are calculated from the ECB’s rate up to 25 September 2026, and its crossovers are matched with the H.10 crossovers of the same direction if there are 5 working days or fewer between them. And where the conditions allowed more than one reading, the simplest was chosen before the calculation: working days were counted from Monday to Friday, because the two sources have different holidays, and each crossover was matched with its nearest counterpart once.
The ECB’s rate gave 44 crossovers, against 38 from H.10. Of them, 37 pairs were matched, only 11 of them on the same day, and the rest diverge by up to three working days in either direction. One crossover from H.10 was left without a counterpart, and 7 from the ECB, six of them between April and August 2024: in those months the two averages crossed eight times in the ECB’s rate, and once in the H.10 rate. So the result is as it was recorded: the day of the crossover depends on the source.
The same crossovers from two official sources: the orange ones have no counterpart, and the bars count the matched pairs by the difference between the two dates
On small screens, drag the diagram sideways to see all of it
And this is between two official sources for one price. Your platform calculates its averages from your broker’s prices, on the broker’s server clock, so you may see a crossover that others do not see, or see it on another day.
What you are not usually toldA moving average is a summary of prices that were published, so its lag is built into it and is calculated: on a straight line the fifty-day average lags 24.5 days, whether simple or exponential. And the same rule, on two official sources for one price, does not agree on the day of the “crossover”: of 38 crossovers in one of them, only 11 matched the day of their counterpart in the other.
| Simple average | Exponential average | |
|---|---|---|
| Weight of the newest price | 1 of 50, that is 0.02, like the weight of every price in the window | 0.0392, and the weight of the older ones dwindles |
| Oldest price | Drops out of the calculation after 50 days | Does not drop out, but its weight dwindles |
| Lag on a straight line | 24.5 days | 24.5 days |
| After the January 2025 trough | Reached its trough after 33 prices | Reached its trough after 22 prices |
An average measures movement. A fixed official rate, such as the official rate of the riyal, 3.75 to the dollar (which the Saudi Central Bank affirmed in a statement in 2020, when it was called the Saudi Arabian Monetary Authority), and the dirham’s rate, 3.6725, in the tables of the Central Bank of the UAE (CBUAE), has an average that is the rate itself; so there is nothing for the indicator to find in it. This is about the official rate alone, not about any price displayed in any market.
WarningLeveraged trading in CFDs carries high risk, and you may lose the entire amount you deposited. This lesson is an educational explanation of the nature of the product, not a recommendation to trade and not investment advice.
The next lesson in this level is about momentum indicators: relative strength, the MACD and the Stochastic.