Download MetaTrader 5

Daylight Saving

To add comments, please log in or register
Speed up MQL5 Cloud Network. Install Strategy Tester Agent!
Dua Yong Rew
5422
Dua Yong Rew 2015.04.18 06:43 

Hello all,

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

any function that can check? 

Bambang Sugianto
10224
Bambang Sugianto 2015.04.18 07:01  

if you know your broker GMT is +3

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

Dua Yong Rew
5422
Dua Yong Rew 2015.04.18 17:09  

I'm reading up the website and found this function

int  TimeDaylightSavings();

 

anyone knows how this work? 

Dua Yong Rew
5422
Dua Yong Rew 2015.04.19 04:29  

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