Reading the market Intermediate

Momentum indicators: relative strength, the MACD and the Stochastic

Lesson 6 of 14 ~14 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.

What are momentum indicators?

A momentum indicator is a number calculated from past prices to measure the speed of the latest move or the position of the price in its latest range. The three indicators in this lesson, the relative strength index (RSI), the MACD indicator and the Stochastic indicator, are all of this kind, and nothing other than past prices enters into the calculation of any of them. The lesson presents each of them in the same order: what it calculates, what its numbers mean as numbers, and what traders read in it, reported as a reading and not as a fact.

What does the relative strength index calculate?

The relative strength index compares the average of recent rises with the average of recent falls, and puts the result on a scale from zero to one hundred. The formula is a single line: RSI = 100 − 100 ÷ (1 + average rise ÷ average fall). The method calculated here is Wilder’s method over 14 periods: each average starts with the simple average of the first 14 changes, and is then updated every day like this: new average = (previous average × 13 + the day’s change) ÷ 14. Wilder’s book itself was not read for this lesson, so the method is called by its name and is not attributed to a page of it.

Hypothetical example, with four periods instead of 14, so that the numbers stay few: a price with no currency rose by 0.5, then by 0.7, then fell by 0.4, then did not change. The sum of the rises is 1.2, so their average over the four periods is 0.30; and the sum of the falls is 0.4, so their average is 0.10. The ratio between them is 3, and the indicator is 100 − 100 ÷ 4 = 75. If the price falls by 0.2 in the next period, the average rise becomes (0.30 × 3 + zero) ÷ 4 = 0.225, the average fall (0.10 × 3 + 0.2) ÷ 4 = 0.125, and the indicator about 64.3. So the indicator knows nothing about the level of the price; it knows only how much the price has risen and how much it has fallen recently.

An awareness booklet published by the Saudi Capital Market Authority on profits and analysis in the capital market uses the names “overbought” and “oversold” (our translation) for what this indicator measures, without specifying a number for either. This lesson links the two names to the limits 70 and 30 because they are the limits on which its test was registered before it was run, and by the two names it means nothing more than a number above 70 or below 30.

The following diagram is drawn from the euro’s price in dollars that the US Federal Reserve Board publishes in its H.10 release: the daily reference rate at noon in New York, and the days here are days that have a reference rate, not calendar days.

The euro’s price against the dollar, with the relative strength index below it Two panels with one time axis, from 1 October 2025 to 25 September 2026. The upper panel is a line of the euro’s price in dollars from the H.10 release. The lower panel is the fourteen-day relative strength index by Wilder’s method, calculated from the same price, with a scale from zero to one hundred and the lines 30 and 70 on it. In the period the indicator was above 70 on 4 days and below 30 on 7 days, and its last value is 29.7. Time runs from left to right in the two panels. The price at the top, and the indicator calculated from it at the bottom US dollars per euro; and the indicator from zero to one hundred 1.12 1.14 1.16 1.18 1.20 0 30 70 100 Relative strength index (14 days) January 2026 April 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 indicator is calculated from this data, and is not from the source’s publication.

In the year ending on 25 September 2026 the indicator was above 70 on only 4 days, and below 30 on 7 days, and its last value is 29.7 and the price 1.1400

On small screens, drag the diagram sideways to see all of it

Of the 247 days in the window, the indicator was above 70 on 4 days and below 30 on 7 days. So the two lines in this year were a rare event, not a daily condition.

What does the MACD indicator calculate?

The MACD indicator is three numbers from two exponential moving averages (EMA). The MACD line is the twelve-day exponential average minus the twenty-six-day exponential average. The signal line is the nine-day exponential average of the MACD line itself. The bars (histogram) are the difference between the two lines. The twelve-day exponential average gives the latest price a weight of 2 ÷ 13, that is, about 15.4%, and the twenty-six-day one 2 ÷ 27, that is, about 7.4%. So when the price rises, the short average follows it faster than the long one, and the MACD line goes above zero.

The numbers here are in pips, and the pip in this pair is 0.0001: a MACD line “50 above” means that the short average is higher than the long one by fifty pips. And because the MACD is built on two moving averages, it inherits their lag, which the previous lesson in this level, on moving averages, explained: it lags behind the price because each average carries prices that have passed.

The euro’s price against the dollar, with the MACD indicator below it Two panels with one time axis, from 1 October 2025 to 25 September 2026. The upper panel is a line of the euro’s price in dollars from the H.10 release. The lower panel is the MACD indicator calculated from the same price: the MACD line is the twelve-day exponential moving average minus the twenty-six-day exponential average, the signal line is its nine-day exponential average, and the bars are the difference between them, all in pips. Above zero means that the short average is higher than the long one. In the period the MACD line crossed the signal line 18 times. The highest reference rate in the period was on 27 January 2026, and the MACD line reached its highest on 30 January 2026. Time runs from left to right in the two panels. MACD: the difference between two exponential moving averages US dollars per euro at the top; and the MACD in pips at the bottom Daily price MACD line Signal line 1.12 1.14 1.16 1.18 1.20 100 below 50 below 0 50 above 100 above MACD (12, 26, 9), and the grey bars are the difference between the two lines January 2026 April 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 MACD, the signal line and the bars are calculated from this data, and are not from the source’s publication.

The highest reference rate in the year was 1.1980, on 27 January 2026; and the MACD line did not cross the signal line downwards until 5 February, after 7 days and a fall of 178 pips

On small screens, drag the diagram sideways to see all of it

This lag shows at the clearest point of the year. The price reached its highest, 1.1980, on 27 January 2026. And the MACD line did not cross the signal line downwards until 5 February, after 7 days, when the price was 1.1802, that is, lower by 178 pips. Over the whole year the line crossed its signal line 18 times, upwards and downwards. In an educational guide published in Arabic by a broker and read for this lesson, the move of the MACD above zero is read as a signal to buy, and below it as a signal to sell. The diagram shows only what that move calculates: that the short average became higher or lower than the long one, and this happened 9 times in the year. As for the crossing between the two lines, it means that an average of the difference between the two averages became higher or lower than the difference itself.

What does the Stochastic indicator calculate, and why is it not drawn here from real data?

The Stochastic indicator places the closing price (close) in its position between the lowest price (low) and the highest price (high) in the last 14 periods: line K = (closing price − lowest price) ÷ (highest price − lowest price) × 100, and line D is the average of the last three values of K; and in the interface of an Arabic platform read for this lesson, line K is written %K. In a hypothetical example with no currency: if the highest price in the fourteen periods is 104, its lowest 100, and the period closed at 103, then line K = (103 − 100) ÷ (104 − 100) × 100 = 75: the period closed at three quarters of its latest range.

This indicator needs the highest price and the lowest price in each period, and there is no official source that publishes them for currency prices: the H.10 release and the European Central Bank (ECB) provide one reference rate for each day. As for the RSI and the MACD, one price for each day is enough for both, so they were drawn from real data, and the Stochastic was drawn from hypothetical data.

The Stochastic indicator below hypothetical candles, hypothetical example Hypothetical example: 80 candles for a hypothetical pair, generated by a written rule, not real data, and the price axis has no numbers, deliberately. Below them is the Stochastic indicator: the first line is K, which is the position of the closing price between the lowest price and the highest price in the last fourteen periods, from zero to one hundred, and the second is D, which is the average of the last three values of the first. The indicator’s scale is numbered because it is not a price, and the lines 20 and 80 are on it. Time runs from left to right. Stochastic: where did the period close relative to its latest range? Hypothetical price, the axis has no numbers because it is not the price of any real pair Hypothetical example 0 20 80 100 Stochastic: line K (14) in purple, and line D (3) in orange Each candle is one period, and time runs from left to right Source: candles generated by a written rule (in the level’s constants file) that is a random walk with a fixed seed, not from any real price, and not copied from a chart of any market. The indicator is calculated from them.

Hypothetical example: on a random walk with no pattern at all, line K was above 80 in 12 periods and below 20 in 16 periods

On small screens, drag the diagram sideways to see all of it

The candles in this diagram are generated by a written rule, which is a random walk: every move in it is independent of what came before. Even so, line K rose above 80 and fell below 20 repeatedly, as it does on any real chart. The two lines 20 and 80 are drawn only to make reading easier. So the indicator’s swing between the two extremes of its scale does not show that there is a pattern in the price; random data produces the same shape.

Why does your number on the platform differ from the number here?

Every real value of the indicators in this lesson is calculated from the noon rate in New York. The platform calculates them from the closing prices of its candles, and in the documentation of a platform (read for an earlier lesson), the candles in pairs traded over the counter (OTC) are built from the price at which the broker buys from you (bid), which the broker displays, and that documentation does not say when the daily candle begins. So the RSI on your platform on the same day is a different number. And even the two official prices of the euro, the noon rate in New York and the ECB’s reference rate, differed by ten pips or more on 75.3% of the days on which each of them has a price, and these days number 6,864.

What followed the crossing of the 70 and 30 lines in the data?

This test was registered in the lesson’s outline before it was run, and it is published with what it found. The question: after the fourteen-day RSI crosses the 70 line upwards, is the price lower after 10 days more than happens after an ordinary day? And after it crosses 30 downwards, is it higher? The data: H.10 prices for the dollar against the yen, sterling against the dollar, and the dollar against the Canadian dollar from 2 January 1974, and for the euro against the dollar from 4 January 1999, up to 25 September 2026. The comparison is with the same proportion over all the days of the series, and the difference is in percentage points. A difference counts as present in this sample if it exceeds two standard errors, and otherwise there is no difference that can be measured. No other setting was tried: no period other than 14, no pair of limits other than 70 and 30, and no horizon other than 10 days.

What followed the relative strength index’s crossing of the 70 and 30 lines? The result of the count registered before it was run, on the daily H.10 prices of four pairs from 1974 (and the euro from 1999) up to 25 September 2026. Each row has a dot, which is the difference, in percentage points, between the share of the events after which the price came, ten days later, in the opposite direction, and the share of the same thing on all days. The horizontal line around the dot is two standard errors on each side. Right of zero means that the reversal came after the event more than usual, and left of it less than usual. The horizontal axis increases from left to right. The rows whose difference falls outside two standard errors: dollar/yen after 70, dollar/yen after 30, the four together after 30, and all of them are to the left, that is, the reversal came less than usual. After crossing 70 or 30: did the reversal come more than usual? The difference from an ordinary day in percentage points, after ten days, with two standard errors on each side After crossing 70 upwards: was the price lower after ten days? After crossing 30 downwards: was the price higher after ten days? Euro/dollar, 106 events Dollar/yen, 214 events Sterling/dollar, 187 events Dollar/Canadian dollar, 232 events The four together, 739 events Euro/dollar, 93 events Dollar/yen, 230 events Sterling/dollar, 205 events Dollar/Canadian dollar, 161 events The four together, 689 events 20 less 10 less zero 10 more 20 more Reversal less than usual Reversal more than usual In blue: a row whose difference falls outside two standard errors. In grey: no difference that can be measured. 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 indicator and the count are calculated from this data, and are not from the source’s publication, and without any cost.

The reversal did not come more than usual after either of the two lines, by a difference that can be measured; and where a difference fell outside two standard errors, it was in the opposite direction

After 739 crossings of the 70 line in the four pairs, the price was lower after ten days in 45.7% of them, against 49.0% on all days: a difference of 3.3 percentage points with a standard error of 1.8, so there is no difference that can be measured. Had the reversal after crossing 70 come more than usual by five percentage points, the difference would have appeared in this count about six times in every ten (with its margin of error corrected for overlap, as follows), and had it come more by three points, it would have appeared about once in every four. And after 689 crossings of the 30 line, the price was higher in 44.7% of them, against 50.6%: a difference of 5.9 percentage points with a standard error of 1.9, and it is a difference in this sample, the opposite of what the phrase “oversold” suggests: the rebound after the crossing came less than usual, not more. Of the eight rows for the pairs individually, two fell outside two standard errors, both for the dollar against the yen and in the same direction, one of them by a small difference. And with eight rows, chance alone brings about 0.4 of a row outside on average, so two rows are more than chance gives. But with the corrected margin of error only one of them remains outside it, the dollar against the yen after crossing 30.

Any row that fell outside, together with the pooled difference after crossing 30, is not a signal in any direction. It appeared in this sample of reference rates, before any cost, and one pair carries a large part of the pooled difference: after crossing 30 the difference for the dollar against the yen was 8.4 percentage points, and it is the only one of the four pairs that fell outside two standard errors, while the differences for the other three were between 2.4 and 7.0 points without any of them falling outside. So none of that serves as evidence that anyone can trade on it.

It was also registered that the count would be repeated after removing events that fall close together, that is, those ten days or less away from another event, and the registration did not say whether to look before the event or after it. So the reading that looks only at what was known on the day of the event was used: a crossing is removed if another crossing came before it in the previous ten days. With it, the result stayed as it is with all the events, and the days of this count do not overlap. In the full count, about four in every ten crossings came ten days or less after another crossing, so their days overlapped, and so its printed margin of error is narrower than it should be, and the correct one is about 1.15 times as wide; with it, the row for the dollar against the yen after crossing 70 falls within the limits of chance, and the pooled difference after crossing 30 remains outside them. As for the other reading, which also removes an event if a crossing came after it in the following ten days, it reverses the sign, because it chooses the events by what will happen to the price itself; and this is an example of what looking ahead does in any test.

The limits of this count are stated with it: it is on one reference rate for each day, not on a price at which it was possible to trade, and without a spread or any cost, and it concerns one reading of one indicator with one setting. It says nothing about other readings, nor about other timeframes, nor about other markets.

What you are not usually told

The 70 line is a chosen number, not a measured limit at which the price rebounds. The calculation says why: the indicator stays above 70 as long as the average of the rises in the last fourteen days is more than two and a third times the average of the falls, and this is what happens in a strong, continuous rise. In the four pairs since 1974 (and the euro since 1999), the longest continuous run above 70 was between 20 and 29 days, and the longest run below 30 between 23 and 39 days.

The three indicators as calculated in this lesson
Indicator What it calculates The prices it needs Scale Source of its lag Drawn here from
Relative strength (14)Average rise against average fallOne price for each periodFrom zero to one hundredAverages over 14 periodsReal data
MACD (12, 26, 9)The difference between two exponential averages, and an average of that differenceOne price for each periodIn pips, around zeroTwo moving averages, then a third averageReal data
Stochastic (14, 3)The position of the close between the highest price and the lowest priceThe close, the highest price and the lowest priceFrom zero to one hundredA 14-period window, then an average of 3Hypothetical data

Summary

  • The three indicators are a calculation on past prices alone: relative strength compares rises with falls, the MACD measures the difference between two averages, and the Stochastic places the close in its latest range.
  • An indicator’s number changes with the price it is calculated from and its time: the noon rate in New York gives one number, and your platform’s candles give another number.
  • In the pre-registered test on more than fifty years of reference rates, no reversal more than usual came after a crossing of 70 or 30 by a difference that can be measured, and that was before any cost.
  • Today: open the settings of the relative strength index on your platform and write down the period and the price it is calculated from, then open the settings of the MACD and check whether it uses two exponential averages of twelve and twenty-six days, or other numbers.
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 Fibonacci ratios: what their supporters say, and what the data says.