(Reuters) - Wall Street’s top investment banks reported better-than-expected quarterly profits on Tuesday, helped by strength in stock trading and equity underwriting, wrapping up what has been a strong quarter for the big U.S. banks.

Morgan Stanley's MS.N gains from investment banking and trading businesses outstripped those of traditional rival Goldman Sachs Group Inc GS.N, which reported its last results under long-time Chief Executive Officer Lloyd Blankfein.

However, Goldman’s equity trading and underwriting revenue came in much better than that of Morgan Stanley in a quarter that was marked by uncertainties in global financial markets stemming from an ongoing trade war between Beijing and Washington.

Talking to analysts on a post-earnings call, Morgan Stanley’s Chief Financial Officer Jon Pruzan said he expects the firm to be the leader in equities trading by market share globally this year.

Strength at equity trading desks of both banks dwarfed weakness in bond trading, in line with a broader trend across the industry during the third quarter.

Both banks lack big consumer lending units that have fueled profits at rivals such as Citigroup C.N and JPMorgan Chase & Co JPM.N, and instead rely heavily on their trading desks.

To offset the ups and downs of the trading business, Morgan Stanley and Goldman have been trying to diversify into lending and wealth management.

A sign is displayed on the Morgan Stanley building in New York U.S., July 16, 2018. REUTERS/Lucas Jackson

Shares of Morgan Stanley were up 2.4 percent, while those of Goldman were up about 1 percent in early trading.

Bank stocks have been under pressure this year as investors and analysts have questioned their future growth strategies.

The S&P Financial Index .SPSY has fallen 6 percent this year, vastly underperforming the broader market. Both Morgan Stanley and Goldman have lost more than 15 percent of their value this year, making them the two worst performing stocks among the big six banks.

EQUITY UNDERWRITING SHINES

Investment bankers helped the banks bring in big gains during the quarter. Goldman’s investment banking revenue rose 10 percent to $1.98 billion as advisory revenue hit its highest in three years, and the bank earned more from helping companies go public.

This compares with a 15 percent jump in Morgan Stanley’s revenue from the business to $1.46 billion.

Credit Suisse analysts had expected investment banking revenue at Goldman and Morgan Stanley to be $1.73 billion and $1.34 billion, respectively.

Equity trading desks at both the banks also booked gains of between 7 percent and 8 percent, respectively.

Bond trading business, however, did not fare as well.

Morgan Stanley’s bond trading revenue rose just 1 percent, but outperformed Goldman, which reported a 10 percent fall in revenue from the business.

“Pretty good results considering the choppy backdrop and we like how Morgan Stanley continues to produce strong results,” Evercore ISI analysts wrote in a note.

Overall, Morgan Stanley reported net profit of $1.17 per share, beating the average estimate of $1.01 per share, according to I/B/E/S data from Refinitiv.

Goldman’s per share profit came in at $6.28, compared with the estimate of $5.38.