Stocks have extended their gains for the year to start the second half of 2024 with all the major market…