Gamestudio Links
Zorro Links
Newest Posts
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
MT5 bridge not working on MT5 v. 5 build 4160
by EternallyCurious. 04/25/24 20:49
Trading Journey
by howardR. 04/24/24 20:04
Zorro FIX plugin - Experimental
by flink. 04/21/24 07:12
Scripts not found
by juergen_wue. 04/20/24 18:51
AUM Magazine
Latest Screens
The Bible Game
A psychological thriller game
SHADOW (2014)
DEAD TASTE
Who's Online Now
3 registered members (wandaluciaia, AndrewAMD, 1 invisible), 765 guests, and 6 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
Suggestion: make TimeFrame part of STATUS struct #471286
02/26/18 16:55
02/26/18 16:55
Joined: Jul 2017
Posts: 784
Z
Zheka Offline OP
User
Zheka  Offline OP
User
Z

Joined: Jul 2017
Posts: 784
Testing a portfolio of different algos, one has to set BarPeriod to the lowest common divisor of timeframes used in each strategy and then set TimeFrame in each algo as needed.

However, when looping through algos the 2nd time, frame(0) is not producing the expected result per algo (as TimeFrame reflects just the last setting).

Probably some other fields should be moved/duplicated as well following this logic.

Last edited by Zheka; 02/26/18 16:56.
Re: Suggestion: make TimeFrame part of STATUS struct [Re: Zheka] #471429
03/03/18 17:26
03/03/18 17:26
Joined: Jul 2017
Posts: 784
Z
Zheka Offline OP
User
Zheka  Offline OP
User
Z

Joined: Jul 2017
Posts: 784
JCL,

would appreciate your answer.

Re: Suggestion: make TimeFrame part of STATUS struct [Re: Zheka] #471459
03/05/18 13:17
03/05/18 13:17
Joined: Jul 2000
Posts: 27,986
Frankfurt
jcl Offline

Chief Engineer
jcl  Offline

Chief Engineer

Joined: Jul 2000
Posts: 27,986
Frankfurt
We appreciate all suggestions, but Timeframe is normally unrelated to algos and must be set by script anyway when calling series and indicators. So it is unlikely that this suggestion will be realized.

Re: Suggestion: make TimeFrame part of STATUS struct [Re: jcl] #471468
03/05/18 16:39
03/05/18 16:39
Joined: Jul 2017
Posts: 784
Z
Zheka Offline OP
User
Zheka  Offline OP
User
Z

Joined: Jul 2017
Posts: 784
Quote:
Timeframe is normally unrelated to algos
It is normal for components in a portfolio to trade different time frames.
I understand that the current architecture of Zorro requires the use of one common bar period for all the systems in a portfolio, but TimeFrame is set per algo and so can be stored per algo.

Quote:
must be set by script anyway
Yes. But if there is a need to have another loop through the algos(e.g.for money mngt purposes), calculating some meta statistics/performance measures, then for maximum efficiency one would only make calculations on frame-end of each algo. So, TimeFrame calculated and set in each algo function should be visible in an umbrella run() and available for evaluation through the standard frame() function.
And this is impossible now.


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