easy shot there

 

I want to modify my order in som script and I wonder how to actually get profit in points instead of dollars

I want to know what is the simplest way to do this.

OrderProfit()*Point

or

in both sell/buy case use

OrderOpenPrice()-OrderPrice()

OrderPrice()-OrderOpenPrice()

please help me out

 

OrderOpenPrice()-OrderClesePrice()

OrderClosePrice()-OrderOpenPrice()

 
qjol:

OrderOpenPrice()-OrderClesePrice()

OrderClosePrice()-OrderOpenPrice()


what if my order is not closed yet?
 

then, it's giving u the last Bid/Ask price (don't worry this is the right code)

 
qjol:

then, it's giving u the last Bid/Ask price (don't worry this is the right code)


:) thanks
Reason: