Position m2m formula

pseudo
I understand the PnL formula from other posts (pnl = (sellValue - buyValue) + (netQuantity * lastPrice * multiplier)). Can you please share the formula for m2m as well.
Tagged:
This discussion has been closed.