President Trump returned from Asia in time for markets to finish October on an upbeat note. Now, focus turns to whether an endgame is in sight for the monthlong government shutdown. Meanwhile, investors will dig into earnings from a range of companies including Berkshire Hathaway, McDonald’s and Palantir Technologies.