As this up-and-down year for stocks comes to a close, market-watchers say future gains will be tied to earnings.