View Single Post
  #2 (permalink)  
Old 05-19-2006, 11:22 AM
cardio cardio is offline
Senior Member
 
Join Date: Sep 2005
Location: St Louis, MO, USA
Posts: 176
cardio is an unknown quantity at this point
Sleep doesn't seem to work

Hi
I am also having problems with sleep (lol).
I find it doesn't work - definetly not when using stratergy tester to test an ea, so I set a variable to the time I want my expert to sleep and then check that variable

Code:
if (CurTime()< time1)
   {
     return(0);
   }
else
  {
   Sell1();
   Print("SELL order opened : ",OrderOpenPrice());
  time1 = CurTime()+2*60*Period();  
  }
Reply With Quote