![MQL5 - Language of trade strategies built-in the MetaTrader 5 client terminal](https://c.mql5.com/i/registerlandings/logo-2.png)
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
WHRoeder ........thanks .....going to tray your code........
thanks again
and here what i found in the log file
Type datetime
The value of datetime type is the values of date and time.
The values of this type can be used in programs to analyze the moment of beginning or ending of some events, including the releases of important news, workday start/finish, etc. The constants of date and time can be represented as a literal line consisting of 6 parts that represent the numeric value of year, month, day (or day, month, year), hour, minute, and second.
The constant is framed in single quotes and starts with 'D'. It is allowed to use truncated values: either without date or without time, or just an empty value. The range of values: from January 1, 1970, to December 31, 2037. The values of constants and variables of datetime type take 4 bytes in the computer memory. A value represents the amount of seconds elapsed from 00:00 of the 1st of January 1970.
An example of using a variable of datetime type in a program:
and after getting the time format as the above then i can do any mathematical operations on it by considering it to be a (number) not (date)
As you can see time is like a counting of seconds from January 1, 1970, to December 31, 2037
isn't it be easier to make use of datetime to do mathematical operations ???
isn't it be easier to make use of datetime to do mathematical operations ???
I have encountered a similar problem with Screen Update. I resolved it. I attachment has the solution with screenshots.