How Do You Calculate the Total Amount of Position Investments?
The total amount of position investments is equal to the integrated value of all buy trades net of commissions.
It is important to remember that if you make a sell trade, the total amount of your investments decrease. The amount by which it decreases is equal to the number of units you sell multiplied by the average buy price of the position.