It is calculated by subtracting the average cost of the trades (including transaction fees) from the current gold sell price multiplied by current gold owned.
For example,
Current gold owned = 3.00g
Average cost =
RM201.67/g
Profit/loss = (Current selling price – Average cost) x Current gold owned
= (RM202/g – RM201.67) x 3.00g
= RM0.33/g x 3.00g
= RM0.99