Deductions & credits

Was the sale ni  2017?  If so, you may wish to consider generating some income this year to offset the loss. For example convert a Traditional IRA to a Roth.