I dont understand what u mean you're making this way more difficult than it needs to be, you pay taxes on your net gains (total gains - total losses) if the net is a loss u can take 3K as a loss this yr and carry the rest forward.