You'll have to wait 30 days from the sale to buy back in if you are claiming the loss on your taxes. Otherwise it's a wash sale and cannot be used for deductions.
That's why I've held my CNBX at the end of the year while in the red because it can move fast and leave the station in a hurry.