add alert class instance in x121ea and configure it for using tima tracker alerting ...

This commit is contained in:
2024-07-08 20:05:29 +03:30
parent 366e55a9de
commit c49034002c
3 changed files with 147 additions and 33 deletions
+25
View File
@@ -1862,6 +1862,7 @@ struct XTimeTracker
int xForWeekDay;
int xDay;
int xHour;
int xMinute;
//
// Constructor ...
@@ -1880,10 +1881,34 @@ struct XTimeTracker
xDay = -1;
xHour = -1;
xMonth = -1;
xMinute = -1;
xDayOfWeek = -1;
xForWeekDay = -1;
}
//
// Detecting New Minute ...
bool IsNewMinute()
{
//
bool result = false;
//
// Retrieve Current Time as Struct ...
MqlDateTime timeStruct = GetCurrentTime();
//
// Check Houre ...
result = timeStruct.min != xMinute;
if (result)
{
xMinute = timeStruct.min;
}
//
return result;
}
//
// Detecting New Houre ...
bool IsNewHour()