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 4 Expert Advisor | Check Trading time

MetaTrader Experts, Indicators, Scripts and Libraries

This code base is a simple function to check if current time lies within two specified times. 

Many times it is required by the EA to enter trades between two specific time of the day only. 

This code takes two inputs, one is the start time and the second is the end time. 

The code will check if the current time is in between start time and end time and will return accordingly. 

16452