Gamestudio Links
Zorro Links
Newest Posts
Zorro FIX plugin - Experimental
by flink. 04/21/24 07:12
Data from CSV not parsed correctly
by EternallyCurious. 04/20/24 21:39
M1 Oversampling
by 11honza11. 04/20/24 20:57
Scripts not found
by juergen_wue. 04/20/24 18:51
zorro 64bit command line support
by 7th_zorro. 04/20/24 10:06
StartWeek not working as it should
by jcl. 04/20/24 08:38
folder management functions
by VoroneTZ. 04/17/24 06:52
AUM Magazine
Latest Screens
The Bible Game
A psychological thriller game
SHADOW (2014)
DEAD TASTE
Who's Online Now
1 registered members (AndrewAMD), 533 guests, and 2 spiders.
Key: Admin, Global Mod, Mod
Newest Members
EternallyCurious, howardR, 11honza11, ccorrea, sakolin
19047 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: 784
Z
Zheka Offline OP
User
Zheka  Offline OP
User
Z

Joined: Jul 2017
Posts: 784

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,982
Frankfurt
jcl Offline

Chief Engineer
jcl  Offline

Chief Engineer

Joined: Jul 2000
Posts: 27,982
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: 784
Z
Zheka Offline OP
User
Zheka  Offline OP
User
Z

Joined: Jul 2017
Posts: 784
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: 784
Z
Zheka Offline OP
User
Zheka  Offline OP
User
Z

Joined: Jul 2017
Posts: 784
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,982
Frankfurt
jcl Offline

Chief Engineer
jcl  Offline

Chief Engineer

Joined: Jul 2000
Posts: 27,982
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: 784
Z
Zheka Offline OP
User
Zheka  Offline OP
User
Z

Joined: Jul 2017
Posts: 784
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