All three major U.S. indexes end the week sharply lower

U.S. stocks rose Friday, capping a turbulent week with daily gains after a rebound in technology companies and some better-than-expected third-quarter results.

An early rally pushed the Dow industrials up more than 400 points before sputtering later in Friday’s session, with the blue-chip index briefly turning negative. But shares advanced again heading into the close.