Gamestudio Links
Zorro Links
Newest Posts
Blobsculptor tools and objects download here
by NeoDumont. 03/28/24 03:01
Issue with Multi-Core WFO Training
by aliswee. 03/24/24 20:20
Why Zorro supports up to 72 cores?
by Edgar_Herrera. 03/23/24 21:41
Zorro Trader GPT
by TipmyPip. 03/06/24 09:27
VSCode instead of SED
by 3run. 03/01/24 19:06
AUM Magazine
Latest Screens
The Bible Game
A psychological thriller game
SHADOW (2014)
DEAD TASTE
Who's Online Now
3 registered members (AndrewAMD, Quad, TipmyPip), 865 guests, and 6 spiders.
Key: Admin, Global Mod, Mod
Newest Members
sakolin, rajesh7827, juergen_wue, NITRO_FOREVER, jack0roses
19043 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: 82
7
7th_zorro Offline OP
Junior Member
7th_zorro  Offline OP
Junior Member
7

Joined: Oct 2018
Posts: 82
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,977
Frankfurt
jcl Offline

Chief Engineer
jcl  Offline

Chief Engineer

Joined: Jul 2000
Posts: 27,977
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: 82
7
7th_zorro Offline OP
Junior Member
7th_zorro  Offline OP
Junior Member
7

Joined: Oct 2018
Posts: 82
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,977
Frankfurt
jcl Offline

Chief Engineer
jcl  Offline

Chief Engineer

Joined: Jul 2000
Posts: 27,977
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: 82
7
7th_zorro Offline OP
Junior Member
7th_zorro  Offline OP
Junior Member
7

Joined: Oct 2018
Posts: 82
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