* Graphic: World FX rates in 2019 http://tmsnrt.rs/2egbfVh
* Sterling on the up after new Brexit deal reached
* British PM still needs to get deal through parliament
* Yuan in focus before China GDP as trade war bites
By Stanley White
TOKYO, Oct 18 (Reuters) - The British pound traded near a five-month high against the dollar and the euro after British Prime Minister Boris Johnson and European Union leaders agreed a new deal for Britain to exit the bloc.
Sterling's gains on the dollar helped push the greenback to a five-month low versus the euro and a three-week low against the Swiss franc.
The yuan held steady against the dollar in offshore trade before the release of China's GDP data. Economists have forecast the economy will grow at the weakest pace in more than 27 years in the third quarter due to a costly trade war with the United States.
The initial relief at securing the long-awaited Brexit deal could be brief, however, because the prime minister still needs to sell the agreement to sceptical lawmakers when parliament sits on Saturday.
Once Britain does leave the EU, its economic growth is expected to slow, which is likely to be a negative for sterling in the longer term, analysts warn. nL5N27262N]
"Assuming we clear the parliamentary hurdle, the pound has room to rise further because there are a lot of shorts to be unwound," said Takuya Kanda, general manager of the research department at Gaitame.com Research Institute in Tokyo.
"But after that, people will start to question whether this is really good for Britain's economy, and further gains in sterling could become difficult."
The pound traded at $1.2870 in Asia on Friday, close to a five-month high of $1.2988 reached on Thursday after EU leaders unanimously backed the new Brexit deal with Britain.
Against the euro, sterling traded at 86.42 pence, near a five-month high of 85.77 pence.
For the week, the pound was on course for a 1.7% gain versus the dollar and a 0.9% increase against the common currency.
Britain's new Brexit deal has a "decent chance" of clearing parliament on Saturday, finance minister Sajid Javid said, but some investors are wary because debate so far on Brexit has been fractious and difficult to predict.
Even if Johnson can win approval in parliament, Britain is still on course for more distant economic ties and increased trade barriers with the EU, which many economists say will slow growth in the UK.
For now, sterling's gains and worries about weak U.S. economic data are pushing the greenback lower against other currencies.