(Adds gold, oil settlement prices)
* Sterling pares gains as Brexit deal nagged by doubts
* Lack of support from Northern Irish party presents a snag
* Wall Street edges higher on robust earnings, Brexit deal
By Marc Jones and Herbert Lash
LONDON/NEW YORK, Oct 17 (Reuters) - A deal on Britain's departure agreed with the European Union sent sterling to a five-month high on Thursday and hoisted European stocks to a year-and-a-half peak before doubts about UK parliamentary support brought them back to earth.
Wall Street rose as upbeat earnings from Netflix and Morgan Stanley affirmed a strong start to the U.S. reporting season, while the dollar fell against the euro as the common currency got a lift on the long-awaited Brexit deal.
But the Irish border riddle remained a sticking point for Northern Ireland's Democratic Unionist Party (DUP), which withheld its backing and created doubt among investors.
The DUP's opposition reduces the chances of British Prime Minister Boris Johnson winning parliamentary ratification at the extraordinary session of parliament on Saturday.
But after weeks of negotiations, British and EU leaders welcomed an agreement being struck.
"Where there is a will, there is a deal - we have one!" said European Commission President Jean-Claude Juncker as the news broke from Brussels.
Sterling, the key gauge of Brexit sentiment all along, jumped as much as a 1% against the dollar, putting it on course for its best six-day gain in more than 30 years before the doubts and grumbles set in.
Market optimism faltered when the Northern Ireland party said it could not support the agreement, torpedoing hopes of a smooth passage through parliament.
Having ran up as far as $1.2988, sterling fell well under $1.28 before regaining momentum to trade at $1.2863, up 0.26% on the day.
European shares edged lower as fading optimism over the Brexit deal was offset by strong earnings from Sweden's Ericsson.
France's CAC 40 index eased 0.4% after hitting a fresh 12-year high earlier, while Germany's DAX closed down 0.1%, though near its strongest level in over a year.
Shares in domestically focused British companies and Irish firms, which have been seen as a barometer on Brexit sentiment, also gave up initial gains.
London's benchmark FTSE index closed up 0.2% and the broad-market pan-European STOXX 600 fell 0.1%, while the FTSEurofirst index of leading regional European shares slid 0.12%.
UK Gilts, German Bunds, gold and most other safe havens also rebounded after selling off.
On Wall Street, Netflix Inc shares rose 3.0% in heavy trade after the video streaming service provider added slightly more paying subscribers than Wall Street expected in the third quarter.
Morgan Stanley gained 2.27% after the big lender beat analysts' expectations for quarterly profit, buoyed by higher revenue from bond trading and M&A advisory fees.
Earnings season is dictating U.S. market moves, which has historically been the case, said Kristina Hooper, chief global market strategist at Invesco.
"The buck stops with earnings," Hooper said. "The good news is most earnings reports thus far have been positive and that's provided some nice momentum for the market."
The Dow Jones Industrial Average rose 68.11 points, or 0.25%, to 27,070.09. The S&P 500 gained 12.32 points, or 0.41%, to 3,002.01 and the Nasdaq Composite added 37.93 points, or 0.47%, to 8,162.12.
Emerging-market stocks also gained for a sixth day - their longest winning streak since early April - after U.S. Treasury Secretary Steven Mnuchin said U.S. and Chinese trade negotiators were nailing down a Phase 1 trade deal text for their presidents to sign next month.
The dollar index fell 0.4%, with the euro up 0.47% to $1.1122. The Japanese yen strengthened 0.10% versus the greenback at 108.68 per dollar.
Oil prices rebounded. Brent crude futures settled up 49 cents at $59.91 a barrel. U.S. West Texas Intermediate crude rose 57 cents to settle at $53.93.
Gold rose as weak U.S. retail sales rekindled fears of an economic slowdown and concerns about possible risks to the Brexit deal supported bullion.
U.S. gold futures settled 0.3% higher at $1,498.30 an ounce.
Reporting by Herbert Lash Editing by Sonya Hepinstall and Nick Zieminski