The S&P 500 and the Nasdaq hit record highs for the fourth straight session on Wednesday in a rally led by technology companies as investor sentiment was stoked by optimism over ongoing trade negotiations.
Apple Inc <AAPL.O> led the technology sector's advance as the iPhone maker's shares hit an all-time high. The sector pushed all three major U.S. indexes higher.
The FAANG group of momentum stocks also got a boost from Morgan Stanley's price target increases for Amazon.com <AMZN.O> and Alphabet Inc <GOOGL.O>. The remaining FAANG stocks, Facebook Inc <FB.O> and Netflix Inc <NFLX.O> were down slightly.
Canada appeared to be taking a more conciliatory approach towards its ongoing talks with the United States to salvage the trilateral North American Free Trade Agreement (NAFTA), days after Washington struck a deal with Mexico.
"The market continues to be very happy with the speed with which some of these trade deals are coming together," said Stephen Massocca, Senior Vice President at Wedbush Securities in San Francisco. "As the Trump administration is able to make more immediate progress, the market will look upon that very favourably."
The Commerce Department released its second reading of second-quarter GDP, showing the U.S. economy grew at an upwardly-revised annual rate of 4.2 percent in the quarter, its best performance in nearly four years.
The Dow Jones Industrial Average <.DJI> rose 55.35 points, or 0.21 percent, to 26,119.37, the S&P 500 <.SPX> gained 14.31 points, or 0.49 percent, to 2,911.83 and the Nasdaq Composite <.IXIC> added 67.54 points, or 0.84 percent, to 8,097.58.
Of the 11 major sectors of the S&P 500, seven were in positive territory, with the largest percentage gains seen in the consumer discretionary <.SPLRCD> and technology <.SPLRCT> sectors.
Consumer discretionary stocks were led higher by Amazon.com's 3.0 percent increase.
Restaurant operator Yum China Holdings Inc <YUMC.N> extended its rally, and was up 5.2 percent after rejecting a $17.6 billion buy-out bid from a Chinese consortium.
Among losers, Dick's Sporting Goods Inc <DKS.N> fell 1.6 percent following an underwhelming earnings report, a drop in same-store sales driven by tighter gun controls and a decline in Under Armour sales. Sportswear company Under Armour Inc <UAA.N> stock slid by 1.1 percent.
Shares of American Eagle Outfitters Inc <AEO.N> dropped 7.0 percent after posting disappointing second quarter results and providing lacklustre guidance.
Other speciality apparel retailers were also down.
Advancing issues outnumbered declining ones on the NYSE by a 1.68-to-1 ratio; on Nasdaq, a 1.55-to-1 ratio favoured advancers.
The S&P 500 posted 58 new 52-week highs and 1 new low; the Nasdaq Composite recorded 101 new highs and 20 new lows.