Stocks gained ground early Monday as they came off their best week in 2015, but faded in afternoon trading and the market sustained small losses for the day.

For Monday:

The Dow Jones industrial average lost 31.13 points, or 0.2 percent, to 17,792.68.

The S&P 500 index declined 2.58 points, or 0.1 percent, to 2,086.59.

The Nasdaq composite index fell 2.44 points, or 0.1 percent, to 5,102.48.

For the year:

The Dow is down 30.39 points, or 0.2 percent.

The S&P is up 27.69 points, or 1.3 percent.

The Nasdaq is up 366.42 points, or 7.7 percent.