Gamestudio Links
Zorro Links
Newest Posts
Trading Journey
by howardR. 04/28/24 09:55
basik85278
by basik85278. 04/28/24 08:56
Zorro Trader GPT
by TipmyPip. 04/27/24 13:50
Help with plotting multiple ZigZag
by M_D. 04/26/24 20:03
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
AUM Magazine
Latest Screens
The Bible Game
A psychological thriller game
SHADOW (2014)
DEAD TASTE
Who's Online Now
0 registered members (), 744 guests, and 5 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
assetList error #484624
11/22/21 01:10
11/22/21 01:10
Joined: Oct 2018
Posts: 94
7
7th_zorro Offline OP
Junior Member
7th_zorro  Offline OP
Junior Member
7

Joined: Oct 2018
Posts: 94
When using assetList function, if LOOKBACK history(t6) file of specific asset does not exist, zorro don't try to load further assets in the asset list.
for example, when specify one year backtesting as follow,

StartDate = 20200101;
EndDate = 20201231;
BarPeriod = 1440;
LookBack = 30;
...
if(Init) {
History = HISTORY_PATH;
assetList(ASSETS_LIST_PATH, 0);
}
...

Lookback period is 20191201 ~ 20191231.
BUT if there is no t6 file of specific asset exist, (****_2019.t6)
assetList generate error, and does not try to load further asset list, as a result there is missing assets.

I think even if some assets not have enough history data, they must not casuse other assets not loading correctly.

Please fix this problem.

Last edited by 7th_zorro; 11/22/21 01:16.
Re: assetList error [Re: 7th_zorro] #484638
11/23/21 10:00
11/23/21 10:00
Joined: Jul 2000
Posts: 27,986
Frankfurt
jcl Offline

Chief Engineer
jcl  Offline

Chief Engineer

Joined: Jul 2000
Posts: 27,986
Frankfurt
assetList() loads no t6 files. It loads an asset list.

Re: assetList error [Re: 7th_zorro] #484644
11/23/21 23:52
11/23/21 23:52
Joined: Oct 2018
Posts: 94
7
7th_zorro Offline OP
Junior Member
7th_zorro  Offline OP
Junior Member
7

Joined: Oct 2018
Posts: 94
OK. Then, while asset loop may cause the problem,

...
while (asset(loop(Assets)))
{

}
...

while loop breaks when specific asset does not have lookback history file, it causes other assets not loading properly.





Last edited by 7th_zorro; 11/24/21 01:07.
Re: assetList error [Re: 7th_zorro] #484645
11/24/21 06:49
11/24/21 06:49
Joined: Jul 2000
Posts: 27,986
Frankfurt
jcl Offline

Chief Engineer
jcl  Offline

Chief Engineer

Joined: Jul 2000
Posts: 27,986
Frankfurt
That's programming: the computer does what you tell it to do.

I am sure you can fix it. Look up 'while()' in a C book.

Re: assetList error [Re: 7th_zorro] #484655
11/24/21 13:52
11/24/21 13:52
Joined: Oct 2018
Posts: 94
7
7th_zorro Offline OP
Junior Member
7th_zorro  Offline OP
Junior Member
7

Joined: Oct 2018
Posts: 94
I can fix it.

while(asset(loop(Asset))) is one of main examples zorro suggest,

just suprised at some unexpected results.

Last edited by 7th_zorro; 11/24/21 15:35.

Moderated by  Petra 

Powered by UBB.threads™ PHP Forum Software 7.7.1