A simple tax-loss harvesting rule lets you offset ordinary income every year.