Odds are that the stock market will have a pretty good fourth quarter, but it's almost certain to be a volatile one.

The third quarter ends Tuesday, with the outperforming with a more than 2 percent gain, and the small-cap Russell 2000 lagging with a more than 6 percent loss. The Dow was up 1.4 percent for the quarter, and the S&P 500 was up about 1 percent.