The stock market gave up an early gain and ended slightly lower, extending a losing streak for the Standard & Poor's 500 index to a ninth day, the longest losing streak in 36 years, the AP reports. While the losing streak for the market barometer has been long, it hasn't been deep. The losses over that time amount to just 3.1%. Investors have been pulling back in recent days as the US presidential race appears to tighten. The Dow Jones industrial average slipped 42 points, or 0.2%, to 17,888. The S&P 500 fell 3 points, or 0.2%, to 2,085. The Nasdaq composite declined 12 points, or 0.2%, to 5,046. (More S&P 500 stories.)