U.S. stocks are edging mostly lower as the market pulls back from an all-time high reached last week.

Energy shares were among the biggest decliners Monday as the price of oil fell. The Nasdaq composite eked out a small gain, extending a winning streak.

The Dow Jones industrial average slipped 23 points, or 0.1 percent, to 18,116.

The Standard & Poor's 500 index lost half a point, less than 0.1 percent, to 2,109.

The Nasdaq edged up five points, or 0.1 percent, to 4,960. It was the ninth straight gain for the Nasdaq.

Homebuilder stocks slumped on news that sales of previously occupied homes fell last month.

The price of oil fell for the fourth day running, giving up $1.36 to close at $49.45 a barrel in New York.