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)
Total p&l of bond holdings will be calculated together with Accrued Interest, and support cost algorithm switching. Under the average cost and FIFO, it also includes unrealized p&l & realized p&l.
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.