tester EA log

To add comments, please log in or register
Manoj Gupta
68
Manoj Gupta  

Hi,

In a simple EA code, I am trying to print number of ticks. I expect it to print from 1 in step of 1 in the following code:

int tick;

int OnInit()
{
   tick = 0;
   return(INIT_SUCCEEDED);
}

void OnTick()
{
   Print("Tick = ", tick++);
}

But it prints from some arbitrary number, like 21000 and different in each run, and also they are not in step of 1 rather there is a big difference in two consecutive number. 

Any ideas what the reason for this?

Thanks.

oliver1007
34
oliver1007  
I don't have any experience like that..i wish someone can help to fix this...
To add comments, please log in or register