If you are a qualified trader, you can use mark-to-market accounting and then you wonât have to worry about the wash sales. If you sell a stock for a loss and buy it back within thirty days, you canât claim the loss but you can add the loss to the basis of your new stock.