MACD vs RSI: trend momentum or overbought and oversold

By Oalgo · Last reviewed

MACD shows trend momentum: it is the gap between a fast and a slow moving average, so it turns after price has moved. RSI compares recent up moves with down moves on a scale from 0 to 100 and is read as a level, such as overbought or oversold.

What do the two look like on the same prices?

#
Chart: example prices with MACD below them: the MACD line, its 9-period average line, and the histogram, which is the gap between the two lines.PriceMACD lineAverage lineHistogram0
Example prices, made up for this page. Settings 12, 26 and 9. The same prices are used in the next chart.
Chart: the same example prices with a 14-period RSI below them. Lines mark the levels 30 and 70.PriceRSI 147030
Example prices, made up for this page.

How do MACD and RSI differ?

#
MACDRSI
What it measuresThe gap between a 12-period and a 26-period EMAUp moves compared with down moves over 14 candles
ScaleIn price units, with no fixed top or bottomBetween 0 and 100, on any prices
LinesThe MACD line, the average line (a 9-period EMA of the MACD line) and the histogramOne line
A usual ruleThe MACD line crossing above or below the average line, or zeroRSI falling below 30 or rising above 70
How to read itThe sign and the crossings show momentum. It follows price, so it turns after price has turnedThe level shows how strong recent moves were, read against 30 and 70
Where it strugglesA sideways market: the two lines cross back and forthA strong trend: it can stay above 70 or below 30 for a long time

Because MACD is in price units, a value that is large for one market is small for another. RSI stays between 0 and 100, so its levels mean the same thing on any prices.

When do people use each?

#
  • MACD: to follow the direction of a trend, with a rule on the MACD line crossing the average line or zero.
  • RSI: to find moves that went a long way in one direction, with a level such as 30 or 70.
  • Together: one for direction and one for the entry, so that two conditions must agree. That adds a setting and can mean fewer trades.

How do you test the choice in Oalgo?

#

In Oalgo you can tell Oalgo AI your MACD or RSI rule in your own words, check the rule it builds, and test it. After testing, if you choose, you Go Live with your own Live Strategy on your own Venue Account at a Supported Venue.

  • Test each rule alone first, then the two together, with the same Stop Loss and the same dates.
  • Run a backtest on a trending period and on a sideways one. MACD and RSI tend to struggle in different ones.
  • Check the number of trades and the fees for each version.
  • Run a forward test before you decide, with simulated funds.

What can neither tell you?

#

Neither says how far a move will go or when it will end. MACD comes after the move has started, and RSI can sit at an extreme while price keeps going. Two indicators agreeing is still two readings of the same past prices.

Read next