NEW YORK (Reuters) - U.S. stocks rallied on Tuesday, helped by gains in the technology and consumer sectors, while Netflix and UnitedHealth earnings impressed investors and boosted optimism about the U.S. corporate reporting season.

Traders work on the floor of the New York Stock Exchange in the borough of New York City, New York, U.S., April 17, 2018. REUTERS/Brendan McDermid

Netflix (NFLX.O) shares rose 10 percent to hit an all-time high after the video-streaming pioneer smashed analysts’ quarterly subscriber estimates.

UnitedHealth (UNH.N) jumped 3 percent after the largest U.S. health insurer raised its earnings forecast and posted results that beat Wall Street estimates.

Analysts expect profits of S&P 500 companies to rise 18.6 percent in the first quarter, the biggest increase in seven years, according to Thomson Reuters data.

“Earnings are threading a little bit ahead of Wall Street expectations,” said Jamie Cox, managing partner of Harris Financial Group in Richmond, Virginia. “We get into the teeth of technology next week. It’s been more volatile so you would expect that volatility to reverse as earnings come in.”

Slideshow (2 Images)

The Dow Jones Industrial Average .DJI rose 218.16 points, or 0.89 percent, to 24,791.2, the S&P 500 .SPX gained 28.14 points, or 1.05 percent, to 2,705.98 and the Nasdaq Composite .IXIC added 124.30 points, or 1.74 percent, to 7,280.58.

“Barring any unforeseen negative news, geopolitical, economic, political, perhaps we’ll end up today the way we ended up yesterday - which was at or near highs for popular averages,” said Ted Weisberg, a trader with Seaport Securities in New York.

Data showed U.S. homebuilding increased more than expected in March amid a rebound in the construction of multi-family housing units. The PHLX housing

Read more from our friends at Reuters: