The Dow, the Nasdaq and the S&P 500 all hit a record high at the closing bell.

Casino stocks were in focus for a second day following the mass shooting in Las Vegas on Sunday. The attack left 59 people dead and injured another 527 people after a gunman opened fire on a music festival from the 32nd floor of the Mandalay Bay Hotel and Casino. Shares of Mandalay Bay owner MGM Resorts International (MGM - Get Report) and Wynn Resorts  (WYNN - Get Report) finished higher. But Las Vegas Sands Corp.  (LVS - Get Report) closed in the red on Tuesday.

Meanwhile, gun stocks extended Monday's gains. Smith & Wesson parent American Outdoor Brands Corp. (AOBC - Get Report) was up more than 2.5%. Sturm, Ruger & Co. (RGR - Get Report) also closed in the green.

Shares of BlackBerry Ltd. (BBRY) fell after announcing it will move to the New York Stock Exchange from the Nasdaq. The tech company will begin trading on the NYSE on Oct. 16 under the new ticker BB. CEO John Chen said the "partnership with the NYSE will further raise the profile of our company and strengthen the value of our BlackBerry Secure brand."

More of What's Trending on TheStreet: