Redael777:
Use OrderOpenPrice() and Bid/Ask depending upon OrderType() . . . this will not take into account Commission though. If you need to take account of commission you will need to work back from the OrderProfit() using the OrderLots() and tick value.
Hi,what is the most efficient way to convert OrderProfit() which initially gives profits/losses in currency, into pips,just so i could see and use the profits/losses in pips.
Or if you can think of any other way of getting the current(not closed) profit/loss of a position that is opened right now.Thank you.
Thank you for your reply.
Redael777: what is the most efficient way to convert OrderProfit() which initially gives profits/losses in currency, into pips,
OrderProfit() = ( OrderClosePrice() - OrderOpenPrice() )*DIR * DeltaValuePerLot() * OrderLots()
so Pips = OrderProfit() / DeltaValuePerLot() / OrderLots() / Pips2dbl

You are missing trading opportunities:
- Free trading apps
- Over 8,000 signals for copying
- Economic news for exploring financial markets
Registration
Log in
You agree to website policy and terms of use
If you do not have an account, please register
Hi,what is the most efficient way to convert OrderProfit() which initially gives profits/losses in currency, into pips,just so i could see and use the profits/losses in pips.
Or if you can think of any other way of getting the current(not closed) profit/loss of a position that is opened right now.Thank you.