The Nasdaq closed at a record on Monday while the S&P 500 gained slightly as technology stocks advanced ahead of Nvidia's highly anticipated earnings and investors gauged the timing of an interest rate cut by the Federal Reserve.