TimeLib by BabyBear – library MetaTrader 4
Several functions for working with the holidays:The function datetime LastMondayStart( datetime dt); returns the last Sunday 22:00 before dt. The function datetime NextFridayEnd( datetime dt); returns the nearest Friday 23:00 time after dt.The function int SundayMidnightCount( datetime start, datetime end);returns the number of holidays between two dates. The function int HoursCandleCount( datetime start, datetime end);returns … Read more