The very best advice would have required a crystal ball: You should have sold precisely on Jan. 3, when the S&P 500 stock index was at its peak, and bought on June 16, when it hit bottom. (Then, quite possibly, you should have sold again on Aug. 16, before the market turned rocky. The verdict is still out on that one.)