Wall Street stocks have ended at record highs as surging oil prices and strong earnings from department stores Macy's and Kohl's buoyed investor sentiment.
Crude oil jumped as much as 5 percent on comments from the Saudi oil minister about potential action to stabilise prices and the International Energy Agency's forecast that crude oil markets would rebalance in the next few months.
The S&P energy index rallied 1.3 percent, making it the top gainer among the 10 major sectors, led by a 1.26 percent rise in Chevron.
Macy's shares soared 17.09 percent, marking the best day for the department store operator in nearly eight years after it reported a smaller-than-expected drop in quarterly comparable-store sales and said it would close 100 stores.
Kohl's shares rose 16.17 percent after its quarterly profit beat estimates.
J.C. Penney, which reports on Friday, surged 8.63 percent.
A stock market rally since late June has pushed the S&P 500 index up 7 percent in 2016, helped by better-than-expected quarterly earnings and low interest rates, but some investors are worried about high valuations.
Beating its previous record high from last Friday, the S&P 500 is priced at about 17 times expected earnings, compared with a 10-year average of 14 times expected earnings, according to Thomson Reuters data.
"I'm a bit surprised to see us hitting record highs again," said Randy Frederick, managing director of trading and derivatives for Charles Schwab in Austin. "We are pretty topped out and we should move sideways for awhile."
Robust US economic data also helped on Thursday, with a report showing the number of Americans applying for unemployment benefits fell to 266,000 from 269,000 the previous week.
The Dow Jones industrial average climbed 0.64 percent to end at 18,613.52 points and the S&P 500 gained 0.47 percent to 2,185.79.
The Nasdaq Composite added 0.46 percent to 5,228.40.
In slow trade, about 5.98 billion shares changed hands on US exchanges, compared with the 6.43 billion daily average over the last 20 sessions.
Alibaba rose 5.08 percent after the Chinese e-commerce giant posted a 59 percent jump in quarterly revenue.
Valeant dropped 10.36 percent after the Wall Street Journal reported that US federal prosecutors had opened a criminal investigation on the drugmaker.
Advancing issues outnumbered declining ones on the NYSE by a 1.63-to-1 ratio; on Nasdaq, a 1.76-to-1 ratio favoured advancers.
The S&P 500 posted 34 new 52-week highs and no new lows; the Nasdaq Composite recorded 97 new highs and 29 new lows.