Timetable - MetaTrader 4 Library | Trading Script Download - MT4/MT5 Resources - MetaTrader 5 Resources
The Schedule class defines a schedule that starts at a day and time of the week and runs to an end date of the week and time. "Scripts\Tests\Schedule\ScheduleTests.mq4" also contains tests that provide extensive usage examples and collate the expected behavior of Schedule.
Blank schedule ( ENUM_DAY_OF_WEEK start day, string start time, ENUM_DAY_OF_WEEK end day, string end time)
- ENUM_DAY_OF_WEEKStart Day - The day the schedule starts.
- String Start Time - The time the schedule starts (in 24 hour format).
- ENUM_DAY_OF_WEEK End Day - The day the schedule ends.
- String End Time - The time the schedule ends (24 hour format).
ENUM_DAY_OF_WEEK day start; // The timestamp of the day when the schedule starts *TimeStart; // The time when the schedule starts ENUM_DAY_OF_WEEK Day end; // The timestamp of the day when the schedule ends *TimeEnd; // The time when the schedule ends
The TimeStamp property is an instance of the simple TimeStamp object contained in this library. They have two integer properties "Hour" and "Minute".
StringToString () // Returns the English description of the schedule.
Boolean value is active ( datetime when) // Returns true if the schedule is active at the given datetime.
Attachment download
📎 schedule.mqh (6.83 KB)
📎 scheduletests.mq4 (11.66 KB)
Source: MQL5 #21351
💡 Featured Recommendations
✍️ Latest by the author
- •
- •
- •
- •
- •
- •
📌 Popular topics
- •
- •
- •
- •
- •
- •
- •
- •
🔗 You May Be Interested In
- •
- •
- •
- •
- •
- •