Short term is holding under a year. So if you buy X stock for $5000 today, sell it for $10000 tomorrow, then it goes down to $5000 in two months and sell you again, no taxes, they wash out.
Long term capital gains only wash out against long term losses. Therein where you can fuck yourself if...