Wash sale rules, if you sell for a tax loss, you can't buy it back for 30 days or the tax loss is disallowed.