Fast time range checking function. Doesn't use slow string parsing. Function returns TRUE if time in range, FALSE otherwise. Usage: Drop .mq4 file to MQL4\Libraries\ folder. Add this line inside your EA: #include "..\libraries\time_in_range...
from https://tradingrobots.net/timeinrange-time-checking-function-library-for-metatrader-4/