Stocks slipped on Monday, but ended October with notable gains.