U.S. stocks rose on Friday, with the Nasdaq set to post its first weekly gain in three weeks, helped by strength in technology stocks, while energy shares rebounded as oil prices rose. The Dow Jones Industrial Average was down 10 points, or 0.05 percent, to 21,387.29, the S&P 500 gained 3.16 points, or 0.13 percent, to 2,437.66 and the Nasdaq Composite added 23.93 points, or 0.38 percent, to 6,260.62.
Tech stocks had sold off sharply in the past two weeks on concerns over stretched valuations. Oil prices climbed about 1 percent, edging up from 10-month lows, but remained on course for its biggest first-half decline since the late 1990s as production cuts have failed to reduce oversupply. At current levels, the S&P 500 energy index (.SPNY), down 15 percent so far this year, is on track to post its worst weekly decline in about 18 months.
Stocks trade mixed as crude oil rises after falling earlier in the session.