Stocks moved sharply higher over the course of the trading day on Tuesday, partly offsetting the weakness that was seen last week. The rally on the day extended the volatility seen in the markets over the past several sessions.