The relative strength index (RSI) is a momentum indicator that measures the magnitude of recent price changes to analyze overbought or oversold conditions.