A bounce by tech stocks Wednesday allowed the Nasdaq Composite index to snap a three-day losing streak, while a fractional loss for the S&P 500 left the benchmark down for a fourth consecutive session. The Nasdaq ended 0.2% higher, while the S&P 500 shed 0.3 point, or less than 0.1%, to close at 2,629.27, according to preliminary figures. The 4-day losing streak is the S&P’s longest since March. The Dow Jones Industrial Average fell around 40 points, or 0.2%, to close near 24,141. Energy shares were the weakest link, with the S&P 500 energy sector down 1.3% as oil prices retreated.