- MarketInfo is a general function. It returns a double. DoubleToStr takes an int. Cast it.
- Stop using the deprecated function and start using DoubleToString.
- MarketInfo is a general function. It returns a double. DoubleToStr takes an int. Cast it.
- Stop using the deprecated function and start using DoubleToString.
Thank you William for your quick helpful reply 😊
All corrected DoubleToString(OrderOpenPrice(),(int)MarketInfo(OrderSymbol(),MODE_DIGITS)),
Only one more case of - possible loss of data due to type conversion
printf(OrderCloseTime()); I have tried a few options, help appreciated 😊
Perhaps you should read the manual. TimeToString - Conversion Functions - MQL4 Reference
How To Ask Questions The Smart Way. (2004)
How To Interpret Answers.
RTFM and STFW: How To Tell You've Seriously Screwed Up.
Perhaps you should read the manual. TimeToString - Conversion Functions - MQL4 Reference
How To Ask Questions The Smart Way. (2004)
How To Interpret Answers.
RTFM and STFW: How To Tell You've Seriously Screwed Up.
Hello William, thank you, yes I have been reading the manual, yet had not found an answer,
wishing you a easy enjoyable day😊
- Free trading apps
- Over 8,000 signals for copying
- Economic news for exploring financial markets
You agree to website policy and terms of use
I have an Error message - possible loss of data due to type conversion
DoubleToStr(OrderOpenPrice(),MarketInfo(OrderSymbol(),MODE_DIGITS)),
All help appreciated 😊