Market closing time

 
Is there a way to return the value of how much time is left until the next market close. (That way I can have my expert shut down two hours prior to a market holiday.)

Thanks,
pdb
 
no, not unless you know the close time ahead of time.

Theres no such thing as
datetime dtValue = NextMarketCloseTime();

...that I know of.

The only way to do it, is to plan ahead and hardcode the times into your EA.

 
Theres no such thing as
datetime dtValue = NextMarketCloseTime();

...that I know of.


Not, unless the MetaQuotes would put together international market calendar similar to Interbank Fx one.
They should take advantage of such calendar because such events effect market +-100 pips spikes.
http://interbankfx.com/uscalendar/index.php
// It would be prudent to have
datetime dtValue = NextMarketIndicators();