Deductions & credits

Interest on a loan not secured by a qualified home is not deductible.

 

This blanket statement seems incorrect. Margin interest or interest against investments can be deducted against investment gains. Why can't SBLOC interest expenses be used to offset investment gains?