1. Today's PnL
Today's securities position PnL = (Today's market value − Yesterday's market value) + (Today's sell amount − Today's buy amount)
Today's position PnL ratio = Today's PnL amount / (Yesterday's closing market value + Total amount of positions opened today)
Today's PnL of positions is calculated in the local time of the exchange where the user's assets are held. Today's market value equals the real-time market value of the positions. Yesterday's market value equals yesterday's intraday closing price × Yesterday's position amount. For US stocks, yesterday's market value uses the 16:00 ET closing price. In all-day mode, US stocks show yesterday's PnL.
Today's total PnL of the account = Sum of today's PnL of all held assets
Today's PnL rate = Today's PnL amount / (Net liquidation value − Today's PnL amount)
2. Position PnL
Securities position PnL is the PnL of the stocks and derivatives held in the current holding period. It isn't affected by the cost calculation rule. Under the average cost and FIFO methods, it also includes unrealized PnL and realized PnL.
A holding period starts when the position amount goes from 0 to non-zero (position opened) and ends when the position amount returns to 0 (position fully closed).
Account total position PnL = Sum of position PnL across all held instruments
3. Unrealized PnL
Unrealized PnL is the unrealized PnL of the stocks and derivatives held in the current holding period.
Under the FIFO cost method:
Unrealized PnL = (Current price − Cost price) × Shares held
Cost price = ∑(Opening amount + Fees) / Shares held, first in first out, selling the earliest-opened shares first
Under the average cost method:
Unrealized PnL = (Current price − Average buy price) × Shares held
Average buy price = ∑(Buy amount) / Shares held. The average cost method only considers buys, not changes from sells.
Total unrealized PnL of the account = Sum of unrealized PnL across all held instruments
4. Realized PnL
Realized PnL is the realized PnL of the stocks and derivatives reduced in the current holding period.
Securities position realized PnL = ∑[(Closing price − Cost price) × Closing amount]
*Under the FIFO cost method, opening fees are not counted in realized PnL. Under the average cost method, opening fees are counted in realized PnL.
Total realized PnL of the account = Sum of realized PnL of all held instruments