The NASDAQ Composite jumped on Friday, with help from Netflix and Alphabet, as investors tried to hang onto the January rally and earnings reports continued to trickle in.
The Dow Jones Industrials eked ahead 1.85 points to 33,046.41.
The S&P 500 recovered 20.57 points to 3,919.42.
The tech-driven index regained 112.70 points, or 1%, to 10,964.20.
For the week, all three indexes are on track to close lower. The Dow is down more than 3% and on track for its worst week since September.
The S&P 500 is down more than 2% and could notch its worst weekly performance since December. The NASDAQ is down more than 2% and on pace to break a two-week win streak.
Netflix gained 8% after posting more subscribers than expected even though its quarterly earnings missed analysts' estimates. Alphabet rose 3% after the company announced it will lay off 12,000 employees.
Sales of previously owned homes fell for the 11th consecutive month in December, according to the National Association of Realtors.
Existing homes fell to an annualized pace of 4.02 million units in December, down 1.5% month over month and 34% year over year.
Prices for the 10-year Treasury dropped, raising yields to 3.46% from Thursday's 3.40%. Treasury prices and yields move in opposite directions.
Oil prices gained 12 cents to $80.45 U.S. a barrel.
Gold prices edged up $1.60 to $1,925.50 U.S. an ounce.