If you are becoming a non resident in Australia and are currently a resident, you have to pay any capital gains before becoming a non resident and you will be liable to the tax from that date on any profits you have made.