Nasdaq Composite and Standard and Poor's 500 close at all-ti