I'm trying to generate alert by EA at a specific time in MT4 . What data type I should use before Alert_time to correctly execute the code.
externdouble Alert_Time = 13.00;
inputstring MSG = "Hi, type you msg here";
bool T = false;
//--------------------------------------------------------------- 2 --int start() // Spec. start function
{
if (TimeLocal() >=Alert_Time && T == false) // If the time for the event has come
{
Alert(MSG);
T = true;
}
return(0);
}
Hi,
I'm trying to generate alert by EA at a specific time in MT4 . What data type I should use before Alert_time to correctly execute the code.