Spot yuan closed at 6.3066, 27 pips stronger than Monday's close, despite the central bank setting its midpoint 19 pips weaker.
A surge of dollar buying by oil firms had pushed the yuan lower on Monday afternoon, but the buying tapered off by Tuesday morning.
The yuan also benefitted from the euro's gains on global markets. The dollar index, which is heavily weighted toward the euro, fell overnight, pushing the yuan higher.
"The yuan rose today because the euro rebounded a bit. It is bound to happen this way," said a trader at a joint stock bank in Shanghai.
The yuan has gained steadily since hitting a 2012 intraday low of 6.3930 on July 24, touching a five-month intraday high of 6.2945 on Sept 20. But traders say it is likely to meet resistance around 6.30.
"When the rate hits 6.33-34, clients rush in to buy yuan, but if it gets down near 6.30, dollar demand picks up," said a trader at a major Chinese state-owned benk in Beijing.
Traders said they expect the yuan to trade in range of 6.30-6.33 per dollar in coming weeks.
Traders are divided about the impact on the market of a one-week holiday in China next week. Some say the holiday increases demand for yuan from corporate clients, while others say clients want more dollars.