Calculate profit in pips

 

How do you calculate profit in pips on a closed order considering the spread?

Thanks in advance!!

 

OrderClosePrice() - OrderOpenPrice()

(the spread has nithing to do with that It has been paid already)

 
Thank you.
 

what qjol said only you need one more step to convert the result into pips - you'll want to divide by point:

int   ProfitLoss_in_Pips=(OrderClosePrice() - OrderOpenPrice())/MarketInfo(OrderSymbol(),MODE_POINT);
 
1005phillip:

what qjol said only you need one more step to convert the result into pips - you'll want to divide by point:


thanks