Reading the market Intermediate

Moving averages: what they calculate and why they lag

Lesson 5 of 14 ~9 min read

Listen to the lesson

Audio played live by your browser, with no audio file or extra download.

Preparing your device’s voice...
Ready to read the lesson aloud.

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.

How is a simple average calculated?

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.

What does the exponential average change?

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.

Why does the average lag, and by how much?

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 two fifty-day averages, the simple and the exponential, after the lowest reference rate A line chart of the price of the euro in dollars from 1 October 2024 to 30 September 2025, from the H.10 release, together with two averages calculated from it for fifty days: the simple and the exponential. The price reached its lowest level in the period, 1.0209 dollars, on 13 January 2025. The exponential average reached its lowest level 22 prices after it, on 13 February 2025, and the simple average 33 prices after it, on 3 March 2025. The dashed vertical lines are at these three days. Time runs from left to right. The average reaches its trough after the price US dollars per euro, daily reference rate Daily price Exponential 50-day average Simple 50-day average 1.00 1.05 1.10 1.15 1.20 January 2025 April 2025 July 2025 Lowest reference rate Exponential trough: after 22 prices Simple trough: after 33 prices Source: US Federal Reserve Board, H.10 release, noon rate in New York, up to 25 September 2026, which is one reference rate for each day, and not a price at which it was possible to trade. The two averages are calculated from this data since 1999, and are not from the source’s publication.

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.

What is a crossover, and how many times did it happen?

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 euro against the dollar with 50-day and 200-day averages A line chart of the price of the euro in US dollars day by day from 1 October 2024 to 25 September 2026, as published by the US Federal Reserve Board in its H.10 release (it is the noon rate in New York), together with two lines calculated from the same data: the simple moving average for fifty days, and the simple moving average for two hundred days. On the last day the price was 1.1400 dollars, the short average 1.1533 and the long average 1.1626. The two averages are not part of the source’s data. Time runs in the diagram from left to right, so the oldest days are on the left and the newest on the right. The euro against the dollar over two years, with two moving averages US dollars per euro, daily reference rate Daily price 50-day average 200-day average 1.00 1.05 1.10 1.15 1.20 January 2025 July 2025 January 2026 July 2026 Source: US Federal Reserve Board, H.10 release, noon rate in New York, up to 25 September 2026, which is one reference rate for each day, and not a price at which it was possible to trade. The two averages are calculated from this data, and are not from the source’s publication.

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 crossover between the 50-day and 200-day averages in the price of the euro since 1999 A line chart of the price of the euro in dollars from 18 October 1999 to 25 September 2026, from the H.10 release, with the two simple averages for fifty days and for two hundred days, calculated from it. Each black dot is a day on which the short average crossed the long one upward, and each ring is a day on which it crossed it downward. Their number is 38: 19 upward and 19 downward. Time runs from left to right. 38 crossovers in twenty-seven years US dollars per euro, daily reference rate Daily price 50-day average 200-day average Upward crossing Downward crossing 0.8 0.9 1.0 1.1 1.2 1.3 1.4 1.5 1.6 1.7 2000 2005 2010 2015 2020 2025 Source: US Federal Reserve Board, H.10 release, noon rate in New York, up to 25 September 2026, which is one reference rate for each day, and not a price at which it was possible to trade. The two averages and the crossovers are calculated from this data, and are not from the source’s publication.

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

Do two official sources agree on the day of the crossover?

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 crossover days from two official sources At the top, two timelines from 1999 to 2026: on the first, the crossover days of the 50-day and 200-day averages calculated from the noon rate in New York (the H.10 release), and on the second the same days calculated from the reference rate of the European Central Bank. The orange dots are crossovers with no counterpart in the other source within five working days: 1 on the first and 7 on the second. At the bottom are bars for the number of matched pairs by the difference between the two dates: 11 on the same day, out of 37. On the two timelines time runs from left to right, and in the bars the differences increase from left to right. The same two averages, from two official sources, with different dates Crossovers of the 50-day and 200-day averages for the euro against the dollar Crossover with a counterpart in the other source No counterpart Noon rate in New York (H.10) ECB reference rate 2000 2005 2010 2015 2020 2025 Matched pairs by the difference between the two dates, in working days 2 3 before 4 2 before 11 1 before 11 0 5 1 after 3 2 after 1 3 after Before: the ECB crossover is earlier; after: its crossover is later Source: US Federal Reserve Board, H.10 release, and the European Central Bank, up to 25 September 2026; each is one reference rate for each day, and not a price at which itwas possible to trade. The averages and the crossovers are calculated.

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 told

A 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.

The simple average and the exponential average for fifty days
Simple average Exponential average
Weight of the newest price1 of 50, that is 0.02, like the weight of every price in the window0.0392, and the weight of the older ones dwindles
Oldest priceDrops out of the calculation after 50 daysDoes not drop out, but its weight dwindles
Lag on a straight line24.5 days24.5 days
After the January 2025 troughReached its trough after 33 pricesReached its trough after 22 prices

A Gulf note

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.

Summary

  • A moving average is a calculation on prices that have passed: the simple one weighs the days equally, and the exponential one weighs the newest more.
  • The lag is calculated: the number of days minus one, divided by two, on a straight line, for both the simple and the exponential; and the exponential one turns round faster only at the turn.
  • A crossover is a description of two averages; counting it is not a test of it; and its day changes when the source of the prices changes.
  • Today: open the moving average on your platform, and find out whether it is simple or exponential, which price it calculates, and from how many days, and write that in your trading journal.
Warning

Leveraged 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.