Gamestudio Links
Zorro Links
Newest Posts
AlpacaZorroPlugin v1.3.0 Released
by kzhao. 05/20/24 20:05
Free Live Data for Zorro with Paper Trading?
by AbrahamR. 05/18/24 13:28
Change chart colours
by 7th_zorro. 05/11/24 09:25
Data from CSV not parsed correctly
by dr_panther. 05/06/24 18:50
AUM Magazine
Latest Screens
The Bible Game
A psychological thriller game
SHADOW (2014)
DEAD TASTE
Who's Online Now
2 registered members (AndrewAMD, kzhao), 901 guests, and 1 spider.
Key: Admin, Global Mod, Mod
Newest Members
Hanky27, firatv, wandaluciaia, Mega_Rod, EternallyCurious
19051 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