Another thing:

The reason I set asset time zones and market hours in the assetList is because I tried setting them in the script directly using AssetMarketStart/End/Zone, and I have the BR_LOCAL flag set, but the bars are geenerated according to the default market hours 9:30-15:59 (although according to the manual, it is supposed to work). I verified that when I do so, Start/Endaarket gets updated to the new hours, but still the default market hours are used. I posted a question on the forum, as I am not sure if it is a bug or if I am missing something. However, I found setting these in the aasetList file works whish is good for now till I figure out why it does not in the script.