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 starts with the opening position quantity from 0 to non 0 and ends with the clearing position quantity being 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 assets.