add alert class instance in x121ea and configure it for using tima tracker alerting ...
This commit is contained in:
@@ -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()
|
||||
|
||||
Reference in New Issue
Block a user