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
Hi all, is it possible to save a global variable as datetime format?
I'm trying with the following code, but I see it as a string.
you can use 'union'
https://www.mql5.com/en/forum/432809
Kindly see this thread, you can cast MQL4 datetime into double and later convert back to datetime.
They both use 8 bytes and datetime is most likely just a long under the scene (integer).
The possible data loss:
https://stackoverflow.com/questions/32783923/how-big-is-the-precision-loss-converting-long-to-double
For more details, we might scan thru these insightful discussion.
https://www.mql5.com/en/forum/427424