mql time is nothing more than a number of seconds, so difeerence in hours is:
(time1-time2)/3600.0 make it a double to get fractional hours.
(time1-time2)/3600.0 make it a double to get fractional hours.
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
I want to calculate Hours between two datetime numbers as above, how is that done ?