Help please - possible loss of data due to type conversion

 

I have an Error message - possible loss of data due to type conversion

DoubleToStr(OrderOpenPrice(),MarketInfo(OrderSymbol(),MODE_DIGITS)),

All help appreciated 😊

 
  1. MarketInfo is a general function. It returns a double. DoubleToStr takes an int. Cast it.
  2. Stop using the deprecated function and start using DoubleToString.
 
William Roeder #:
  1. MarketInfo is a general function. It returns a double. DoubleToStr takes an int. Cast it.
  2. 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 😊

 
Ray Eagle #: 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.

 

Hello William, thank you, yes I have been reading the manual, yet had not found an answer,

wishing you a easy enjoyable day😊