Total P&L of holding stocks and derivatives under current holding period, is not affected by the different cost calculation methods, including unrealised P&L & realised P&L under the Average Cost method and FIFO. (For further 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 the P&L of all the positions
Reminder: this formula is for reference only, please refer to the assets.