At the start of the week, the gains were largely due to a correction in technology stock prices after a sharp decline.