Sorry, I just see that I made a mistake - this is (hopefully) the correct code:

if(lhour(UTC) > EndMarket/100)
...