Don't you know that after you sell stock, you can buy it back again? Oh, you probably just have a cash account and have to wait 3 days for settlement. There's something called margin, it allows you to buy and sell stock freely, but you need to have an account with at least 25,000 to not have any restrictions.