Bush Boy, I think the rule is :
If you sell a stock , and want to claim the capital loss, you cannot buy that stock back for 30 days, if you do, you cannot claim the original capital loss you were trying to. If you do buy it back, you could then claim the gain or loss on the new purchase, but you could not claim the loss on your original purchase.
If you sell a stock for a capital gain, you can buy that stock back, any time, and as many times as you want, and claim more capital gains at the same 50% rule. However, at any time you want to declare a capital loss, that is the only time you need to wait 30 days (only need to wait, if you want to declare the loss as a capital loss)
Hope it helps a bit, and does not sound more confusing than it is good.
19.5 hours till opening bell!