The squaring off of a position to close it in profit or loss. The profit or loss is realized as soon as the trade is closed.