 The major averages ending higher and like trading. However, the Nasdaq and S&P 500 posted record closes. Markets will be closing early on Wednesday and closed on Thursday for Independence Day. Tech stocks were the biggest gainers with Amazon, Apple and Microsoft all notching new record closes.