You could define the open time of a market like that
(from the manual)

Code:
function run()
{
  ...
  StartWeek = 10400; // start Monday 4 am
  EndWeek = 51900; // end Friday 7 pm
  Weekend = 7; // log off during the weekend
  ...
}