Get your taxes done using TurboTax

a triggering BUY causes a wash sale.

you get your loss deduction when you SELL the triggering shares.

UNLESS
you have a loss there and trigger another wash sale on those shares.

Lucky for you, the broker tracks all this for you.