The S&P 500 continues chugging into record territory, on track to end August with its best performance over the first eight months of a calendar year since 1997. History offers no guarantees, but shows that strong performances tend to see follow-through.