Investors remained in a record-setting mood Thursday.

The Standard & Poor’s 500 index closed at an all-time high for the second time in two days and notched its fifth gain in five days.

The Dow Jones industrial average and Nasdaq composite ended mixed after drifting between small gains and losses for much of the day.

The three key stock indexes all opened higher, holding on to tiny gains in premarket trading as investors sized up the latest data on unemployment aid applications and an index of economic indicators.

The Labor Department reported that applications for unemployment benefits fell last week to 312,000, the lowest in more than six years.

The Conference Board added to the good news, saying its index of leading indicators rose 0.5 percent in May from the previous month.

“Right now we’re in a situation where they’re pretty boring markets, just a slow, easy grind,” said Chris Gaffney, a senior market strategist at EverBank Wealth Management.

The S&P 500 index rose 2.50 points, or 0.1 percent, to 1,959.48. That’s slightly above the prior day’s record close of 1,956.98. The last time the index closed at a record high was June 9.

The Dow Jones industrial average added 14.84 points, or 0.1 percent, to 16,921.46. The Nasdaq composite slipped 3.51 points, or 0.1 percent, to 4,359.33.

The three indexes are all up for the year.

The string of record highs has the S&P 500 index running ahead of its 50-day moving average. That suggests it could be in for a pullback, said Jim Russell, senior equity strategist at U.S. Bank Wealth Management. Russell still expects the market to move higher in coming months.

“We think the environment is still favorable for equities to have an upward bias,” Russell said. “It’s still too early to put the bear suit on.”

The U.S. economy shrank at an annual rate of 1 percent in the January-March quarter, the victim of a severe winter that slowed business activity in a number of areas.

Many analysts anticipate growth rebounded strongly in the April-June quarter.

“We know the economy is showing signs of improvement, and we’ve seen that trajectory over the past two or three months,” said Russell. “To move the equity market to a higher level we need to see anecdotal evidence that company earnings are starting to increase.”

The market will get a sense of that next month, when the next round of corporate earnings begins. Until then, the next key market mover will likely be the June jobs report, due out the first week of July.

Thursday, investors waded through a mixed bag of corporate news.

Kroger rose $2.39, or 5.1 percent, to $49.66 after the supermarket operator raised its earnings forecast for the year. American Apparel jumped 6.7 percent after the company’s board said it would fire the CEO. The stock rose 4 cents to close at 68 cents.

Other companies didn’t fare as well.

Rite Aid reported its fiscal first-quarter earnings sank 55 percent due to higher-than-expected drug costs and other expenses. The stock fell 26 cents, or 3.5 percent, to $7.18.

Pier 1 Imports tumbled 13.1 percent after the furniture retailer’s quarterly profit fell short of Wall Street expectations. The company also lowered its full-year forecast. The stock fell $2.40 to $15.86.