Can I deduct interest on a home equity line of credit if I invest money in stocks

Can I deduct interest on a home equity line of credit if I invest money in stocks specially dividend paying ones and have some  capital gain and loss at end of year