Get your taxes done using TurboTax

your first trade of the day is a buy of the identical security on which you had a loss on  a trade later that day, happening with +/- thirty days (assuming no earlier trades in the last thirty days).

The other trades don't matter.

 

adjusting of shares to account for shares with a wash sale loss starts with the earliest available shares (first trade in your example)

The earliest trade (first trade)  will have the loss added to its basis.

if you have more wash  losses then the rules step through your subsequent shares (first trade shares not yet adjusted, if any, second trade, third trade etc.

Fortunately for you, your broker is required to track all this for you and show it on your year-end trading detail report. 

 

@matsonmathew