Hi all,

using the code below why the print is present for each 00 until 00:59 and not only on 00:00?
How can I do to obtain the single print at 00:00?

Code:
function run()
{

set(LOGFILE);
StartDate = 20181001;
EndDate = 2018;
LookBack = 0;
BarPeriod = 1;

if(hour() == 0000)
{
print(TO_WINDOW,"n Date: %02d-%02d-%02d %02d:%02d test",day(),month(),year(),hour(),minute());	
}
}



Thanks