|
Ating for MQL5
|
Manages the start and end times for a section. More...
Public Types | |
| enum | ENUM_CHECK_SECTION_TIME { CHECK_ARG_SECTION_TIME_PASSED , ERR_START_EQUAL_END , ERR_CURRENT_OVER_END } |
| Enum to handle different types of section time checks. More... | |
Public Member Functions | |
| void | UpdateAtr (uchar start_time_hour, uchar start_time_min, uchar start_time_seg, uchar end_time_hour, uchar end_time_min, uchar end_time_seg) |
| Updates the section's start and end times. | |
| ENUM_CHECK_SECTION_TIME | CheckArg () |
| Checks the validity of the section time arguments. | |
| void | Update () |
| Updates the section's DateTime structures with current values. | |
| bool | VerifyInsideSection () |
| Verifies if the current time is within the section's start and end times. | |
| string | EnumCheckSectionTimeToString (ENUM_CHECK_SECTION_TIME enum_result) |
| Converts the ENUM_CHECK_SECTION_TIME result to a string. | |
| string | CommentToShow () |
| Returns a formatted comment with section time information. | |
Public Attributes | |
| MqlDateTime | startDateTime |
| MqlDateTime | endDateTime |
| MqlDateTime | brokerDateTime |
| DateTime structures for start, end, and broker times. | |
Manages the start and end times for a section.
|
inline |
|
inline |
| SectionTime::ENUM_CHECK_SECTION_TIME SectionTime::CheckArg | ( | ) |
Checks the validity of the section time arguments.
Here is the call graph for this function:| string SectionTime::CommentToShow | ( | ) |
Returns a formatted comment with section time information.
| string SectionTime::EnumCheckSectionTimeToString | ( | ENUM_CHECK_SECTION_TIME | enum_result | ) |
Converts the ENUM_CHECK_SECTION_TIME result to a string.
| enum_result | The ENUM_CHECK_SECTION_TIME result to convert |
| void SectionTime::Update | ( | ) |
Updates the section's DateTime structures with current values.
Here is the call graph for this function:
Here is the caller graph for this function:| void SectionTime::UpdateAtr | ( | uchar | start_time_hour, |
| uchar | start_time_min, | ||
| uchar | start_time_seg, | ||
| uchar | end_time_hour, | ||
| uchar | end_time_min, | ||
| uchar | end_time_seg ) |
Updates the section's start and end times.
| start_time_hour | Start time hour |
| start_time_min | Start time minute |
| start_time_seg | Start time second |
| end_time_hour | End time hour |
| end_time_min | End time minute |
| end_time_seg | End time second |
| bool SectionTime::VerifyInsideSection | ( | ) |
Verifies if the current time is within the section's start and end times.
Here is the call graph for this function:| MqlDateTime SectionTime::brokerDateTime |
DateTime structures for start, end, and broker times.
| MqlDateTime SectionTime::endDateTime |
| MqlDateTime SectionTime::startDateTime |