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.
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?

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
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?