This is what you probably wanted to program:

Code:
var DH = 0, DL = 0;
if(lhour(UTC) > EndMarket) {
  DH = dayHigh (UTC,0);
  DL = dayLow (UTC,0);
}


Do you understand why you need the if?