How is P/L calculated for an open position?

Is it calculated based on the market price that is displayed in the “Open Position” description?



The reason I ask is that sometimes I noticed that the P/L reading doesn’t look quite right for some open positions.