NEW YORK ( TheStreet) -- Dow Jones Industrial Average components The Travelers Companies ( TRV), Home Depot ( HD), American Express ( AXP), JPMorgan Chase ( JPM), Chevron ( CVX) and Bank of America ( BAC) rallied this past week, while International Business Machines ( IBM) and Hewlett-Packard ( HPQ) lost ground.Both the Dow and the S&P 500 ended the week in the green on optimism that European officials would come up with a comprehensive solution to their debt crisis and on strong earnings reports. The Dow was up 1.4% for the week, putting the blue-chip index up for the year. Among Dow components, The Travelers Companies was the biggest gainer this past week, up 11.9%. Goldman Sachs has reiterated a buy on the stock with a price target of $65 a share. Home Depot increased 5.2%. Citigroup has initiated a buy on the stock. American Express improved 5.1%. The company's third-quarter results came in higher than expected with revenue growing 9% to $7.6 billion and EPS of $1.03 a share. Oil heavyweight Chevron climbed 5%. Banking majors JPMorgan Chase and Bank of America rose 4.8% and 4.4%, respectively. Caterpillar ( CAT) added 3.9%. The company's third-quarter results were better than expected. The company reported EPS at $1.71 a share and revenue of $15.72 billion for the quarter. McDonald ( MCD) gained 2.6%. The company reported its ninth consecutive quarter of gains for the 2011 third quarter with net income at $1.51 billion. Revenue rose 14% to $7.17 billion, beating analysts' expectations. Wal-Mart Stores ( WMT) and Exxon Mobil ( XOM) moved up 2.6% each. Intel Corp. ( INTC) rose 2.3%. The company's third-quarter results topped expectations. Intel reported a 28% increase in revenue to $14.23 billion, the biggest quarterly rise in the last five quarters. Earnings grew 25% to 65 cents a share. Other movers were Procter & Gamble ( PG) (up 2.1%), 3M ( MMM) (up 2.0%) and Walt Disney ( DIS) (up 2.0%) IBM was the top decliner this past week, down 4.7%. The company's third-quarter results disappointed, with revenue coming in at $26.2 billion, up 8% from the corresponding quarter last year. Net income was $3.8 billion, up 7%. Hewlett-Packard (down 2.8%), General Electric Co. ( GE) (down 1.7%) and Johnson & Johnson ( JNJ) (down 1.5%) were the other notable losers.