Talk to any financial advisor and they'd probably say you'd be nuts.

https://www.thebalance.com/can-i-invest-in-stocks-with-a-home-equity-loan-5324194