Avoid Wash Sale on Different Brokerage Accounts

Hi there,

 

I have built the positions of the same mutual fund in two of my brokerage accounts.  Last month, I liquidated all of them.  For the positions in Account #1, they all had gains.  For positions in Account #2, there were both realized gains and losses, but in aggregate, I still had a net gain on Account #2 only.

 

Today I re-purchased the same fund, a small amount in Account #1 and a large amount in Account #2.  Then I realized that the new position in Account #1 could trigger Wash Sale due to the loss of some positions in Account #2.

 

If I sell the whole position in Account #1 before the year end, would I avoid Wash Sale on this portion?

 

For the new position in Account #2, it is okay if it is Wash Sale as the new position is under the same account and the brokerage will report.  My liquidated positions in Account #1 all had gains so they do not  matter.

 

Thank you very much!