since Time is an integer !
So Change to :
DoubleToStr(1.0*(TimeCurrent()-OrderOpenTime())/86400.0,2);

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
I am trying to write to file the string DaysOpen with with precision to 2 decimal places. In the FileWrite line, both DaysOpen and StrToDouble(DaysOpen) write to flle only single interger. Example: 0.02 wrties 0 and 1.25 writes 1.
Please advise. Thank you in advance.