How to calculate current profit in pips - page 2

 

This might be off topic, but is there a way to seamlessly determine the loss amount for a pair similar to the way we calculate the profit. For example, to calculate the profit, we do:

profit += OrderProfit() + OrderCommission() + OrderSwap()


Is there a simpler way to do the same for loss?

 
nene007 #:

This might be off topic, but is there a way to seamlessly determine the loss amount for a pair similar to the way we calculate the profit. For example, to calculate the profit, we do:

profit += OrderProfit() + OrderCommission() + OrderSwap()


Is there a simpler way to do the same for loss?

To calculate a loss it is exactly the same.

if the result is positive, profit.

If the result is negative, loss.