View Single Post
  #4 (permalink)  
Old 05-20-2006, 04:40 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
working

Found that you can't initilize time in the init() section

So go like this

Code:
static double time1=0;

...
void init()
{
return(0)
}

int start()
{

 if (CurTime()<= time1)
  {
  //Print(" Cur: ",TimeToStr(CurTime(),TIME_DATE|TIME_SECONDS)," time1:  ",TimeToStr(time1,TIME_DATE|TIME_SECONDS));
    
    return(0);
  }

   SellOrdOpen();
   time1 = CurTime()+360;
}
Reply With Quote