Sure you can, if u don't elect MTM, you can still do that but limited to 3k max previous year loss offset against current year cap gains. MTM changes ur income to ordinary income vs. cap gains, which has no limitation to how much losses in prev year u can offset vs gains in future *AND* X...