The wash-sale rule is a nasty little piece of tax code

The saving grace of making a poor stock or mutual fund investment in a taxable brokerage firm account is that you at least get a capital loss when you sell. The loss can then offset gains from your more successful investments, unless the dreaded wash-sale rules...