You can't buy the shares back that you sold at a loss for 30 days. That falls under the "wash sales rule". Here's a link so you can read up on it: http://www.fairmark.com/capgain/wash/index.htm