2 year ago, I bought 1,000 shares of AAA at $3. This year I sold 500 shares of AAA at $5 making a profit of $1,000. However later in the same tax year and regretting my earlier trade, I bought back 500 shares of AAA at $5. Question: Do I have to declare a profit of $1,000 to ATO, or not since my net position in AAA has not changed? What if I had bought 500 shares back at $6?