Stocks ended mostly lower, ending the longest winning streak in more than three years for the Standard & Poor's 500 index, the AP reports. The Dow Jones industrial average eked out a tiny gain Thursday, enough to mark another all-time high. Energy companies fell more than the rest of the market. Range Resources dropped 5.3% and Southwestern Energy lost 4.7%. Several companies slumped after reporting weak results. Molina Healthcare plunged 18% and TripAdvisor dropped 11%. High-dividend stocks like utilities and phone companies rose. The S&P 500 index slipped 2 points, or 0.1%, to 2,347. The Dow inched up 7 points to 20,619. The Nasdaq composite declined 4 points, or 0.1%, to 5,814. (More Dow Jones stories.)