The S&P 500 is on the verge of hitting a new all-time high heading into the end of the year The potential new high would be the index's first since January 2022, after trading sideways for about two years The current pattern in the S&P 500 is consistent with secular bull markets, suggesting more gains ahead