NEW YORK, RAW – The S&P 500 has eked out its fifth straight record closing high as investors ended the month and the quarter by largely shrugging off positive economic data and looking toward Friday’s highly anticipated employment report.

In the last session of 2021’s first half, the indexes were languid and range-bound, with the blue-chip Dow posting gains while the Nasdaq edged lower.

All three indexes posted their fifth consecutive quarterly gains and the S&P 500 registered its second-best first-half performance since 1998, rising 14.4 per cent.

“It’s been a good quarter,” said Robert Pavlik, senior portfolio manager at Dakota Wealth in Fairfield, Connecticut.

“As of last night’s close, the S&P has gained more than 14 per cent year-to-date, topping the Dow and the Nasdaq. That indicates that the stock market is having a broad rally.”

For the month, the bellwether S&P 500 notched its fifth consecutive advance, while the Dow snapped its four-month winning streak.

The Nasdaq also gained ground in June.

This month, investor appetite shifted away from economically sensitive cyclicals in favour of growth stocks.

“Leading sectors year-to-date are what you’d expect,” Pavlik added.

“Energy, financials and industrials, and that speaks to an economic environment that’s in the early stages of a cycle.”

“(Investors) started the switch back to growth (stocks) after people started to buy in to (Fed Chair Jerome) Powell’s comments that focus on transitory inflation,” Pavlik added.

“Some of the reopening trades have gotten a bit long in the tooth and that’s leading people back to growth.”

“The overall stock market continues to be on a tear, with very consistent gains for quite some time,” said Tim Ghriskey, chief investment strategist at Inverness Counsel in New York.

“Valuations, while certainly high by historical standards, have been at a fairly consistent level, benefiting from the economic recovery.”

The private sector added 692,000 jobs in June, breezing past expectations, according to payroll processor ADP.

The number is 92,000 higher than the private payroll ads economists predict from the Labor Department’s more comprehensive employment report due on Friday.

The Dow Jones Industrial Average rose 225.34 points, or 0.66 per cent, to 34,517.63, the S&P 500 gained 6.98 points, or 0.16 per cent, to 4,298.78 and the Nasdaq Composite dropped 20.12 points, or 0.14 per cent, to 14,508.22.

Boeing Co gained altitude after Germany’s defence ministry announced it would buy five of the plane maker’s P-8A maritime control aircraft, coming on the heels of United Airlines unveiling its largest-ever order for new planes.

Micron Technology advanced ahead of its quarterly earnings report and after BMO upgraded the chipmaker’s stock to “outperform” from “market perform” on continued supply-demand imbalance in 2022.

Walmart jumped after announcing on Tuesday that it would start selling a prescription-only insulin analogue.