Apex,
You have to wait 30 days before you buy back shares in order to claim a tax loss on your original position.