After ending the previous session roughly flat, stocks fluctuated throughout the trading day on Tuesday. The major averages showed big swings as the day progressed but managed to end the session firmly in positive territory.