Gamestudio Links
Zorro Links
Newest Posts
Zorro 2.70
by jcl. 09/29/25 09:24
optimize global parameters SOLVED
by dBc. 09/27/25 17:07
ZorroGPT
by TipmyPip. 09/27/25 10:05
assetHistory one candle shift
by jcl. 09/21/25 11:36
Plugins update
by Grant. 09/17/25 16:28
AUM Magazine
Latest Screens
Rocker`s Revenge
Stug 3 Stormartillery
Iljuschin 2
Galactic Strike X
Who's Online Now
4 registered members (TipmyPip, AndrewAMD, dBc, clonman), 18,621 guests, and 5 spiders.
Key: Admin, Global Mod, Mod
Newest Members
krishna, DrissB, James168, Ed_Love, xtns
19168 Registered Users
Previous Thread
Next Thread
Print Thread
Rate Thread
Start/EndMarket are not copied from AssetMarketStart/AssetMarket #487146
01/28/23 11:32
01/28/23 11:32
Joined: Apr 2019
Posts: 53
Canada
A
aelagha Offline OP
Junior Member
aelagha  Offline OP
Junior Member
A

Joined: Apr 2019
Posts: 53
Canada
Hi there,

I am limiting the bar generation for intraday to certain hours. My understanding based on the BR_LOCAL flag help, is that if it is set, AssetMarketStart/AssetMarketEnd will be automatically copied to StartMarket/EndMarket. However, unless I uncomment the two lines to set StartMarket/EndMarket, the bars start generating at 9:30 and end at 15:59, suggesting StartMArket/EndMarket are at their default values and are not copied from AssetMarketStart/AssetMarketEnd. Am I missing something or is there a bug? The historical data is 1-min for SP500 futures so there are bars for each single min. even off hours. I am using zorro 2.53.9 rc. Appreciate your help.

BarPeriod = 1;
BarZone = EST;
//StartMarket = 0930;
//EndMarket = 1700;
BarMode = BR_LOCAL | BR_WEEKEND | BR_MARKET;
AssetMarketStart = 0930;
AssetMarketEnd = 1700;
AssetMarketZone = EST;
StartWeek = 10001;
EndWeek = 52359;

Re: Start/EndMarket are not copied from AssetMarketStart/AssetMarket [Re: aelagha] #487150
01/29/23 06:13
01/29/23 06:13
Joined: Apr 2019
Posts: 53
Canada
A
aelagha Offline OP
Junior Member
aelagha  Offline OP
Junior Member
A

Joined: Apr 2019
Posts: 53
Canada
Some futher testing, as it may help someione else

The above code actually does set StartMarket/EndMarket to the new hours (if you inspect/print StartMarket/EndMarket, they are set to the new values). However, for some reason, bars are still generated according to the default market hours (9:30-15:59).

Setting StartMarket/EndMarket in the assitList file does work, and bars are limited to these hours (in this case of course yuou do not need to use AssetMarketStart/AssetMarketEnd/AssetMarketZone)

I am still not sure if this is a bug or if I am missing something.


Moderated by  Petra 

Powered by UBB.threads™ PHP Forum Software 7.7.1