Download MetaTrader 5

Feature request: Functions that return datetime of market open/close

To add comments, please log in or register
Articles can help you to solidify your knowledge. Come and read them!
gordon
2326
gordon 2010.02.21 05:27 

It would be very helpful if we had these functions:

datetime MarketCloseTime();      // returns datetime when market closes THIS week
datetime MarketOpenTime();       // returns datetime when market opens NEXT week

Every broker can set the return to these on his server every week... Many EA's do something before market closes to protect from weekend gaps. This will be very useful for that.

To add comments, please log in or register