2024 has been a generally outstanding year for the stock market, with the S&P 500 ( ^GSPC 0.82%) up by nearly 30% year to ...