This is the way I understand it:
The tax loss rule is twofold (at least in the USA).
BEFORE selling, you are required to wait 30 calendar days after your last purchase.
AFTER selling, you are required to wait 30 calendar days before buying back.
There is no rule preventing your stock from going haywire in the meantime.