need help!!

 
void PlaceOrder()
  {
   Print("J is 0");
   if(Hour()==16)
     {
      Print("J is 1");
     }
  }
  
void start()
  { 
   PlaceOrder();
  }
   




when i run this, it only went through "Print("J is 0")",it wont go to the step "Print("J is 1")", does someone know why? Thanks for your time, i appreciate your helps!!
 
hour() is the servers time not the computers time check it out
 
  1. You posted at 13:19 it's not 1600 yet.
  2. https://www.mql5.com/en/forum/127483 reports DayOfWeek() always returns 5 in the tester. I only use the timeX versions
    if (TimeHour(Time[0]) == 16)

Reason: