So I hold 4.2 live shares, I would expect with an average price of $18.28
Yet my investment tab shows an average price of $27.43? Where is this calculated from? Surely that’s not therefore an accurate reflection of my open position, so would also give an incorrect reflection on return?
In the example of @j05hua993t you have to take into account the sale as well.
((3.2 * $5.89) + (0.95 * $58.27)) / 4.15 = $17.88 average price; After the sale of 0.95 units, you will have 3.2 units with an average price of $17.88 (the sell orders do not affect the average price)