Is return of OrderOpenPrice() still 4 digits?

To add comments, please log in or register
Greatshore
88
Greatshore  

The quote price of my broker is of 5 digits. But I found the return value of OrderOpenPrice() is still of 4 digits, such as OrderStopLoss() and OrderTakeProfit().

Did anyone find such thing? Is this a bug?

Rashid Umarov
Admin
17221
Rashid Umarov  
Greatshore
88
Greatshore  
Rosh:
Use DoubleToString().

Thank you, but this gets a string type, what should I do if I need a float number with 5 digits? I tried to use StringToDouble(), but got a 4-digits number again.

Nikolay Panev
1232
Nikolay Panev  
GreatShore:

The quote price of my broker is of 5 digits. But I found the return value of OrderOpenPrice() is still of 4 digits, such as OrderStopLoss() and OrderTakeProfit().

Did anyone find such thing? Is this a bug?

My broker also uses 5 digits. When I checked return value of OrderOpenPrice() it gave me 5 digits and sometimes 3 or 4 (probably depending on the price). But why you need 5 digit result?

To add comments, please log in or register