Download MetaTrader 5
To add comments, please log in or register
Find out how to add a video in the messages editor
sorasit
358
sorasit 2014.08.07 23:08 

How to set only 1 time for all variables of "double data type" ?


Thank you

whroeder1
13610
whroeder1 2014.08.08 01:04  
sorasit46: How to set only 1 time for all variables of "double data type" ?
  1. Posting makes no sense. If you use a automated translation, you must use simple phrases.
  2. double d1;
    double d2 = 0.0; // OneTimeInitialization (constant)
    :
    int init(){
      d1 = OneTimeInitialization(); // Calculated.
    }

Keith Watford
Moderator
7907
Keith Watford 2014.08.08 02:52  
sorasit46:

How to set only 1 time for all variables of "double data type" ?


Thank you


time would be considered a datetime variable

Did you mean "once" when you wrote "1 time" ?

But I still don't understand the question. 

sorasit
358
sorasit 2014.08.08 04:03  
GumRai:


time would be considered a datetime variable

Did you mean "once" when you wrote "1 time" ?

But I still don't understand the question. 


Sorry!

"1 time" mean "1 action or 1 command"

Simon Gniadkowski
Moderator
17963
Simon Gniadkowski 2014.08.08 06:47  
sorasit46:

Sorry!

"1 time" mean "1 action or 1 command"

You mean . . . "How to fix 3 digit for all "double data type" ?"  where are you seeing more than 3 digits ?  doubles are inherently many digits due to the way they are stored.  If you want 3 digits when you Print() or Comment() you have to convert the output to 3 digits using something like DoubleToStr(double, 3)  if you want 3 digits shown for an Indicator then read this: IndicatorDigits
/
To add comments, please log in or register