Hello piphunter,
Attached is the altered expert of yours.
I have added 2 extra initialization parameters; StartTime and EndTime. You enter the values of the beginning and ending hours in there respective fields if you would like the specialist to trade between those specified hours simply, if you leave the default value (hh), the specialist will keep trading continuously as before.
I have analyzed the alteration and it is good for me. It's very possible though that a bug might slip or something like that, so just inform me if you find such matters.
MT.