Form 4952

if I took loan from HELOC account and invested in brokerage account to buy stocks, can I offset the profit made in stocks with the interest on the Heloc account