hours()

Posted By: tradingest

hours() - 10/08/18 20:44

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
Posted By: tradingest

Re: hours() - 10/08/18 20:59

resolved

Code:
if(hour() == 0 && minute() == 0)

© 2024 lite-C Forums