Daylight Saving

 

Hello all,

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

any function that can check? 

 

if you know your broker GMT is +3

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

 

I'm reading up the website and found this function

int  TimeDaylightSavings();

 

anyone knows how this work? 

 

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
Reason: