Gamestudio Links
Zorro Links
Newest Posts
folder management functions
by VoroneTZ. 04/17/24 06:52
lookback setting performance issue
by 7th_zorro. 04/16/24 03:08
zorro 64bit command line support
by 7th_zorro. 04/15/24 09:36
Zorro FIX plugin - Experimental
by flink. 04/14/24 07:48
Zorro FIX plugin - Experimental
by flink. 04/14/24 07:46
LPDIRECT3DCUBETEXTUR
E9

by Ayumi. 04/12/24 11:00
Sam Foster Sound | Experienced Game Composer for Hire
by titanicpiano14. 04/11/24 14:56
AUM Magazine
Latest Screens
The Bible Game
A psychological thriller game
SHADOW (2014)
DEAD TASTE
Who's Online Now
2 registered members (AndrewAMD, Quad), 509 guests, and 1 spider.
Key: Admin, Global Mod, Mod
Newest Members
11honza11, ccorrea, sakolin, rajesh7827, juergen_wue
19045 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