Five of the 11 major S&P 500 sectors were lower, led by a 0.4 percent decline in healthcare .SPXHC .
Stocks closed mixed in range-bound trading, as the S&P 500 posted a new intraday record while the Nasdaq notched another all-time closing high in capping off a three-day winning streak. The sector rose 0.5 per cent, with an outsized boost from Microsoft, which rose 2 percent.
The dollar index.DXY - which measures the greenback against six other major currencies - hit a six-month low, while prices of safe-haven gold rose.
Shares of Fireye rose 7.5 per cent, and Symantec and Palo Alto Networks both gained around 3 per cent.
Profit during the first quarter rose 5.5 percent to $536.3 million, beating expectations.
The Nasdaq Composite headed toward a fresh record close as shares of technology companies climbed in an otherwise downbeat session.
The U.S. stock market opened higher on Monday as crude oil prices gained around 3 percent.
The Russell 2000 index of smaller stocks rose 0.76 points, or 0.1 percent, to 1,394.68.
In its mid-year update released Tuesday, the United Nations said the acceleration is underpinned by firm economic growth in many developed countries and strengthened prospects in countries in transition. July Brent on London's ICE Futures exchange gained 98 cents, or 1.9%, to end at $51.82.
Hull relegated, Crystal Palace secures Premier League status
After winning only three out of 20 league games since winning promotion, Mike Phelan was sacked in January. It's not often that a manager improves his reputation in a season where his team is relegated.
He says a May 1 Supreme Court ruling found banks "cannot be held responsible for harm they didn't cause".
ASIA'S DAY: The Shanghai Composite Index ended up 0.7 percent at 3,112.96 after spending most of the day in negative territory.
South Korean stocks rose even after North Korea launched a new type of missile over the weekend and its leader promised more missile tests.
"The oil markets are acting well and that's helping", said R.J. Grant, head of trading at Keefe, Bruyette & Woods in NY, who also cited the strong corporate earnings season.
Real estate shares slid 0.4% in the S&P 500, among the worst-performing sectors in the broad index Tuesday, after data showed US new-home construction declined in April for the third time in four months. On the Nasdaq, 1,254 issues rose and 850 fell.
Brent crude, the global standard, rose $1.23 to $52.16 United States per barrel on Monday.
U.S. Treasury yields fell after the housing data added to recent soft economic news that has raised new doubts over how many times the Federal Reserve will raise interest rates this year. US gold futures gained 0.57 per cent to $1,237.00 an ounce.
Tesla (TSLA.O) was down 2.1 percent at $318.01 after Morgan Stanley downgraded its rating on the electric-car maker's stock. Thermo Fisher rose 0.4 per cent.