How to convert OrderProfit() to pips or points ?

Back to topics list To post a new topic, please log in or register
avatar
79
akhmadfx3 2015.02.03 12:46
 

Let's say i have opened order 10 buy and 12 sell, and current order profit from OrderProfit() function is let's say 1 USD,

and i have profit target 5 USD, with this situation, can i calculate 5 USD - 1 USD = 4 USD 

that mean 4 USD from current market price i can make order modify to all order with TP in pips equal to next 4 USD (5 USD profit target)

how to code that ? 

 

avatar
Moderator
3427
GumRai 2015.02.03 13:39 #
 
akhmadfx3:

Let's say i have opened order 10 buy and 12 sell,

I have no idea what that means

akhmadfx3:

and i have profit target 5 USD, with this situation, can i calculate 5 USD - 1 USD = 4 USD 

 Yes, 5 USD-1 USD=4 USD

 

 

avatar
79
akhmadfx3 2015.02.03 14:39 #
 
mean, how to convert orderprofit() to pips
avatar
2017
gooly 2015.02.03 14:52 #
 
The difference of OrderClosePrice()  - OrderOpenPrice() (for a buy-order!) gives you the OrderProfit() in Ponits(!) but it is without Commission() and Swap().
Back to topics list  

To add comments, please log in or register