Stocks ended moderately lower on Tuesday, ending an eight-day winning streak for the market that had been fueled by strong company earnings and economic data. The S&P 500 index lost 16.45 points, or 0.4 percent, to close at 4,685.25. The last time the S&P 500 had eight straight days of gains was April 2019. The Dow Jones Industrial Average fell 112.24 points, or 0.3 percent, ending at 36,319.98 and the Nasdaq lost 95.81, or 0.6 percent, to 15,886.54. The market was pulled lower by companies that rely on consumer spending and technology stocks, which had driven the market higher in recent days. Tesla lost 12 percent after its founder Elon Musk said he would sell 10 percent of his holdings in the electric car maker, based on the results of a poll he conducted on Twitter. The company’s stock is down more than 16 percent so far this week, however …