Gamestudio Links
Zorro Links
Newest Posts
Data from CSV not parsed correctly
by EternallyCurious. 04/18/24 10:45
StartWeek not working as it should
by Zheka. 04/18/24 10:11
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
AUM Magazine
Latest Screens
The Bible Game
A psychological thriller game
SHADOW (2014)
DEAD TASTE
Who's Online Now
1 registered members (AndrewAMD), 677 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 2 of 4 1 2 3 4
Re: New Zorro version 2.25 [Re: jcl] #479304
03/16/20 16:32
03/16/20 16:32
Joined: Jul 2017
Posts: 784
Z
Zheka Offline
User
Zheka  Offline
User
Z

Joined: Jul 2017
Posts: 784
For the 3rd time:

- History Editor shows all 1-min prices with CORRECT timestamps (as they are received from IB and are displayed in MC AND IN EXCEL in a csv file)

- the last/previous bars on Fri/earlier are built by Zorro correctly

- from the first bar on Sun 1-min bars are aggregated into 5-min bars incorrectly. -> the bar ending Sun 21:21 has a close corresponding to 21:20 in a t6 file.


All this is clear from the screenshot I attached earlier. -> which has both the log and t6 file opened in History editor.

If the picture is not enough I can send the t6 file and the script to support.

Re: New Zorro version 2.25 [Re: jcl] #479305
03/16/20 16:56
03/16/20 16:56
Joined: Jul 2000
Posts: 27,978
Frankfurt
jcl Offline OP

Chief Engineer
jcl  Offline OP

Chief Engineer

Joined: Jul 2000
Posts: 27,978
Frankfurt
If you don't want to share it here, you can of course also send it to support. I've already written how you can check the timestamps, and what files we'll need if you find a wrong one. Thank you!

Re: New Zorro version 2.25 [Re: jcl] #479306
03/16/20 17:21
03/16/20 17:21
Joined: Jul 2017
Posts: 784
Z
Zheka Offline
User
Zheka  Offline
User
Z

Joined: Jul 2017
Posts: 784
Just sent the t6 file,the script and the screenshot to support for replication.

Re: New Zorro version 2.25 [Re: jcl] #479307
03/16/20 17:36
03/16/20 17:36
Joined: Jul 2017
Posts: 784
Z
Zheka Offline
User
Zheka  Offline
User
Z

Joined: Jul 2017
Posts: 784
Quote
BTW, Zorro timestamps can indeed be wrong, by 0.5 ms. That's the rounding precision of the used time function library. Afraid that's not a bug.
What's the way to ensure that <0.5ms difference does not lead to a price being incorrectly treated by Zorro as ending 1 min later/earlier?

Can a simple algo be implemented FOR RESOLUTIONS of 1MIN+ that if the difference is <1 sec, then the timestamp is corrected up/down to the closest round minute?

Re: New Zorro version 2.25 [Re: jcl] #479308
03/16/20 18:32
03/16/20 18:32
Joined: Jul 2000
Posts: 27,978
Frankfurt
jcl Offline OP

Chief Engineer
jcl  Offline OP

Chief Engineer

Joined: Jul 2000
Posts: 27,978
Frankfurt
No, because HFT tests can have 1 ms resolution. But if the difference is less than 0.5 ms, then it is rounded to the next minute or hour.

Re: New Zorro version 2.25 [Re: jcl] #479310
03/16/20 20:16
03/16/20 20:16
Joined: Jul 2017
Posts: 784
Z
Zheka Offline
User
Zheka  Offline
User
Z

Joined: Jul 2017
Posts: 784
I understand HFT tests require TICKS and of course need almost no rounding.

But how about regular bar-based testing at resolutions above 1 min (which - i guess - is the main use case)?

Re: New Zorro version 2.25 [Re: jcl] #479314
03/17/20 08:40
03/17/20 08:40
Joined: Jul 2000
Posts: 27,978
Frankfurt
jcl Offline OP

Chief Engineer
jcl  Offline OP

Chief Engineer

Joined: Jul 2000
Posts: 27,978
Frankfurt
No. Maybe your problem is simply a misconception of bars and ticks? What you see in the log are the bars. What you see in a history file are the ticks. Bars start and end at time boundaries, like any full minute. Ticks do not. They are unrelated to time boundaries. They get their timestamps from the price source or out of the history file. Your script can set up the time of bars, but not of ticks. Any bar contains exactly the ticks whose timestamps fall into the bar period. Maybe that has confused you.

In the manual you can find a more detailed intro to bars and ticks and their role in a trading system.

Re: New Zorro version 2.25 [Re: jcl] #479330
03/18/20 14:19
03/18/20 14:19
Joined: Jul 2000
Posts: 27,978
Frankfurt
jcl Offline OP

Chief Engineer
jcl  Offline OP

Chief Engineer

Joined: Jul 2000
Posts: 27,978
Frankfurt
Another bug reported: The TradeOptions script had a missing semicolon on line 21. This has been fixed.

Re: New Zorro version 2.25 [Re: jcl] #479332
03/18/20 15:11
03/18/20 15:11
Joined: Feb 2017
Posts: 1,725
Chicago
AndrewAMD Online
Serious User
AndrewAMD  Online
Serious User

Joined: Feb 2017
Posts: 1,725
Chicago
The remarks section of the Markowitz manual page is a bit jumbled, formatting error?
https://zorro-project.com/manual/en/markowitz.htm

Re: New Zorro version 2.25 [Re: jcl] #479341
03/19/20 10:06
03/19/20 10:06
Joined: Jul 2000
Posts: 27,978
Frankfurt
jcl Offline OP

Chief Engineer
jcl  Offline OP

Chief Engineer

Joined: Jul 2000
Posts: 27,978
Frankfurt
Indeed. This will be fixed.

Page 2 of 4 1 2 3 4

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