A record high in the S&P 500 would suggest double-digit gains in 2024