Profit and Loss (PnL)indicator reflects the Profit or Loss of a deal. PnL is calculated in two different ways, depending on if a deal is still currently open or if it has already been closed.
The Profit and Loss (PnL) indicator reflects the Profit or Loss of a position. PnL is calculated in 2 different ways, depending on if a position is still currently Open or if it has already been Closed.
For open positions Realized PnL and Unrealized PnL are taken into account. The potential profit from the deal refers to the Unrealized PnL. Realized PNL in open positions equals already paid commissions (i.e. trade fees and funding).
PnL is not reflected in Open positions. It can be calculated by adding Realized PnL + Unrealized PnL.
Calculating Unrealized PnL of Open positions requires the use of AskPrice and BidPrice, while calculating Unrealized PnL of Closed positions requires the use of ClosePrice
Below are examples of calculation of PnL in Open Positions and in Closed Positions:
How to calculate PnL in OPEN positions
The general formulas for calculating PnL of OPEN positions: