Gamestudio Links
Zorro Links
Newest Posts
Trading Journey
by howardR. 04/28/24 09:55
basik85278
by basik85278. 04/28/24 08:56
Zorro Trader GPT
by TipmyPip. 04/27/24 13:50
Help with plotting multiple ZigZag
by M_D. 04/26/24 20:03
Data from CSV not parsed correctly
by jcl. 04/26/24 11:18
M1 Oversampling
by jcl. 04/26/24 11:12
Why Zorro supports up to 72 cores?
by jcl. 04/26/24 11:09
Eigenwerbung
by jcl. 04/26/24 11:08
AUM Magazine
Latest Screens
The Bible Game
A psychological thriller game
SHADOW (2014)
DEAD TASTE
Who's Online Now
2 registered members (SBGuy, Quad), 768 guests, and 5 spiders.
Key: Admin, Global Mod, Mod
Newest Members
wandaluciaia, Mega_Rod, EternallyCurious, howardR, 11honza11
19049 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