Download MetaTrader 5

Daylight Saving

To add comments, please log in or register
Dua Yong Rew
5510
Dua Yong Rew  

Hello all,

How can my EA detect if there is day light savings?

any function that can check? 

Bambang Sugianto
10522
Bambang Sugianto  

if you know your broker GMT is +3

if you check timecurrent - timegmt = 4 hour.  then it is DST time

Dua Yong Rew
5510
Dua Yong Rew  

I'm reading up the website and found this function

int  TimeDaylightSavings();

 

anyone knows how this work? 

Dua Yong Rew
5510
Dua Yong Rew  

and I found this also

http://forum.mql4.com/54579#774166 

merging two expression: GMT offset by DayOfYear - MQL4 forum
  • www.mql5.com
merging two expression: GMT offset by DayOfYear - MQL4 forum
To add comments, please log in or register