S&P on pace to score fourth month of consecutive gains. History tells us what could come next