Year-end decline aside, all three indices logged solid gains for the full year, with the Dow rising 13%, the S&P 500 16.4% and the Nasdaq 20.4%.