The ASX 200 closed higher as gains by the heavyweight banks and a record high for CBA pushed the bourse into positive territory, offsetting falls by iron ore and gold miners.
After falling as much as 0.6 per cent, the sharemarket staged a comeback to finish 0.2 per cent stronger at 8109.9 points.
The major banks boosted the ASX 200, with CBA hitting an all-time high of $141.87 before ending at a record close of $141.77, up 1.6 per cent. NAB rose 1.3 per cent to $38.65, Westpac advanced 1.2 per cent to $31.60 and ANZ lifted 0.9 per cent to $30.66.
Capital.com senior financial market analyst Kyle Rodda said the ASX 200 built steam heading into the close to finish the day’s trade marginally higher to challenge a short-term level of technical resistance at 8100 points.
"The rally bucked a trend in the broader region which saw equities suffer in soggy trading conditions after weak Chinese economic data and ahead of a public holiday in the US," Mr Rodda said.
"The miners weighed on the market as iron ore prices slipped and gold miners fell as gold prices receded from record highs.
"The banks anchored the rally, which have held their value despite ongoing fears that valuations are too stretched given Australia’s sluggish economic fundamentals."
Energy stocks were also higher, with Woodside up 1.4 per cent to $27.57 and Santos gaining 1.1 per cent to $7.30.
Mining heavyweights finished in the red as iron ore futures fell 3.3 per cent to $US97.70 a tonne in Singapore trading. BBHP lost 1.1 per cent to $40.33, Rio Tinto dropped 1.4 per cent to $109.94 and Fortescue eased 0.5 per cent to $18.18.
Among gold miners, Bellevue Gold dropped more than 9 per cent to $1.15, Red 5 lost 7.4 per cent to 31.5c, and Perseus Mining fell almost 5 per cent to $2.51. Evolution Mining fell 3.1 per cent to $4.11.
REA Group ended 5.3 per cent lower at $207.44 after the digital property advertising group revealed it is considering an $8.5bn takeover play for British property portal Rightmove.