Investors & landlords

Really appreciate your help. Would losses for my day trading as a sole prop count? I have 475(f) MTM for securities. I would like to offset gains from 1256 contracts that have 60/40 capital gains tax. Lets say I have $50K in gains from trading 1256 contracts this year, but $20k in loss from trading securities last year with market to market (losses previously reported on 4797). Would this count as 30k in gains?