MQL4 - automated forex trading   /  

Forum

need help!!

Back to topics list To post a new topic, please log in or register

avatar
22
Pain 2011.11.08 13:19 
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!!
Using Neural Networks In MetaTrader

Using Neural Networks In MetaTrader

This article shows you how to easily use Neural Networks in your MQL4 code taking advantage of best freely available artificial neural network library (FANN) employing multiple neural networks in your code.


avatar
1675
qjol 2011.11.08 14:07 
hour() is the servers time not the computers time check it out

avatar
4328
WHRoeder 2011.11.08 14:11 
  1. You posted at 13:19 it's not 1600 yet.
  2. forum.mql4.com/33851 reports DayOfWeek() always returns 5 in the tester. I only use the timeX versions
    if (TimeHour(Time[0]) == 16)

Back to topics list  

To add comments, please log in or register