* Uncertainty on US corporate outlook supports dollar, yen
* Dollar recovers some ground at end of week after losses
* Euro, sterling dip as investors remain cautious
* Weak GE, Bank of America earnings boost dollar (Adds comments, details; updates prices; changes byline)
By Vivianne Rodrigues
NEW YORK, July 17 (Reuters) - The dollar rose on Friday as mixed U.S. corporate earnings raised some concern about the economy and enhanced the dollar's safe-haven appeal at the expense of higher-yielding currencies.
U.S. data showing construction of new homes rose in June helped ease some of that anxiety, capping dollar gains.
But the overall mood was one of caution, traders said. News
that General Electric
"There's still an underlying tone of risk aversion looming. People don't feel comfortable with the economy," said Melvin Harris, strategist at Advanced Currency Markets in New York.
"Earnings today were not stellar while housing starts data was good but is a volatile indicator," he said,
The uncertainty had investors wary of perceived higher-risk currencies such as the euro and Australian dollar. Steven Butler, head of FX trading at Toronto-based Scotia Capital, said the euro's failure to extend gains much above $1.41 underscored the anxiety.
"It still feels like we're one bad number away from things turning negative again," he said.
In afternoon trading, the euro was down 0.2 percent at
$1.4125
An index that measures the dollar against a major currency
basket rose 0.2 percent <.DXY> after falling to a six-week low
on Thursday. Sterling fell 0.6 percent to $1.6328
Bomb blasts at hotels in Indonesia also dampened risk sentiment earlier in the session.
"The greenback's slightly better tone is once again a reflection of a more jittery global sentiment, with a bomb explosion in Indonesia weighing on the mood early," said Vassili Serebriakov, a currency strategist at Wells Fargo Bank, in New York.
"The dollar is ending the week by recovering some of the ground it lost in recent days."
STUCK IN RANGES
The market cheered stellar earnings from Goldman Sachs
Markets shrugged off euro zone trade data showing a surplus of 1.9 billion euros in May and comments from Japan's top financial diplomat about the dollar remaining a core asset in Japan's $1 trillion foreign currency reserves.
Rintaro Tamaki also said he would not rule out Japanese intervention but added that foreign exchange rates should be determined by the market. [ID:nT324506]
Greg Salvaggio, vice president for trading at Tempus Consulting in Washington, said low risk tolerance was keeping traders on short leashes and currencies in narrow ranges.
Those ranges may hold, he added, until the Federal Reserve details its strategy for raising interest rates from near zero and withdrawing some of the trillions of dollars it has spent to support the U.S. economy during the crisis.
"This has been a difficult market for forex traders," he said.
Fed Chairman Ben Bernanke will deliver his semiannual monetary policy testimony to the U.S. House Financial Services Committee next week. (Additional reporting by Steven C. Johnson in New York; Editing by Dan Grebler)