Basically we calculate trade profit at the market price at the time the trade is closed. In the C2 simulation we don't wait for a settlement time. If the currency pair is not dollar-denominated then we will convert the P/L to dollars at the moment the trade is closed.