The U.S. stock-market rally that marked the first half of 2023 continues into the second half, leaving bullish investors clinging to the optimism that has helped the technology-heavy Nasdaq 100 index advance by 42% for the year to date, while bears are trying to time the point when momentum fizzles out and the trend shifts to the downside.