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;
}