New York (CNN Business) 2018 was a record-setting year for stocks, but it's one investors would rather forget.

The Dow fell 5.6%. The S&P 500 was down 6.2% and the Nasdaq fell 4%. It was the worst year for stocks since 2008 and only the second year the Dow and S&P 500 fell in the past decade. (The S&P 500 and Dow were down slightly in 2015, but the Nasdaq was higher that year.)

The S&P 500 was up or down more than 1% nine times in December alone, compared to eight times in all of 2017. It moved that much 64 times during the year.

2018 wasn't all bad. The S&P 500 set an all-time record on September 20, and the Dow closed at its record on October 3. The Dow also closed more than 1,000 points higher on December 26 — the first time it ever accomplished that feat.

Read More