The P/L under the diluted cost method is the total P/L within the holding period.
P/L = (current price - cost price) x quantity
The P/L under the average cost method includes unrealized P/L and realized P/L.
Unrealized P/L = (current price - cost price) x quantity held
Realized P/L = (closed Price - cost price) x closed quantity
P/L = Unrealized P/L + Realized P/L