Stocks had surged on Tuesday as economic reports pointed to a thriving housing market and an uptick in consumer confidence .