Five years ago, investors were feeling hopeless, battered by the market and pained by their portfolios.