Download MetaTrader 5
To add comments, please log in or register
How to buy a product in MetaTrader AppStore? Read the article!
bobo1974
216
bobo1974 2016.04.28 09:07 

int  TimeDaylightSavings();

 

can anyone tell me if this function is accurate in the sense it really follows the actual date when dayight saving is active or not? 

bobo1974
216
bobo1974 2016.04.28 16:00  
anyone?
Daniel Stein
23619
Daniel Stein 2016.04.28 18:44  
bobo1974:
anyone?

It's clearly described in the documentation.

Returns correction for daylight saving time in seconds, if the switch to summer time has been made. It depends on the time settings of your computer.

So yes it works correctly if the time settings of the underlying computer are configured correctly.

And it won't work in the strategy tester! 

TimeDaylightSavings - Date and Time - MQL4 Reference
TimeDaylightSavings - Date and Time - MQL4 Reference
  • docs.mql4.com
TimeDaylightSavings - Date and Time - MQL4 Reference
/
To add comments, please log in or register