While major U.S. stock-market indexes are still a few percentage points below record levels hit earlier this year, recent trading may feel reminiscent to 2017, when equities rose in essentially uninterrupted fashion, with little in the way of …