The ES stops trading at 1624 so a time template that uses hours of 930 through 1630 doesn't allow bar time comparisson for say 1630. For example:
So in the above scenario how can an efs identify that the end of the TimeTemplate period has arrived other than using 1624 in the code instead of 1630?
The only solution I can think of is to do a midnight check:
Thanks,
Wayne
PHP Code:
if((bartime >= 1630 && bartime < 1630+getInterval()) do something
The only solution I can think of is to do a midnight check:
PHP Code:
if((bartime >= 1630 && bartime < 1630+getInterval())) || day(0) !== day(-1)) do something
Wayne
Comment