Stocks are set to exit October with a tailwind, as the market enters a historically positive time of year for stocks.