JPMorgan missed estimates for third-quarter profit, weighed down by a securities loss, while Goldman Sachs posted its second-best quarter on an equities boom.