We’re days away from the end of 2021, and the S&P 500 has put on a master class in outperforming expectations. Even with its pullback in recent days, the broad market index has gained nearly 30% this year, more than double its long-term historical average.