If the entire proceeds of the loan were used to buy stock then the interest is deductible. You enter that using the "Investment Interest Expenses" under the "Deductions & Credits" tab. You can only deduct 2016 interest on a 2016 income tax return.
Tom Young