Better earnings from General Electric and Morgan Stanley helped the stock market inch higher Friday, as major indexes closed out their third straight week of gains.

GE led the 30 stocks in the Dow Jones industrial average after the conglomerate reported stronger quarterly earnings, thanks to orders from Brazil, Angola and other developing countries.

The Dow Jones industrial average rose 53.68 points, or 0.4 percent, to 13,649.70.

The Standard & Poor's 500 index rose 5.04 points, or 0.3 percent, to 1,485.98.

The Nasdaq composite index fell 1.30 points, or 0.04 percent, to 3,134.70.

For the week:

The Dow is up 161.27 points, or 1.2 percent.

The S&P 500 is up 13.93 points, or 1 percent.

The Nasdaq is up 9.08 points, or 0.3 percent.

For the year:

The Dow is up 545.56 points, or 4.2 percent.

The S&P 500 is up 59.79, or 4.2 percent.

The Nasdaq is up 115.19, or 3.8 percent.