Let's say, I want to take my SPY loss right now. Book it. I'll take the short term loss. And tomorrow I buy and equal dollar amount of DIA. Any problem with the IRS on this? Trading risk and correlation risk exist, I know) But generally, for taxes, can I do this?