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 (Quad, AndrewAMD), 410 guests, and 0 spiders.
Key: Admin, Global Mod, Mod
Newest Members
11honza11, ccorrea, sakolin, rajesh7827, juergen_wue
19045 Registered Users
Previous Thread
Next Thread
Print Thread
Rate Thread
Page 3 of 3 1 2 3
Re: Market hours for Globex [Re: Zheka] #470512
01/17/18 18:14
01/17/18 18:14
Joined: Jul 2017
Posts: 783
Z
Zheka Offline OP
User
Zheka  Offline OP
User
Z

Joined: Jul 2017
Posts: 783

I also think it would be better if a Frame had been calculated by Zorro internally by the number of minutes, not the number of bars.
Bars can be absent for some reason in the historical data or in RT, but that should not be shifting frames..

Yes, one can code around this situation, but why would not Zorro take care of it by default?

Re: Market hours for Globex [Re: Zheka] #470523
01/18/18 14:38
01/18/18 14:38
Joined: Jul 2000
Posts: 27,978
Frankfurt
jcl Offline

Chief Engineer
jcl  Offline

Chief Engineer

Joined: Jul 2000
Posts: 27,978
Frankfurt
I have no example of special bars that use Start and Time. For not starting a bar, return 4. - It's the same as with most software libraries: What's often used is the default, what's rare or unusual must be explicitely coded.

Re: Market hours for Globex [Re: jcl] #470525
01/18/18 15:11
01/18/18 15:11
Joined: Jul 2017
Posts: 783
Z
Zheka Offline OP
User
Zheka  Offline OP
User
Z

Joined: Jul 2017
Posts: 783
Ensuring that the Timeframe always covers the intended period is on the side of "proofing" and "making the functionality more robust", rather than a "special request", I believe.

Re: Market hours for Globex [Re: Zheka] #470527
01/18/18 16:13
01/18/18 16:13
Joined: Jul 2017
Posts: 783
Z
Zheka Offline OP
User
Zheka  Offline OP
User
Z

Joined: Jul 2017
Posts: 783
Question:
when TimeFrame=0, what value will priceOpen() report? From which bar?

Last edited by Zheka; 01/18/18 16:14.
Re: Market hours for Globex [Re: Zheka] #470530
01/18/18 17:01
01/18/18 17:01
Joined: Jul 2000
Posts: 27,978
Frankfurt
jcl Offline

Chief Engineer
jcl  Offline

Chief Engineer

Joined: Jul 2000
Posts: 27,978
Frankfurt
I guess from the current bar. But prices of a time frame are only defined at the end of the frame.

Re: Market hours for Globex [Re: jcl] #470533
01/18/18 17:34
01/18/18 17:34
Joined: Jul 2017
Posts: 783
Z
Zheka Offline OP
User
Zheka  Offline OP
User
Z

Joined: Jul 2017
Posts: 783
It turns out, priceOpen will be equal to an open of the previously set TimeFrame bars ago.
E.g. if the usual/previous TF=4 and currently we are skipping bars (TimeFrame=0),
then priceOpen()=Open[4].

Page 3 of 3 1 2 3

Moderated by  Petra 

Gamestudio download | chip programmers | Zorro platform | shop | Data Protection Policy

oP group Germany GmbH | Birkenstr. 25-27 | 63549 Ronneburg / Germany | info (at) opgroup.de

Powered by UBB.threads™ PHP Forum Software 7.7.1