Whiplash on Wall Street as stocks rebound