Don't know much about the daily back office functions of futures---but each day every contract is in an unrealized gain or loss situation until sold---at the end of each year, every futures contract is deemed sold for tax purposes and marked to market at that point--even if not actually sold---if not sold, the tax basis will be adjusted when actually sold