But if you want to make sure your losses do some good for you this year, you need to pay attention to something called the "wash sale rule, " which disallows a realized loss if you purchase the same, or "substantially identical securities, " 30 days before or 30 days after the day you booked the loss.
FORBES: Magazine Article