Time Alert calculation..!!

 

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.


extern double Alert_Time = 13.00;
input string 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);
}
Reason: