Expert Advisors • Indicators • Scripts • Libraries

MQL.RobotFX.org is the biggest collection of MetaTrader expert advisors (MT5 & MT4), indicators, scripts and libraries that can be used to improve trading results, minimize risks or simply automate trading tasks

MetaTrader 5 Libraries | Function to get Next Open Time and Closing Time for the market.

MetaTrader Experts, Indicators, Scripts and Libraries

A Simple Call to this function will return the next Opening Time and Closing Time of the Asset, if no from time input it will search following the current Trade Server Time.

 Usage:

GetOpeningTimes(Open_Time, Close_Time, time); // where time is the from time

GetOpeningTimes(Open_Time, Close_Time); // searches from current time...

Enjoy...

34056