Four of the six major banks shine in a pricey stock market, despite unfavorable trading results. Citigroup takes a hit.

Four of the six banks—JPMorgan Chase (ticker: JPM), Citigroup (C), Bank of America (BAC), and Wells Fargo (WFC)—reported mixed third-quarter results last week. Leader JPMorgan produced an 11% gain in earnings...