* Nikkei posts biggest daily gain since mid-August
* Machinery stocks soar on short-covering
* Komatsu jump after co raises profit forecast
By Ayai Tomisawa
TOKYO, Oct 30 (Reuters) - Japan's Nikkei rose on Tuesday as investors bought cheaply-valued cyclical stocks and firms raising their annual forecasts, which tempered fresh worries about U.S.-China trade frictions that dragged down U.S. shares.
The Nikkei share average ended 1.5 percent higher to 21,457.29, posting the biggest daily gain since mid-August. It opened lower following overnight weakness on Wall Street where big technology and internet shares declined sharply.
U.S. shares fell after Bloomberg reported that the U.S. is planning an additional $257 billion worth of tariffs on Chinese goods if upcoming talks between Presidents Donald Trump and Xi Jinping fail to end the trade war.
During late Asian trade, gains started building as some traders looked to strength in Chinese stocks which rebounded from Monday's declines after the securities regulator said it would enhance market liquidity.
Traders also noted that sentiment may have been supported by comments from U.S. President Donald Trump that he thinks there will be "a great deal" with China on trade.
"I think that we will make a great deal with China and it has to be great, because they've drained our country," Trump said in an interview with FOX News Channel's "The Ingraham Angle" on Monday.
"There were expectations that Trump may have something in mind to ease U.S.-China trade war tensions," said Chihiro Ohta, general manager of investment research at SMBC Nikko Securities.
Tuesday's gainers included recently-sold cyclical stocks such as machinery makers and auto shares.
"Since global investors are selling growth stocks with high valuations, it's hard to buy Japanese stocks in the same category. In this situation, cheaply-valued cyclical stocks are outperforming," said Norihiro Fujito, a chief investment strategist at Mitsubishi UFJ Morgan Stanley Securities.
He said domestic long-term investors such as pension funds are seen picking up beaten-down stocks after the value of their stock holdings dropped due to the recent sell-off.
Honda Motor Corp and Nissan Motor Corp, whose price-earnings ratios are at 8.3 and 7.9, respectively, rose 2 percent and 1.5 percent.
Mega banks were in demand, with Mitsubishi UFJ Financial Group and Mitsui Sumitomo Financial Group gaining 2.3 percent and 2.2 percent, respectively. Both banks are trading below their book values.
Machinery stocks also gained ground, with Yaskawa Electric and Shima Seiki Mfg jumping 6.1 percent and 5.5 percent, respectively, with traders citing investors' short-covering.
With first-half Japanese corporate earnings in focus, construction equipment maker Komatsu Ltd surged 6.2 percent after it raised its full-year operating profit forecast thanks to strong sales in mining equipment in the U.S. and Indonesia.
Factory automation robot maker Fanuc Corp soared 3.4 percent despite a cut in its profit forecast as the company's decision to pay special dividends offset the negative news.
The broader Topix rose 1.4 percent to 1,611.46. (Editing by Shri Navaratnam)