© Reuters.

By Yasin Ebrahim

Investing.com -- The Dow closed higher Friday as stocks notched their best week since June, led by energy and tech stocks amid bets for a less hawkish Federal Reserve following data earlier this week showing easing inflation.

The Dow Jones Industrial Average gained 0.10%, or 32 points, taking its weekly gain to 4%. The Nasdaq was up 1.9% and the S&P 500 rose 0.88%.

Energy stocks rose more than 3%, buoyed by rising oil prices as China eased some of its Covid-19 restrictions, stoking hopes for a jump in demand.

Occidental Petroleum Corporation (NYSE:OXY), Phillips 66 (NYSE:PSX), and Devon Energy Corporation (NYSE:DVN) led the sector higher, up more than 4%.

Technology continued to rack up gains for a second-straight day as optimism that inflation has peaked encouraged further bets on less hawkish Fed rate hikes.

Alphabet (NASDAQ:GOOGL) rose more than 2% to lead big tech higher, while Apple Inc (NASDAQ:AAPL), Microsoft Corporation (NASDAQ:MSFT), and Meta Platforms (NASDAQ:META) were up more than 1%.

But some continued to caution against going all-in on tech, and highlight the need to take a selective approach prioritizing companies that have solid fundamentals and are able to pass on higher costs to consumers. 

“Companies that are growing their cash flows and have not been hurt as bad from inflation are going to perform better than those that were the darlings of the 2021 period that just went straight up,” Wealth Consulting Group Chief Investment Officer Jim Worden told Investing.com's Yasin Ebrahim in an interview on Friday. 

Consumer stocks were also in the ascendancy with casino and travel stocks catching a bid on news of easing Covid-19 restrictions in China, while retail stocks were led higher by Ralph Lauren.  

Ralph Lauren (NYSE:RL) rose more than 9% after the designer apparel maker reported better-than-expected fiscal second quarter results, driven by "solid" performance in North America, Wedbush said after lifting its price target to $100 from $95, citing "greater confidence around management’s execution during tough times." 

Amazon (NASDAQ:AMZN) also played a big role in pushing consumer stocks amid reports that the e-commerce giant is mulling cost-cutting measures that could include culling unprofitable divisions.  

Health care, however, kept the broader market from rising further, as investors appeared to move out of defensive corners of the market. Cigna (NYSE:CI), Humana Inc (NYSE:HUM), and Elevance Health Inc (NYSE:ELV) were the worst performers, down more than 5%. 

In cryptocurrency-related news, crypto exchange FTX announced that it was filing for bankruptcy and its chief executive Sam Bankman-Fried resigned. Bitcoin fell 8% and Ethereum fell more than 6%

We read at: Investing.com