Set-and-forget investing can get good results over long periods, but you’ll need to overcome the temptation to trade.