Nikkei ends firmer on positive trade talks; Olympus jumps 8.4 pct

* Nikkei gains 0.8 pct, Topix up 0.4 pct

* Olympus surges after two brokerages raise their stock ratings

* Cyclical stocks outperform

TOKYO, Jan 8 (Reuters) - Japan’s Nikkei ended higher on Tuesday, tracking Wall Street on signs that the United States and China were inching closer to a detente in trade tensions, while a weaker yen lifted exporters.

The Nikkei share average closed 0.82 percent higher at 20,204.04, comfortably sitting above the psychologically important line of 20,000.

Fears of a global slowdown have led to a sharp pullback in markets over the last two weeks, sending the Nikkei as low as 18,948.58 on Dec. 26, its lowest since April 2017.

China has the “good faith” to work with the United States to resolve trade frictions, China’s Foreign Ministry said, while U.S. Commerce Secretary Wilbur Ross said he saw “a very good chance that we will get a reasonable settlement” as the two countries started their first face-to-face talks since a 90-day truce was agreed in December.

“There are still global risks such as the trade dispute and issues regarding Brexit, which will probably take a while to resolve,” said Hikaru Sato, senior technical analyst, Daiwa Securities. “But as some stocks are sold heavily and remain cheap, investors are buying them on the dips.”

Cyclical stocks such as shippers, machinery and automakers were in demand. Mitsui OSK Lines ended 2.3 percent firmer, Kawasaki Kisen closed up 2.6 percent, industrial machinery maker Fanuc Corp ended 3.4 percent higher and Honda Motor Co closed 3.2 percent firmer.

Olympus Corp surged 8.4 percent after Morgan Stanley upgraded the stock’s rating to “overweight” from “equal-weight”, citing expectations for earnings growth from new products in the mainstay GI (gastrointestinal) endoscope segment, while UBS Securities also raised its rating to “buy” from “neutral”.

Nissan Motor Co was in focus as its ousted Chairman Carlos Ghosn defended himself against allegations of financial misconduct in a Tokyo court on Tuesday, declaring his innocence in a first public appearance since his arrest in November.

Nissan shares closed up 0.2 percent.

The broader Topix rose 0.39 percent to 1,518.43, though 12 of 33 sub-sectors ended the session in negative territory. (Editing by Sherry Jacob-Phillips)