OrderProfit() for open orders

 

Hello,

How is OrderProift() calculated for open orders?

If I'm long from 1.3000 does it calculate profit against the Close[0], Bid, or Ask?

I couldn't find this anywhere. Hope this is not a repost.

Thank you for the help!

 
KingForADaY:

Hello,

If I'm long from 1.3000 does it calculate profit against the Close[0], Bid, or Ask?

Close[0] or Bid, it's equal for longs.
 
i think its calculated trough the OrderClosePrice()
 
Roger:
Close[0] or Bid, it's equal for longs.

Thanks Roger. So if I'm long OrderProfit() will calculate the p/l from the current Bid. And if I'm short OrderProfit() will calculate it based upon the current Ask?