Total p&l of holding stocks and derivatives under current holding period, is not affected by the different cost calculation methods, including unrealized p&l & realized p&l under the Average Cost method & FIFO.(For more explanation of the cost algorithm, please click)
The holding period is calculated from the position-opening to the time when the number of positions held is 0.
Total P&L of account = the sum of P&L of all the positions
Reminder: this formula is for reference only, please refer to the actual assets.