>>Correct, if you sell and buy back within 30 days it is considered a carry over, and you can not take the capital gains loss on your taxes.
first of all, it's a wash sale, not a carryover and yes you get to take the loss, but you have to wait until you sell the stock you just bought. look up wash sale. there's not much to it. but of course you don't lose your loss.