If history is a guide, the going will continue to be good for stocks into the end of the year.