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
2 registered members (ozgur, TipmyPip), 722 guests, and 0 spiders.
Key: Admin, Global Mod, Mod
Newest Members
EternallyCurious, howardR, 11honza11, ccorrea, sakolin
19047 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,978
Frankfurt
jcl Offline

Chief Engineer
jcl  Offline

Chief Engineer

Joined: Jul 2000
Posts: 27,978
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