Positive earnings news helped nudge stocks higher on Thursday, breaking a two-day losing streak. Supermarket operator Kroger jumped after reporting income that was ahead of what analysts were expecting. Costco also rose after its earnings beat estimates.

On Thursday:

The Dow Jones industrial average rose 38.82 points, or 0.2 percent, to 18,135.72.

The Standard & Poor's 500 index gained 2.51 points, or 0.1 percent, to 2,101.04.

The Nasdaq composite lost 15.67 points, or 0.3 percent, to 4,982.81.

For the week:

The Dow is up 3.02 points, or 0.02 percent.

The S&P 500 is down 3.46 points, or 0.2 percent.

The Nasdaq is up 19.28 points, or 0.07 percent.

For the year:

The Dow is up 312.65 points, or 1.8 percent.

The S&P 500 index is up 42.14 points, or 2.1 percent.

The Nasdaq is up 246.75 points, or 5.2 percent