It depends on whether you are a share trader or investor.
If you are an investor the brokerage forms part of the cost base.
If you are carrying on a business of share trading, the brokerage is deductible as a business expense.
Check out the ATO website for details of what should be considered in determining whether you are carrying on a business of share trading - or discuss with your tax adviser.