This is easy for spreadbet positions: (currentLevel - dealLevel) * contractSize * size * dir where dir = 1 if the direction of the trade is BUY and -1 if SELL
This is easy for spreadbet positions:
(currentLevel - dealLevel) * contractSize * size * dir
where dir = 1 if the direction of the trade is BUY and -1 if SELL