Stocks were poised for a modestly higher open on Tuesday after euro zone finance ministers secured a deal that will enable Greece to avoid a March default.

An agreement on a 130 billion euro ($172.47 billion) bailout was reached after Greece was forced to accept unpopular fiscal measures, and private sector bondholders agreed to steeper losses.

After hitting a seven-month high on Monday, the FTSEurofirst 300 <.FTEU3> index of top European shares lost 0.5 percent and the euro shed about 0.1 percent on Tuesday as investors booked profits after the agreement.

Analysts said the deal was already priced into the market, which showed a muted response as initial optimism waned on questions about Greece's dismal economic outlook. <.EU>

Even with the new bailout, Greece faces a long road to economic recovery. European Union officials said the Greek economy will only return to growth in 2014 after a recession that will shrink output by 17 percent.

It's been digested, rehashed, priced into the market and though it is nice to see it (at) a point where we have a second deal, it doesn't lend investor confidence to think the ultimate outcome of what is going on in Greece is going to be something to help the euro zone turn on a dime, said Peter Kenny, managing director at Knight Capital in Jersey City, New Jersey.

So great to see, certainly positive for the markets, but it is a very cautious optimism the markets have because we are not sure when the next Greek headline is going to come out that causes concern.

S&P 500 futures gained 3.4 points and were above fair value, a formula that evaluates pricing by taking into account interest rates, dividends and time to expiration on the contract. Dow Jones industrial average futures rose 46 points, and Nasdaq 100 futures added 5.5 points.

U.S. markets were closed Monday for the Presidents Day holiday. The S&P 500 is up 8.2 percent for the year.

Wal-Mart Stores Inc dropped 3.2 percent to $60.48 in premarket trading after its quarterly profit came in just short of Wall Street expectations.

Separately, Wal-Mart is taking a controlling stake in a Chinese e-commerce firm, seeking new revenue sources in the world's fastest-growing major economy.

Home Depot Inc climbed 3 percent to $48.10 premarket after the home improvement retailer's quarterly profit beat estimates.

Kraft Foods Inc advanced 1 percent to $38.37 after the maker of Oreo cookies, Cadbury chocolate and Oscar Meyer meats reported higher earnings that met expectations.

Macy's Inc climbed 4.3 percent to $37.80 after the department store chain posted higher quarterly profit and forecast further sales gains this year.

Apple Inc gained 0.9 percent to $506.69 premarket after the U.S. International Trade Commission ruled the iPhone maker did not infringe patented technology owned by Android phonemaker HTC Corp <2498.TW>.

Separately, a Chinese court will deliberate on a request by troubled technology company Proview to halt the sale of Apple iPads in Shanghai.

Dell Inc was due to report results later Tuesday.

Earnings season continues to wind down this week, with 59 companies scheduled to report. According to Thomson Reuters data through last Friday, of the 404 companies in the S&P 500 that have reported earnings, 64 percent have topped analyst expectations.

U.S. engineer URS Corp will buy Canadian oilfield services company Flint Energy Services Ltd for C$1.25 billion ($1.25 billion) to expand its presence in the oil and gas sector.

(Reporting By Chuck Mikolajczak; editing by Jeffrey Benkoe)