How can EA get market open/close datetime ?

 
How can EA get market open/close datetime? Thanks!
 
it has no automated way. Market opens in Sydney and closes in NY time 17:00. But there are many exceptions like holidays, special days, half days etc etc. Trading days may change and also they may chance from broker to broker. you can look at forextimer at www.fx1.net
Reason: