Position's Market Value
Introduction to the cost basis of positions
Position and P/L
The cost of my position is wrong, how to modify it
The P/L under the average cost method includes unrealized P/L and realized P/L.
Unrealized P/L = (Current price - Cost) x Holdings Quantity
Realized P/L = (Sale Price - Cost) x Sale Quantity
P/L = Unrealized P/L + Realized P/L