The stock market continued to hit new highs through the third quarter, confounding those who focused on the rapidly changing headlines in the U.S. and throughout the world.