Australia's stock market ends flat amid financial year end flows after a strong intraday rise led by gains in US stock index futures after the Trump/Biden debate.
US PCE inflation data on Friday will be crucial for the US interest rate outlook.
The S&P/ASX 200 closed up 0.1 per cent at 7767.5 points after rising to 7819.
It rose 7.8 per cent for the financial year or 12.1 per cent on a total return basis.
At Friday's peak the index had bounced 2.2 per cent from a four-week low of 7654.2 it reached on Thursday, suggesting there was some major buying going on, perhaps due to a change of mandate or anticipation of inflows next month.
Tax loss selling may have capped the rebound as some of this financial year's losers – notably materials – underperformed. Window dressing might have weighed from there as some the year's winners, notably technology and financials rose.
IAG soared 7.2 per cent on a profit upgrade, Suncorp jumped 3.6 per cent after the Federal Treasurer approved its takeover by ANZ, and CBA rose 0.9 per cent.
BHP fell 1.1 per cent, Rio Tinto lost 2.1 per cent and Pilbara Minerals dived 5.8 per cent.
The index remains hemmed in by a narrowing consolidation pattern, defined on the charts by support and resistance lines near 7675 and 7830.
A test of the record high near 7900 is likely after the strong bounce this week.
July is normally a strong month with an average rise of 2 per cent in the past 20 years and 3 per cent in the past decade as new money is usually invested.