Close Australian shares gave up most of their early gains but ended the day higher for the sixth consecutive session - just.

At the close, the benchmark S&P/ASX200 was up 0.4 points or 0.01 per cent at 4040.7, while the broader All Ordinaries gained 4.1 points, or 0.1 per cent, to 4048.3 points. While modest, the advance marks six days of gains in a row, the best winning streak in about 15 months.

By sector, energy stocks gained 0.7 per cent, materials added 0.5 per cent, while financials lost 0.2 per cent.

Macquarie Equities associate director Lucinda Chan said it was a quiet day on the market.

"We have been trading a bit sideways, given we have had very strong five days running,'' Ms Chan said.

need2know:
-
Asian shares power to nine-month high
- The dollar hovers above 81 US cents
- Oil creeps up above $US64
- Gold stabilises below $950
- Dow futures are 20 points lower at 8785

The market hit its highest level since November in early trade, but retreated after the RBA minutes were published.

"It is the banks leading us lower and the resources keeping us afloat there," Ms Chan said. "Of course the energy sector has been particularly strong today."

Among the major miners, Rio Tinto was up $1.52 cents, or 2.9 per cent, at $54.92 and rival BHP Billiton gained 19 cents, or 0.5 per cent, to $36.19.

Other miners had a mixed day, with Fortescue Metals down 7 cents at $4.21 and OZ Minerals off 0.5 cents at $1.015.

OZ Minerals released its quarterly update, saying its Prominent Hill copper and gold mine in South Australia was on track to meet earlier production guidance.

Consolidation seen

 "We've had a strong few days, we have held over the 4000 level for a little while so perhaps a few people just decided to take some money off the table," said James Foulsham, head of trading at CMC Markets.

 "If you look at what's holding the index up, it's commodities, BHP, Rio, Woodside predominantly," Mr Foulsham said, adding he expected the market to consolidate around current levels ahead of the August reporting season.

Among the gold miners Newmont Mining finished up 5 cents at $5.12 but rival Newcrest was off 28 cents at $30.96.

Lihir Gold has received expressions of interest to buy its least productive asset, Victoria's Ballarat mine, edged up 1 cent to $2.91.

Strong day for energy

Major energy stocks had a strong day, with Woodside Petroleum up 34 cents at $43.34, Santos up 12 cents at $14.61 and Origin Energy rising 13 cents to $14.76.

Oil Search on Tuesday reported a small increase in oil and gas production in the June quarter, and shares in the company fell 2 cents to $5.58.

Shares in Adelaide-based Centrex Metals rose 13.6 per cent, or 4 cents, to 33.5 cents, after China's third-largest steel group formally agreed to invest $186 million in a joint venture with the company.

Ms Chan said mining companies were buoyed by upbeat comments by the Reserve Bank of Australia about the domestic economy.

"The RBA said the local economy itself is looking quite firm. It was a positive stance,'' Ms Chan said.

"They (resource stocks) are up as a whole, I think, because everyone is of a view that if Australia is going to come through the tough times as economies grow globally, then the demand for our materials is going to be stronger, so they have got a strong lift on the back of that,'' she said.

Banks lower on profit taking

Banks ended the day mixed, but the sector as a whole was down.

Commonwealth Bank finished down 15 cents at $39.75, National Australia Bank fell 30 cents to $23.58 and ANZ was off 10 cents at $16.77.

But Westpac was up 7 cents at $20.31 while the Macquarie Group gained 60 cents to $38.80.

Ms Chan said investors may have been selling down bank stocks on the back of big gains to the sector recently.

"The banks have had a huge run lately. I think that is really it. NAB has fallen particularly low,'' she said.

Retailers mixed

The retail sector finished the day mixed, with Woolworths rising 11 cents to $27.70 and rival Wesfarmers up 8 cents at $24.08.

But Harvey Norman lost 21 cents, or 6.1 per cent, to $3.26 and up-market retailer David Jones fell 12 cents to $4.67.

Harvey Norman reported a 3.8 per cent lift in total sales for 2008/09, softer than the 8.7 per cent growth of the previous financial year.

The media sector was generally stronger, with West Australian Newspapers Holdings up 9.8 per cent, or 48 cents, at $5.37, and Fairfax Media up nearly 6 per cent, 7.5 cents, at $1.345.

News Corp shares rose 38 cents to $13.99 while the its non-voting scrip lifted 29 cents, to $12.01.

Shares in Consolidated Media were off 1 cent at $2.66.

The top-traded stock by volume was Hawthorn Resources, with about 77.3 million shares worth $831,000 changing hands.

Its shares were down 9.1 per cent, 0.1 cents, at 1 cent.

Preliminary national turnover was 1.91 billion shares worth about $4.14 billion with 577 stocks up, 435 down and 337 unchanged.

For market data by sector, click here
For the latest currency movements,
click here
For share price information, click here

AAP, with BusinessDay