A choppy day of trading on Wall Street ended Tuesday with stocks closing lower after a technology sector-led sell-off strengthened toward the end of the day.

That late-afternoon burst of selling erased modest gains for the market, which was coming off two weeks of gains.

The major indexes wavered for much of the day between small gains and losses as investors weighed a mixed batch of earnings reports from McDonald's, Procter & Gamble and other big companies.

Weak profits and sales pulled shares in McDonald's lower. Travelers sank after the insurance company reported earnings that fell far short of analysts' forecasts. Meanwhile, traders bid up shares in Procter & Gamble after the consumer products maker raised its profit forecast for the year following surprisingly good third quarter earnings.

"We're still waiting to see how earnings season shakes out," said Karyn Cavanaugh, senior markets strategist at Voya Investment Management. "There have been some winners and some losers. There's been a couple of misses."

The S&P 500 index fell 10.73 points, or 0.4%, to 2,995.99. The index spent most of the day at or above 3,000 and briefly climbed 0.3% before the late-afternoon slide.

The Dow Jones Industrial Average dropped 39.54 points, or 0.2%, to 26,788.10.

The Nasdaq, which is heavily weighted with technology stocks, bore the brunt of the selling, losing 58.69 points, or 0.7%, to 8,104.30.

Smaller company stocks fared better than the rest of the market. The Russell 2000 index added 0.73 points, or 0.1%, to 1,550.87.

Investors have been shifting their focus to corporate earnings reports as they wait for developments in the trade negotiations between the U.S. and China.

Welcome to the discussion.

Keep it Clean. Please avoid obscene, vulgar, lewd, racist or sexually-oriented language.
PLEASE TURN OFF YOUR CAPS LOCK.
Don't Threaten. Threats of harming another person will not be tolerated.
Be Truthful. Don't knowingly lie about anyone or anything.
Be Nice. No racism, sexism or any sort of -ism that is degrading to another person.
Be Proactive. Use the 'Report' link on each comment to let us know of abusive posts.
Share with Us. We'd love to hear eyewitness accounts, the history behind an article.