Kim Thanh Nguyen / Publications
Forum
OnInit() and OnTimer() to count second
Hi, I try to increase my variable secondCounter in every second, does my code here work? And both of these function still won't work in Strategy Tester , am I right? int secondCounter = 0 ; int OnInit () { EventSetTimer ( 1 ); return ( INIT_SUCCEEDED ); } void OnTimer () { secondCounter++; }