Stocks edge higher, snapping a 5-day losing streak for Dow

Materials companies led U.S. stocks modestly higher Friday, recouping much of the market's loss from a day earlier and snapping a five-day losing streak for the Dow Jones industrial average.

Another crop of encouraging company earnings news helped lift the market, but investors were mostly focused on events in Washington as Donald Trump was sworn in as the 45th president of the United States.

The major stock indexes pulled back slightly as Trump delivered remarks after taking the oath of office. Among topics of particular interest to Wall Street, the speech touched on trade and the Trump administration's intention of protecting the U.S. from "the ravages of other countries making our products, stealing our companies, and destroying our jobs."

"The market is still embracing the Trump agenda, based on the market's reaction to the speech," said Quincy Krosby, market strategist at Prudential Financial. "Now the question the market has is, specifically, what does all of that mean in terms of trade?"

The Dow rose 94.85 points, or 0.5 percent, to 19,827.25. The Standard & Poor's 500 index gained 7.62 points, or 0.3 percent, to 2,271.31. The Nasdaq composite index added 15.25 points, or 0.3 percent, to 5,555.33.

Despite Friday's gains, the three major stock indexes ended the week lower.

Stocks have slowed in 2017 after surging for several weeks following Election Day on investor optimism that a Trump administration and Republican Congress would usher in business-friendly policies. However, the possibility of increased tariffs or trade restrictions has also loomed as a potential drag in profits for big U.S. companies.

"Historically, the market has performed best in the November-April time frame," said Sam Stovall, chief investment strategist at CFRA Research. "The Trump victory added a tailwind to this traditional seasonal factor."

Typically, stocks don't do well on inauguration day. Going back to 1928, the S&P has averaged a drop of 1.05 percent on inauguration days, according Bespoke Investment Group.