This strategy can help investors save on taxes — if it's done rightTax-loss harvesting gives investors a silver lining if they have realized losses