It is not clear what you want to do. Do you want to skip bars outside market hours, or do you want not to trade outside market hours?

If you want to skip bars, then do not change StartMarket and EndMarket, or else you will of course get strange results when you do that in the middle of a frame. If you just want not to trade, then do not set TimeFrame, since that skips bars.

All about skipping bars and using TimeFrame can be read here: http://manual.zorro-project.com/barperiod.htm. You can skip any time period on any market condition that you want when you understood the mechanism.