By the Numbers

S&P on pace for best year since 1998. What's next?

Getty Images

If history is an indication, the stock market could extend its rally into December.

U.S. stocks finished the shortened-holiday week with another gain, up for eight consecutive weeks. The set its longest winning streak in nearly 10 years, while it was the Dow's longest consecutive weekly increase in three years. Both indexes are up 6.8 percent and 6.7 percent, respectively, in that period.

During Friday's trading session, the S&P 500, Dow industrials, Dow transports and Russell 2000 set new all-time intraday highs, while the Nasdaq hit a fresh 13-year intraday high.

Since the 1900s, December is the best month for the Dow, and second-best month for the S&P 500 and Nasdaq. Historically, all three indexes have gained on average between 1 and 2 percent, respectively.